Open Inventor Release 2024.1.3
 
Loading...
Searching...
No Matches
PoChart.h
1/*=======================================================================
2 *** THE CONTENT OF THIS WORK IS PROPRIETARY TO FEI S.A.S, (FEI S.A.S.), ***
3 *** AND IS DISTRIBUTED UNDER A LICENSE AGREEMENT. ***
4 *** ***
5 *** REPRODUCTION, DISCLOSURE, OR USE, IN WHOLE OR IN PART, OTHER THAN AS ***
6 *** SPECIFIED IN THE LICENSE ARE NOT TO BE UNDERTAKEN EXCEPT WITH PRIOR ***
7 *** WRITTEN AUTHORIZATION OF FEI S.A.S. ***
8 *** ***
9 *** RESTRICTED RIGHTS LEGEND ***
10 *** USE, DUPLICATION, OR DISCLOSURE BY THE GOVERNMENT OF THE CONTENT OF THIS ***
11 *** WORK OR RELATED DOCUMENTATION IS SUBJECT TO RESTRICTIONS AS SET FORTH IN ***
12 *** SUBPARAGRAPH (C)(1) OF THE COMMERCIAL COMPUTER SOFTWARE RESTRICTED RIGHT ***
13 *** CLAUSE AT FAR 52.227-19 OR SUBPARAGRAPH (C)(1)(II) OF THE RIGHTS IN ***
14 *** TECHNICAL DATA AND COMPUTER SOFTWARE CLAUSE AT DFARS 52.227-7013. ***
15 *** ***
16 *** COPYRIGHT (C) 1996-2014 BY FEI S.A.S, ***
17 *** BORDEAUX, FRANCE ***
18 *** ALL RIGHTS RESERVED ***
19**=======================================================================*/
20/*=======================================================================
21** Author : VSG (MMM YYYY)
22**=======================================================================*/
23
24#ifndef _PO_CHART_
25#define _PO_CHART_
26
27#include <MeshViz/graph/PoGraphMaster.h>
28
29#include <Inventor/fields/SoSFEnum.h>
30#include <Inventor/fields/SoSFInt32.h>
31#include <Inventor/fields/SoSFNode.h>
32
44class PoChart : public PoGraphMaster {
45
46 SO_KIT_ABSTRACT_HEADER(PoChart) ;
47
48
49 public:
50
59
60
61
62 /* Fields */
63
80
86
96
105
106 /*----------------------------------------------------------------------------*/
107
108
109 private:
110 static void initClass() ;
111 static void exitClass() ;
112
113 enum ColorSource {
114 DATA_MAPPING,
115 COLOR_LIST,
116 INHERITED_SOURCE
117 } ;
118
119 // Retreives the color source.
120 ColorSource getColorSource() const ;
121
122 private:
123 PoChart() ;
124 // Constructor.
125
126 virtual ~PoChart() ;
127 // Destructor.
128
129 // Overloaded methods
130 virtual void addElementsAllCaches() ;
131 virtual void preRebuild() ;
132
133 // Compute the step angle for circular shape according to
134 // the current complexity.
135 virtual float computeStepAngle(SoState *state, float radius) const ;
136
137 // Decompose a SoMaterial in N SoMaterial.
138 // N is the max number of components of the material source.
139 static SoNodeList* decomposeSoMaterial(SoMaterial *matSrc) ;
140
141 // Methods
142 virtual void setDefaultOnNonWritingFields() ;
143 virtual SbBool setUpConnections(SbBool onOff, SbBool doItAlways = FALSE) ;
144
145 private:
146 // Sensors
147 FieldSensorList fieldSensorList ;
148
149 // List of fields defined in this class
150 SoFieldList fieldList ;
151} ;
152
153/*----------------------------------------------------------------------------*/
154
155#endif /* _PO_CHART_ */
156
<a href="IconLegend.html"><img src="extMV.gif" alt="MeshViz" border="0"></a> Abstract base class for ...
Definition PoChart.h:44
SoSFNode material
Defines the list of materials used for the coloring.
Definition PoChart.h:104
ColorBinding
Color binding.
Definition PoChart.h:54
@ INHERITED
Definition PoChart.h:55
@ PER_PART
Definition PoChart.h:57
@ PER_VERTEX
Definition PoChart.h:56
SoSFInt32 yValuesIndex
Defines the index of the set of values used by a charting representation as a y-coordinate of each me...
Definition PoChart.h:85
SoSFInt32 colorValuesIndex
Defines the index of the set of values for the coloring.
Definition PoChart.h:95
SoSFEnum colorBinding
Specify how the colors are bound to the representation.
Definition PoChart.h:79
<a href="IconLegend.html"><img src="extMV.gif" alt="MeshViz" border="0"></a> Abstract base class for ...
Maintains a list of pointers to fields.
Definition SoFieldList.h:72
Surface material definition node.
Definition SoMaterial.h:173
Maintains a list of pointers to nodes.
Definition SoNodeList.h:74
Field containing an enumerated value.
Definition SoSFEnum.h:89
Field containing a int32_t integer.
Definition SoSFInt32.h:80
Field containing a a node.
Definition SoSFNode.h:97
Traversal state.
Definition SoState.h:74
int SbBool
Boolean type.
Definition SbBase.h:87