20 #ifndef Tulip_GLGRAPHRENDERINGPARAMETERS_H 21 #define Tulip_GLGRAPHRENDERINGPARAMETERS_H 23 #include <tulip/Color.h> 24 #include <tulip/DataSet.h> 25 #include <tulip/tulipconf.h> 29 class NumericProperty;
30 class BooleanProperty;
54 void setParameters(
const DataSet &);
59 void setAntialiasing(
const bool state);
64 bool isAntialiased()
const;
69 void setViewArrow(
const bool state);
74 bool isViewArrow()
const;
79 void setViewNodeLabel(
const bool state);
84 bool isViewNodeLabel()
const;
88 void setViewEdgeLabel(
const bool state);
93 bool isViewEdgeLabel()
const;
98 void setViewOutScreenLabel(
const bool state);
103 bool isViewOutScreenLabel()
const;
108 void setEdgeColorInterpolate(
const bool state);
113 bool isEdgeColorInterpolate()
const;
118 void setEdgeSizeInterpolate(
const bool state);
123 bool isEdgeSizeInterpolate()
const;
128 unsigned int getFontsType()
const;
133 void setFontsType(
unsigned int type);
138 void setTexturePath(
const std::string& path);
143 std::string getTexturePath()
const;
148 void setFontsPath(
const std::string& path);
153 std::string getFontsPath()
const;
158 void setViewMetaLabel(
const bool state);
163 bool isViewMetaLabel()
const;
168 void setDisplayEdges(
const bool state);
173 bool isDisplayEdges()
const;
178 void setDisplayNodes(
const bool state);
183 bool isDisplayNodes()
const;
188 void setDisplayMetaNodes(
const bool state);
193 bool isDisplayMetaNodes()
const;
203 void setSelectedNodesStencil(
const int stencil);
208 int getSelectedNodesStencil()
const;
215 void setSelectedMetaNodesStencil(
const int stencil);
220 int getSelectedMetaNodesStencil()
const;
227 void setSelectedEdgesStencil(
const int stencil);
232 int getSelectedEdgesStencil()
const;
239 void setNodesStencil(
const int stencil);
244 int getNodesStencil()
const;
251 void setMetaNodesStencil(
const int stencil);
256 int getMetaNodesStencil()
const;
263 void setEdgesStencil(
const int stencil);
268 int getEdgesStencil()
const;
275 void setNodesLabelStencil(
const int stencil);
280 int getNodesLabelStencil()
const;
287 void setMetaNodesLabelStencil(
const int stencil);
292 int getMetaNodesLabelStencil()
const;
299 void setEdgesLabelStencil(
const int stencil);
304 int getEdgesLabelStencil()
const;
309 void setElementOrdered(
const bool state);
314 bool isElementOrdered()
const;
321 void setElementOrderedDescending(
const bool state);
328 bool isElementOrderedDescending()
const;
348 void setElementZOrdered(
const bool state);
353 bool isElementZOrdered()
const;
358 void setEdge3D(
const bool state);
363 bool isEdge3D()
const;
370 unsigned int _DEPRECATED getLabelsBorder()
const;
381 void _DEPRECATED setLabelsBorder(
const unsigned int);
386 void setEdgesMaxSizeToNodesSize(
const bool b);
391 bool getEdgesMaxSizeToNodesSize()
const;
396 void setFeedbackRender(
bool feedback);
401 bool getFeedbackRender()
const;
406 void setSelectionColor(
const Color &color);
411 Color getSelectionColor()
const;
416 bool isLabelScaled()
const;
421 void setLabelScaled(
bool state);
426 bool isLabelFixedFontSize()
const;
431 void setLabelFixedFontSize(
bool state);
441 int getLabelsDensity()
const;
451 void setLabelsDensity(
int density);
456 int getMinSizeOfLabel()
const;
461 void setMinSizeOfLabel(
int size);
466 int getMaxSizeOfLabel()
const;
471 void setMaxSizeOfLabel(
int size);
477 return _labelsAreBillboarded;
484 _labelsAreBillboarded=billboarded;
493 _displayFilteringProperty=filteringProperty;
500 return _displayFilteringProperty;
510 bool _viewOutScreenLabel;
511 bool _elementOrdered;
512 bool _elementOrderedDescending;
513 bool _edgeColorInterpolate;
515 bool _edgeSizeInterpolate;
518 bool _displayMetaNodes;
519 bool _elementZOrdered;
520 int _selectedNodesStencil;
521 int _selectedMetaNodesStencil;
522 int _selectedEdgesStencil;
524 int _metaNodesStencil;
526 int _nodesLabelStencil;
527 int _metaNodesLabelStencil;
528 int _edgesLabelStencil;
530 bool _labelFixedFontSize;
534 bool _labelsAreBillboarded;
535 std::string _fontsPath;
536 std::string _texturePath;
537 bool _edgesMaxSizeToNodesSize;
538 bool _feedbackRender;
539 Color _selectionColor;
549 static tlp::Color getDefaultSelectionColor();
550 virtual tlp::Color defaultSelectionColor()=0;
557 #endif // Tulip_GLGRAPH_H
A graph property that maps a boolean value to graph elements.
void setLabelsAreBillboarded(bool billboarded)
Set if labels are billboarded.
A container that can store data from any type.
BooleanProperty * getDisplayFilteringProperty() const
Get the boolean property use to filtering displaying of nodes/edges.
That class defines all the parameters used by GlGraphComposite to render a graph. ...
Class to get the default selection color.
Interface all numerical properties. Property values are always returned as double.
bool getLabelsAreBillboarded() const
return if labels are billboarded
void setDisplayFilteringProperty(BooleanProperty *filteringProperty)
This property is use to filter nodes/edges display, for a node/edge if this property is false : the n...