12#ifndef ANAFOLD_FGRAPH_AFGRAPH_H
13#define ANAFOLD_FGRAPH_AFGRAPH_H
16#include <anatomist/graph/Graph.h>
17#include <anatomist/mobject/globjectlist.h>
26 class FoldLabelsTranslator;
38 class AFGraph :
public ObjectList,
public GLComponent
53 virtual int MType()
const {
return( type() ); }
57 virtual AObject*
objectAt(
const std::vector<float> & pos,
float tol = 0 )
58 {
return(
_folds->objectAt( pos, tol ) ); }
62 virtual bool render( PrimList &,
const ViewState & );
121 virtual const GLComponent*
glAPI()
const;
122 virtual const AObjectPalette*
glPalette(
unsigned tex = 0 )
const;
140 sigraph::FGraph* fg );
142 sigraph::FGraph* fg );
166 static int registerClass();
169 static int _classType;
179 std::cout <<
"AFGraph::CanRemove\n je reponds false !";
bool edgePotentialSimple(const Edge *v, double &pot)
virtual void setColors()
maps the appropriate color on the child fold graph objects.
virtual AObject * objectAt(const std::vector< float > &pos, float tol=0)
void makeDomTriang(ATriangulated *tri, sigraph::DomainRBF *dom, sigraph::FGraph *fg)
void setPot0HasCol(bool onoff)
virtual void setColorsNodePot()
maps the node cliques potentials (with or without the weight, according to the map mode)
Mode mapMode() const
mode for information mapping
virtual const AObjectPalette * glPalette(unsigned tex=0) const
virtual void setColorsLabels()
maps the labels colors from hierarchy (like in graph params settings)
bool isMapWeighted() const
AFGraph(AGraph *model, AGraph *folds)
bool noPotAlphaUsed() const
void setMapMode(Mode mode)
bool nodePotentialTotalConst(const Vertex *v, double &pot)
virtual bool render(PrimList &, const ViewState &)
bool edgePotentialConstant(const Edge *v, double &pot)
static void annealWin(const std::set< AObject * > &)
Opens the annealing window (menu callback)
void makeDomTriang(ATriangulated *tri, sigraph::DomainBox *dom, sigraph::FGraph *fg)
virtual void createDefaultPalette(const std::string &name)
virtual const GLComponent * glAPI() const
void setPot0Centered(bool onoff)
void setModelWeights(double szfactor)
Modifies the model graph.
virtual int MType() const
virtual void internalUpdate()
bool cliqueWeight(const sigraph::Clique *cl, double &wt)
virtual Tree * optionTree() const
static void fusionControl(const std::set< AObject * > &)
Opens the fusion control window (menu callback)
void setNoPotColor(float r, float g, float b, float a=0.2, bool usea=true)
void setMapWeighted(bool wt)
bool edgePotential(const Edge *v, double &pot)
bool nodePotential(const Vertex *v, double &pot)
virtual void setPalette(const AObjectPalette &pal)
virtual void SetMaterial(const Material &mat)
bool nodePotentialTotal(const Vertex *v, double &pot)
bool nodePotentialConstant(const Vertex *v, double &pot)
virtual bool CanRemove(AObject *obj)
static Tree * _optionTree
virtual float maxTexValue() const
bool nodePotentialSimple(const Vertex *v, double &pot)
virtual GLComponent * glAPI()
bool nodePotentialLabels(const Vertex *v, double &pot)
bool pot0AlphaUsed() const
void setRelPotentials(bool onoff)
virtual float minTexValue() const
bool isPot0Centered() const
bool isRelPotentials() const
sigraph::FoldLabelsTranslator * _translator
bool pot0HasColor() const
void setPot0Color(float r, float g, float b, float a=1., bool usea=false)
ASurface< 3 > ATriangulated