24#ifndef _PO_VALUE_LEGEND_
25#define _PO_VALUE_LEGEND_
173 static void initClass() ;
174 static void exitClass() ;
179 struct BoxRepresentation {
185 float transparency2 ;
189 float *percentPerColor ;
199 enum LegendOrientation {
204 enum MultFactorPosition {
205 MULT_FACTOR_POS_UP_MIDDLE,
206 MULT_FACTOR_POS_RIGHT_MIDDLE,
207 MULT_FACTOR_POS_DOWN_MIDDLE
214 virtual void setDefaultOnNonWritingFields() ;
221 virtual void basicObjectChange(
PbBase *basicObj) ;
224 void computeBoxColors(
int index,
SbBool isIntervalLegend) ;
229 void computeUndefBoxRepresentation(
int lowerUndefIndex,
int upperUndefIndex) ;
232 void computeValuesList() ;
235 void newBoxRepresentationList(
int num) ;
238 void deleteBoxRepresentationList() ;
241 virtual void addElementsAllCaches() ;
242 virtual void preRebuild() ;
245 BoxRepresentation *m_boxRepresentationList ;
246 int m_numBoxRepresentation ;
250 float *m_valuesList ;
252 SbBool m_isLowerUndef, m_isUpperUndef ;
253 LegendType m_legendType ;
256 PbDataMapping::ClassType m_dataMappingType ;
257 float m_transparencyDeletedParts ;
260 LegendOrientation m_legendOrientation ;
265 float m_multFactorWidth ;
281 FieldSensorList m_fieldSensorList ;
#define FALSE
Possible value of SbBool.
#define SO_KIT_CATALOG_ENTRY_HEADER(partName)
#define SO_KIT_HEADER(className)
<a href="IconLegend.html"><img src="extMV.gif" alt="MeshViz" border="0"></a> Abstract class for all b...
<a href="IconLegend.html"><img src="extMV.gif" alt="MeshViz" border="0"></a> Abstract class for data ...
<a href="IconLegend.html"><img src="extMV.gif" alt="MeshViz" border="0"></a> Class to define a list o...
<a href="IconLegend.html"><img src="extMV.gif" alt="MeshViz" border="0"></a> Abstract class for legen...
<a href="IconLegend.html"><img src="extMV.gif" alt="MeshViz" border="0"></a> Abstract class for value...
const PbIsovaluesList * getIsovaluesList() const
Gets a reference to a PbIsovaluesList object.
void setIsovaluesList(PbIsovaluesList *isovaluesList)
Sets a reference to a PbIsovaluesList object.
const PbDataMapping * getDataMapping() const
Gets a reference to a PbDataMapping object to the association color-values.
SoSFString upperUndefString
String indicating the upper undefined level.
const PbNumericDisplayFormat * getFormat() const
Gets a reference to a PbNumericDisplayFormat object for the numerical display format of the legend va...
void setDataMapping(PbDataMapping *dataMapping)
Sets a reference to a PbDataMapping object to the association color-values.
SoSFString lowerUndefString
String indicating the lower undefined level.
SoSFUShort periodValue
Period to display the values in the legend.
SoSFUShort lastValue
Number of the last value to display.
SoSFUShort firstValue
Number of the first value to display.
void setFormat(PbNumericDisplayFormat *format)
Sets a reference to a PbNumericDisplayFormat object for the numerical display format of the legend va...
Class for smart character strings.
Maintains a list of pointers to fields.
Field containing a string.
Field containing an unsigned short integer.