Anatomist module for cortical folds graphs


anatomist::AFGraph Class Reference

#include <anafold/fgraph/afgraph.h>

Inheritance diagram for anatomist::AFGraph:
Collaboration diagram for anatomist::AFGraph:

Public Types

enum  Mode {
  NODEPOT , TOTALPOT , LABELS , CONSTANT ,
  TOTALCONST
}
 

Public Member Functions

 AFGraph (AGraph *model, AGraph *folds)
 
virtual ~AFGraph ()
 
virtual int MType () const
 
virtual bool CanRemove (AObject *obj)
 
virtual AObject * objectAt (const std::vector< float > &pos, float tol=0)
 
virtual void SetMaterial (const Material &mat)
 
virtual void setPalette (const AObjectPalette &pal)
 
virtual void internalUpdate ()
 
virtual bool render (PrimList &, const ViewState &)
 
AGraph * model () const
 
AGraph * folds () const
 
virtual void setColors ()
 maps the appropriate color on the child fold graph objects.
 
virtual void setColorsNodePot ()
 maps the node cliques potentials (with or without the weight, according to the map mode)
 
virtual void setColorsLabels ()
 maps the labels colors from hierarchy (like in graph params settings)
 
Mode mapMode () const
 mode for information mapping
 
void setMapMode (Mode mode)
 
bool isMapWeighted () const
 
void setMapWeighted (bool wt)
 
bool isRelPotentials () const
 
void setRelPotentials (bool onoff)
 
bool pot0HasColor () const
 
void setPot0HasCol (bool onoff)
 
bool isPot0Centered () const
 
void setPot0Centered (bool onoff)
 
float pot0Red () const
 
float pot0Green () const
 
float pot0Blue () const
 
float pot0Alpha () const
 
bool pot0AlphaUsed () const
 
void setPot0Color (float r, float g, float b, float a=1., bool usea=false)
 
float noPotRed () const
 
float noPotGreen () const
 
float noPotBlue () const
 
float noPotAlpha () const
 
bool noPotAlphaUsed () const
 
void setNoPotColor (float r, float g, float b, float a=0.2, bool usea=true)
 
virtual Tree * optionTree () const
 
void setModelWeights (double szfactor)
 Modifies the model graph.
 
void updatePotentials ()
 
virtual float minTexValue () const
 
virtual float maxTexValue () const
 
virtual GLComponent * glAPI ()
 
virtual const GLComponent * glAPI () const
 
virtual const AObjectPalette * glPalette (unsigned tex=0) const
 

Static Public Member Functions

static int classType ()
 
static void fusionControl (const std::set< AObject * > &)
 Opens the fusion control window (menu callback)
 
static void annealWin (const std::set< AObject * > &)
 Opens the annealing window (menu callback)
 

Static Public Attributes

static Tree * _optionTree
 

Protected Member Functions

void initCliques ()
 
void deleteCliques ()
 
bool cliqueWeight (const sigraph::Clique *cl, double &wt)
 
bool nodePotential (const Vertex *v, double &pot)
 
bool nodePotentialSimple (const Vertex *v, double &pot)
 
bool nodePotentialTotal (const Vertex *v, double &pot)
 
bool nodePotentialLabels (const Vertex *v, double &pot)
 
bool nodePotentialConstant (const Vertex *v, double &pot)
 
bool nodePotentialTotalConst (const Vertex *v, double &pot)
 
bool edgePotential (const Edge *v, double &pot)
 
bool edgePotentialSimple (const Edge *v, double &pot)
 
bool edgePotentialConstant (const Edge *v, double &pot)
 
void makeDomTriang (ATriangulated *tri, sigraph::DomainBox *dom, sigraph::FGraph *fg)
 
void makeDomTriang (ATriangulated *tri, sigraph::DomainRBF *dom, sigraph::FGraph *fg)
 
virtual void createDefaultPalette (const std::string &name)
 

Protected Attributes

AGraph * _model
 
AGraph * _folds
 
bool _normInpVec
 
Mode _mapMode
 
bool _weighted
 
