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;
334 void setElementZOrdered(
const bool state);
339 bool isElementZOrdered()
const;
344 void setEdge3D(
const bool state);
349 bool isEdge3D()
const;
356 unsigned int _DEPRECATED getLabelsBorder()
const;
367 void _DEPRECATED setLabelsBorder(
const unsigned int);
372 void setEdgesMaxSizeToNodesSize(
const bool b);
377 bool getEdgesMaxSizeToNodesSize()
const;
382 void setFeedbackRender(
bool feedback);
387 bool getFeedbackRender()
const;
392 void setSelectionColor(
const Color &color);
397 Color getSelectionColor()
const;
402 bool isLabelScaled()
const;
407 void setLabelScaled(
bool state);
412 bool isLabelFixedFontSize()
const;
417 void setLabelFixedFontSize(
bool state);
427 int getLabelsDensity()
const;
437 void setLabelsDensity(
int density);
442 int getMinSizeOfLabel()
const;
447 void setMinSizeOfLabel(
int size);
452 int getMaxSizeOfLabel()
const;
457 void setMaxSizeOfLabel(
int size);
463 return _labelsAreBillboarded;
470 _labelsAreBillboarded=billboarded;
479 _displayFilteringProperty=filteringProperty;
486 return _displayFilteringProperty;
496 bool _viewOutScreenLabel;
497 bool _elementOrdered;
498 bool _edgeColorInterpolate;
500 bool _edgeSizeInterpolate;
503 bool _displayMetaNodes;
504 bool _elementZOrdered;
505 int _selectedNodesStencil;
506 int _selectedMetaNodesStencil;
507 int _selectedEdgesStencil;
509 int _metaNodesStencil;
511 int _nodesLabelStencil;
512 int _metaNodesLabelStencil;
513 int _edgesLabelStencil;
515 bool _labelFixedFontSize;
519 bool _labelsAreBillboarded;
520 std::string _fontsPath;
521 std::string _texturePath;
522 bool _edgesMaxSizeToNodesSize;
523 bool _feedbackRender;
524 Color _selectionColor;
534 static tlp::Color getDefaultSelectionColor();
535 virtual tlp::Color defaultSelectionColor()=0;
542 #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...