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 setFeedbackRender(
bool feedback);
417 bool getFeedbackRender()
const;
422 void setSelectionColor(
const Color &color);
427 Color getSelectionColor()
const;
432 bool isLabelScaled()
const;
437 void setLabelScaled(
bool state);
442 bool isLabelFixedFontSize()
const;
447 void setLabelFixedFontSize(
bool state);
457 int getLabelsDensity()
const;
467 void setLabelsDensity(
int density);
473 int getMinSizeOfLabel()
const;
479 void setMinSizeOfLabel(
int size);
485 int getMaxSizeOfLabel()
const;
491 void setMaxSizeOfLabel(
int size);
497 return _labelsAreBillboarded;
504 _labelsAreBillboarded = billboarded;
514 _displayFilteringProperty = filteringProperty;
521 return _displayFilteringProperty;
530 bool _viewOutScreenLabel;
531 bool _elementOrdered;
532 bool _elementOrderedDescending;
533 bool _edgeColorInterpolate;
535 bool _edgeSizeInterpolate;
536 bool _edgeFrontDisplay;
539 bool _displayMetaNodes;
540 bool _elementZOrdered;
541 int _selectedNodesStencil;
542 int _selectedMetaNodesStencil;
543 int _selectedEdgesStencil;
545 int _metaNodesStencil;
547 int _nodesLabelStencil;
548 int _metaNodesLabelStencil;
549 int _edgesLabelStencil;
551 bool _labelFixedFontSize;
555 bool _labelsAreBillboarded;
556 std::string _fontsPath;
557 std::string _texturePath;
558 bool _edgesMaxSizeToNodesSize;
559 bool _feedbackRender;
560 Color _selectionColor;
570 static tlp::Color getDefaultSelectionColor();
571 virtual tlp::Color defaultSelectionColor(
bool tulipDefault =
false) = 0;
578 #endif // Tulip_GLGRAPH_H
A graph property that maps a boolean value to graph elements.
BooleanProperty * getDisplayFilteringProperty() const
Get the boolean property use to filtering displaying 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. ...
Class to get the default selection color.
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