bool _pot0Col
 
bool _pot0Center
 
bool _relPot
 
float _p0red
 
float _p0green
 
float _p0blue
 
float _nopotRed
 
float _nopotGreen
 
float _nopotBlue
 
sigraph::FoldLabelsTranslator * _translator
 

Detailed Description

Definition at line 38 of file afgraph.h.

Member Enumeration Documentation

◆ Mode

Enumerator
NODEPOT 
TOTALPOT 
LABELS 
CONSTANT 
TOTALCONST 

Definition at line 41 of file afgraph.h.

Constructor & Destructor Documentation

◆ AFGraph()

anatomist::AFGraph::AFGraph ( AGraph * model,
AGraph * folds )

References folds(), and model().

◆ ~AFGraph()

virtual anatomist::AFGraph::~AFGraph ( )
virtual

Member Function Documentation

◆ annealWin()

static void anatomist::AFGraph::annealWin ( const std::set< AObject * > & )
static

Opens the annealing window (menu callback)

◆ CanRemove()

bool anatomist::AFGraph::CanRemove ( AObject * obj)
inlinevirtual

Definition at line 177 of file afgraph.h.

◆ classType()

static int anatomist::AFGraph::classType ( )
inlinestatic

Definition at line 109 of file afgraph.h.

◆ cliqueWeight()

bool anatomist::AFGraph::cliqueWeight ( const sigraph::Clique * cl,
double & wt )
protected

◆ createDefaultPalette()

virtual void anatomist::AFGraph::createDefaultPalette ( const std::string & name)
protectedvirtual

◆ deleteCliques()

void anatomist::AFGraph::deleteCliques ( )
protected

◆ edgePotential()

bool anatomist::AFGraph::edgePotential ( const Edge * v,
double & pot )
protected

◆ edgePotentialConstant()

bool anatomist::AFGraph::edgePotentialConstant ( const Edge * v,
double & pot )
protected

◆ edgePotentialSimple()

bool anatomist::AFGraph::edgePotentialSimple ( const Edge * v,
double & pot )
protected

◆ folds()

AGraph * anatomist::AFGraph::folds ( ) const
inline

Definition at line 65 of file afgraph.h.

References _folds.

Referenced by AFGraph().

◆ fusionControl()

static void anatomist::AFGraph::fusionControl ( const std::set< AObject * > & )
static

Opens the fusion control window (menu callback)

◆ glAPI() [1/2]

virtual GLComponent * anatomist::AFGraph::glAPI ( )
virtual

◆ glAPI() [2/2]

virtual const GLComponent * anatomist::AFGraph::glAPI ( ) const
virtual

◆ glPalette()

virtual const AObjectPalette * anatomist::AFGraph::glPalette ( unsigned tex = 0) const
virtual

◆ initCliques()

void anatomist::AFGraph::initCliques ( )
protected

◆ internalUpdate()

virtual void anatomist::AFGraph::internalUpdate ( )
virtual

◆ isMapWeighted()

bool anatomist::AFGraph::isMapWeighted ( ) const
inline

Definition at line 80 of file afgraph.h.

References _weighted.

◆ isPot0Centered()

bool anatomist::AFGraph::isPot0Centered ( ) const
inline

Definition at line 89 of file afgraph.h.

References _pot0Center.

◆ isRelPotentials()

bool anatomist::AFGraph::isRelPotentials ( ) const
inline

Definition at line 83 of file afgraph.h.

References _relPot.

◆ makeDomTriang() [1/2]

void anatomist::AFGraph::makeDomTriang ( ATriangulated * tri,
sigraph::DomainBox * dom,
sigraph::FGraph * fg )
protected

◆ makeDomTriang() [2/2]

void anatomist::AFGraph::makeDomTriang ( ATriangulated * tri,
sigraph::DomainRBF * dom,
sigraph::FGraph * fg )
protected

◆ mapMode()

Mode anatomist::AFGraph::mapMode ( ) const
inline

mode for information mapping

Definition at line 77 of file afgraph.h.

References _mapMode.

