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 void setEdgeFrontDisplay(
const bool state);
133 bool isEdgeFrontDisplay()
const;
138 unsigned int getFontsType()
const;
143 void setFontsType(
unsigned int type);
148 void setTexturePath(
const std::string &path);
153 std::string getTexturePath()
const;
158 void setFontsPath(
const std::string &path);
163 std::string getFontsPath()
const;
168 void setViewMetaLabel(
const bool state);
173 bool isViewMetaLabel()
const;
178 void setDisplayEdges(
const bool state);
183 bool isDisplayEdges()
const;
188 void setDisplayNodes(
const bool state);
193 bool isDisplayNodes()
const;
198 void setDisplayMetaNodes(
const bool state);
203 bool isDisplayMetaNodes()
const;
214 void setSelectedNodesStencil(
const int stencil);
219 int getSelectedNodesStencil()
const;
226 void setSelectedMetaNodesStencil(
const int stencil);
231 int getSelectedMetaNodesStencil()
const;
238 void setSelectedEdgesStencil(
const int stencil);
243 int getSelectedEdgesStencil()
const;
250 void setNodesStencil(
const int stencil);
255 int getNodesStencil()
const;
262 void setMetaNodesStencil(
const int stencil);
267 int getMetaNodesStencil()
const;
274 void setEdgesStencil(
const int stencil);
279 int getEdgesStencil()
const;
286 void setNodesLabelStencil(
const int stencil);
291 int getNodesLabelStencil()
const;
298 void setMetaNodesLabelStencil(
const int stencil);
303 int getMetaNodesLabelStencil()
const;
310 void setEdgesLabelStencil(
const int stencil);
315 int getEdgesLabelStencil()
const;
321 void setElementOrdered(
const bool state);
326 bool isElementOrdered()
const;
334 void setElementOrderedDescending(
const bool state);
342 bool isElementOrderedDescending()
const;
364 void setElementZOrdered(
const bool state);
369 bool isElementZOrdered()
const;
374 void setEdge3D(
const bool state);
379 bool isEdge3D()
const;
386 unsigned int _DEPRECATED getLabelsBorder()
const;
397 void _DEPRECATED setLabelsBorder(
const unsigned int);
402 void setEdgesMaxSizeToNodesSize(
const bool b);
407 bool getEdgesMaxSizeToNodesSize()
const;
412 void setSelectionColor(
const Color &color);
417 Color getSelectionColor()
const;
422 bool isLabelScaled()
const;
427 void setLabelScaled(
bool state);
432 bool isLabelFixedFontSize()
const;
437 void setLabelFixedFontSize(
bool state);
447 int getLabelsDensity()
const;
457 void setLabelsDensity(
int density);
463 int getMinSizeOfLabel()
const;
469 void setMinSizeOfLabel(
int size);
475 int getMaxSizeOfLabel()
const;
481 void setMaxSizeOfLabel(
int size);
487 return _labelsAreBillboarded;
494 _labelsAreBillboarded = billboarded;
504 _displayFilteringProperty = filteringProperty;
511 return _displayFilteringProperty;
520 bool _viewOutScreenLabel;
521 bool _elementOrdered;
522 bool _elementOrderedDescending;
523 bool _edgeColorInterpolate;
525 bool _edgeSizeInterpolate;
526 bool _edgeFrontDisplay;
529 bool _displayMetaNodes;
530 bool _elementZOrdered;
531 int _selectedNodesStencil;
532 int _selectedMetaNodesStencil;
533 int _selectedEdgesStencil;
535 int _metaNodesStencil;
537 int _nodesLabelStencil;
538 int _metaNodesLabelStencil;
539 int _edgesLabelStencil;
541 bool _labelFixedFontSize;
545 bool _labelsAreBillboarded;
546 std::string _fontsPath;
547 std::string _texturePath;
548 bool _edgesMaxSizeToNodesSize;
549 Color _selectionColor;
557 class TLP_GL_SCOPE GlDefaultSelectionColorManager {
559 static void setManager(GlDefaultSelectionColorManager *);
560 static tlp::Color getDefaultSelectionColor();
561 virtual tlp::Color defaultSelectionColor(
bool tulipDefault =
false) = 0;
564 static GlDefaultSelectionColorManager *manager;
571 #endif // Tulip_GLGRAPH_H
A graph property that maps a boolean value to graph elements.
BooleanProperty * getDisplayFilteringProperty() const
Get the Boolean property use to filter the rendering of nodes/edges.
void setLabelsAreBillboarded(bool billboarded)
Set if labels are billboarded.
A container that can store data from any type.
That class defines all the parameters used by GlGraphComposite to render a graph. ...
Interface all numerical properties. Property values are always returned as double.
void setDisplayFilteringProperty(BooleanProperty *filteringProperty)
This property is use to filter nodes/edges display, for a node/edge if this property is false : the n...
bool getLabelsAreBillboarded() const
return if labels are billboarded