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;
384 void setEdgesMaxSizeToNodesSize(
const bool b);
389 bool getEdgesMaxSizeToNodesSize()
const;
394 void setSelectionColor(
const Color &color);
399 Color getSelectionColor()
const;
404 bool isLabelScaled()
const;
409 void setLabelScaled(
bool state);
414 bool isLabelFixedFontSize()
const;
419 void setLabelFixedFontSize(
bool state);
429 int getLabelsDensity()
const;
439 void setLabelsDensity(
int density);
445 int getMinSizeOfLabel()
const;
451 void setMinSizeOfLabel(
int size);
457 int getMaxSizeOfLabel()
const;
463 void setMaxSizeOfLabel(
int size);
469 return _labelsAreBillboarded;
476 _labelsAreBillboarded = billboarded;
486 _displayFilteringProperty = filteringProperty;
493 return _displayFilteringProperty;
502 bool _viewOutScreenLabel;
503 bool _elementOrdered;
504 bool _elementOrderedDescending;
505 bool _edgeColorInterpolate;
507 bool _edgeSizeInterpolate;
508 bool _edgeFrontDisplay;
511 bool _displayMetaNodes;
512 bool _elementZOrdered;
513 int _selectedNodesStencil;
514 int _selectedMetaNodesStencil;
515 int _selectedEdgesStencil;
517 int _metaNodesStencil;
519 int _nodesLabelStencil;
520 int _metaNodesLabelStencil;
521 int _edgesLabelStencil;
523 bool _labelFixedFontSize;
527 bool _labelsAreBillboarded;
528 std::string _fontsPath;
529 std::string _texturePath;
530 bool _edgesMaxSizeToNodesSize;
531 Color _selectionColor;
539 class TLP_GL_SCOPE GlDefaultSelectionColorManager {
541 static void setManager(GlDefaultSelectionColorManager *);
542 static tlp::Color getDefaultSelectionColor();
543 virtual tlp::Color defaultSelectionColor(
bool tulipDefault =
false) = 0;
546 static GlDefaultSelectionColorManager *manager;
553 #endif // Tulip_GLGRAPH_H