◆ maxTexValue()

virtual float anatomist::AFGraph::maxTexValue ( ) const
virtual

◆ minTexValue()

virtual float anatomist::AFGraph::minTexValue ( ) const
virtual

◆ model()

AGraph * anatomist::AFGraph::model ( ) const
inline

Definition at line 64 of file afgraph.h.

References _model.

Referenced by AFGraph().

◆ MType()

virtual int anatomist::AFGraph::MType ( ) const
inlinevirtual

Definition at line 53 of file afgraph.h.

◆ nodePotential()

bool anatomist::AFGraph::nodePotential ( const Vertex * v,
double & pot )
protected

◆ nodePotentialConstant()

bool anatomist::AFGraph::nodePotentialConstant ( const Vertex * v,
double & pot )
protected

◆ nodePotentialLabels()

bool anatomist::AFGraph::nodePotentialLabels ( const Vertex * v,
double & pot )
protected

◆ nodePotentialSimple()

bool anatomist::AFGraph::nodePotentialSimple ( const Vertex * v,
double & pot )
protected

◆ nodePotentialTotal()

bool anatomist::AFGraph::nodePotentialTotal ( const Vertex * v,
double & pot )
protected

◆ nodePotentialTotalConst()

bool anatomist::AFGraph::nodePotentialTotalConst ( const Vertex * v,
double & pot )
protected

◆ noPotAlpha()

float anatomist::AFGraph::noPotAlpha ( ) const

◆ noPotAlphaUsed()

bool anatomist::AFGraph::noPotAlphaUsed ( ) const

◆ noPotBlue()

float anatomist::AFGraph::noPotBlue ( ) const
inline

Definition at line 101 of file afgraph.h.

References _nopotBlue.

◆ noPotGreen()

float anatomist::AFGraph::noPotGreen ( ) const
inline

Definition at line 100 of file afgraph.h.

References _nopotGreen.

◆ noPotRed()

float anatomist::AFGraph::noPotRed ( ) const
inline

Definition at line 99 of file afgraph.h.

References _nopotRed.

◆ objectAt()

virtual AObject * anatomist::AFGraph::objectAt ( const std::vector< float > & pos,
float tol = 0 )
inlinevirtual

Definition at line 57 of file afgraph.h.

References _folds.

◆ optionTree()

virtual Tree * anatomist::AFGraph::optionTree ( ) const
virtual

◆ pot0Alpha()

float anatomist::AFGraph::pot0Alpha ( ) const

◆ pot0AlphaUsed()

bool anatomist::AFGraph::pot0AlphaUsed ( ) const

◆ pot0Blue()

float anatomist::AFGraph::pot0Blue ( ) const
inline

Definition at line 94 of file afgraph.h.

References _p0blue.

◆ pot0Green()

float anatomist::AFGraph::pot0Green ( ) const
inline

Definition at line 93 of file afgraph.h.

References _p0green.

◆ pot0HasColor()

bool anatomist::AFGraph::pot0HasColor ( ) const
inline

Definition at line 86 of file afgraph.h.

References _pot0Col.

◆ pot0Red()

float anatomist::AFGraph::pot0Red ( ) const
inline

Definition at line 92 of file afgraph.h.

References _p0red.

◆ render()

virtual bool anatomist::AFGraph::render ( PrimList & ,
const ViewState &  )
virtual

◆ setColors()

virtual void anatomist::AFGraph::setColors ( )
virtual

maps the appropriate color on the child fold graph objects.

According to the render mode, maps either potentials, labels, etc.

◆ setColorsLabels()

virtual void anatomist::AFGraph::setColorsLabels ( )
virtual

maps the labels colors from hierarchy (like in graph params settings)

◆ setColorsNodePot()

virtual void anatomist::AFGraph::setColorsNodePot ( )
virtual

maps the node cliques potentials (with or without the weight, according to the map mode)

◆ setMapMode()

void anatomist::AFGraph::setMapMode ( Mode mode)
inline

Definition at line 78 of file afgraph.h.

References _mapMode.

◆ setMapWeighted()

void anatomist::AFGraph::setMapWeighted ( bool wt)
inline

Definition at line 81 of file afgraph.h.

References _weighted.

◆ SetMaterial()

virtual void anatomist::AFGraph::SetMaterial ( const Material & mat)
virtual

◆ setModelWeights()

void anatomist::AFGraph::setModelWeights ( double szfactor)

Modifies the model graph.

◆ setNoPotColor()

void anatomist::AFGraph::setNoPotColor ( float r,
float g,
float b,
float a = 0.2,
bool usea = true )

◆ setPalette()

virtual void anatomist::AFGraph::setPalette ( const AObjectPalette & pal)
virtual

◆ setPot0Centered()

void anatomist::AFGraph::setPot0Centered ( bool onoff)
inline

Definition at line 90 of file afgraph.h.

References _pot0Center.

◆ setPot0Color()

void anatomist::AFGraph::setPot0Color ( float r,
float g,
float b,
float a = 1.,
bool usea = false )

◆ setPot0HasCol()

void anatomist::AFGraph::setPot0HasCol ( bool onoff)
inline

Definition at line 87 of file afgraph.h.

References _pot0Col.

◆ setRelPotentials()

void anatomist::AFGraph::setRelPotentials ( bool onoff)
inline

Definition at line 84 of file afgraph.h.

References _relPot.

◆ updatePotentials()

void anatomist::AFGraph::updatePotentials ( )

Member Data Documentation

◆ _folds

AGraph* anatomist::AFGraph::_folds
protected

Definition at line 147 of file afgraph.h.

Referenced by folds(), and objectAt().

◆ _mapMode

Mode anatomist::AFGraph::_mapMode
protected

Definition at line 149 of file afgraph.h.

Referenced by mapMode(), and setMapMode().

◆ _model

AGraph* anatomist::AFGraph::_model
protected

Definition at line 146 of file afgraph.h.

Referenced by model().

◆ _nopotBlue

float anatomist::AFGraph::_nopotBlue
protected

Definition at line 159 of file afgraph.h.

Referenced by noPotBlue().

◆ _nopotGreen

float anatomist::AFGraph::_nopotGreen
protected

Definition at line 158 of file afgraph.h.

Referenced by noPotGreen().

◆ _nopotRed

float anatomist::AFGraph::_nopotRed
protected

Definition at line 157 of file afgraph.h.

Referenced by noPotRed().

◆ _normInpVec

bool anatomist::AFGraph::_normInpVec
protected

Definition at line 148 of file afgraph.h.

◆ _optionTree

Tree* anatomist::AFGraph::_optionTree
static

Definition at line 124 of file afgraph.h.

◆ _p0blue

float anatomist::AFGraph::_p0blue
protected

Definition at line 156 of file afgraph.h.

Referenced by pot0Blue().

◆ _p0green

float anatomist::AFGraph::_p0green
protected

Definition at line 155 of file afgraph.h.

Referenced by pot0Green().

◆ _p0red

float anatomist::AFGraph::_p0red
protected

Definition at line 154 of file afgraph.h.

Referenced by pot0Red().

◆ _pot0Center

bool anatomist::AFGraph::_pot0Center
protected

Definition at line 152 of file afgraph.h.

Referenced by isPot0Centered(), and setPot0Centered().

◆ _pot0Col

bool anatomist::AFGraph::_pot0Col
protected

Definition at line 151 of file afgraph.h.

Referenced by pot0HasColor(), and setPot0HasCol().

◆ _relPot

bool anatomist::AFGraph::_relPot
protected

Definition at line 153 of file afgraph.h.

Referenced by isRelPotentials(), and setRelPotentials().

◆ _translator

sigraph::FoldLabelsTranslator* anatomist::AFGraph::_translator
protected

Definition at line 160 of file afgraph.h.

◆ _weighted

bool anatomist::AFGraph::_weighted
protected

Definition at line 150 of file afgraph.h.

Referenced by isMapWeighted(), and setMapWeighted().


The documentation for this class was generated from the following file: