307 static void initClass() ;
308 static void exitClass() ;
312 float titleFontSize ;
315 float valueFontSize ;
320 virtual void setDefaultOnNonWritingFields() ;
324 virtual void basicObjectChange(
PbBase *basicObj) ;
329 void computeMarginA(
const SbVec2f &ptBoxOrig,
float boxWidth,
330 float boxHeight,
SbVec2f &ptLegendOrig,
331 float &legendWidth,
float &legendHeight) ;
334 void computeTitleSizeA(
float legendWidth,
float legendHeight,
335 float &titleWidth,
float &titleHeight) ;
338 void drawBackgroundA(
const SbVec2f &ptBoxOrig,
float boxWidth,
float boxHeight) ;
341 void drawTitleA(
float titleHeight,
float titleWidth,
Plimit &limit) ;
344 void drawBoxesLegendBoxesA(
SbBool isBoxVisible,
float boxWidth,
float boxHeight,
345 int nb_lines,
int nb_columns,
346 int numItems,
const float *maxTextSizePerCol,
350 virtual void drawBoxLegendBoxesA(
SoGroup *boxBorderGroup,
SoGroup *boxGroup,
351 const SbVec2f &topLeftCorner,
float width,
352 float height,
int repIndex) ;
355 void drawValuesLegendBoxesA(
int nb_lines,
int nb_columns,
int numStrings,
356 const SbString *strings,
const float *maxTextSizePerCol,
362 virtual void computeGraphicSizeForValues(
float &width,
float &height,
366 virtual void setRevertOrder(
float startY,
float endY)
367 { m_revertOrder = (startY <= endY ?
FALSE :
TRUE) ; }
368 SbBool isRevertOrder()
const
369 {
return m_revertOrder ; }
378 void setDefaultAttr() ;
387 virtual void addElementsAllCaches() ;
388 virtual void preRebuild() ;
391 LegendAttr m_legendAttr ;
398 FieldSensorList m_fieldSensorList ;
#define TRUE
Possible value of SbBool.
#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> Class to define a numeri...
<a href="IconLegend.html"><img src="extMV.gif" alt="MeshViz" border="0"></a> Abstract base class for ...
<a href="IconLegend.html"><img src="extMV.gif" alt="MeshViz" border="0"></a> Abstract class for legen...
SoSFFloat marginLeft
Left margin.
SoSFEnum titlePath
Title path.
SoSFFloat titleFontSize
Font size of the title.
const PbMiscTextAttr * getMiscTextAttr() const
Gets a reference to a PbMiscTextAttr for miscellaneous text attributes.
SoSFEnum valuePosition
Values positions.
IncrementType
Type of values incrementation.
@ VERTICAL_INCREMENT
Values of the legend are vertically incremented.
@ HORIZONTAL_INCREMENT
Values of the legend are horizontally incremented.
SoSFFloat marginTop
Top margin.
SoSFEnum marginType
Margin type.
Position
Type of position.
@ POS_BOTTOM
Bottom position.
@ POS_RIGHT
Right position.
SoSFFloat marginBottom
Bottom margin.
SoSFEnum valueVisibility
Values visibility.
SoSFString valueFontName
Font name of values.
SoSFString titleFontName
Font name of the title.
Visibility
Type of visibility.
@ VISIBILITY_OFF
Invisible.
SoSFUShort numColumns
Number of columns of the legend.
SoSFFloat boxRatio
Ratio between width and height of the colored boxes in the legend.
SoSFString valueAddString
String to be concatenated.
SoSFString titleString
Title string.
SoSFBool valueAddStringVisibility
Visibility of a string concatenated to the values.
@ PATH_RIGHT
Writing from left to right.
@ PATH_LEFT
Writing from right to left.
@ PATH_UP
Writing from bottom to top.
@ PATH_DOWN
Writing from top to bottom.
SoSFEnum titlePosition
Title position.
void setMiscTextAttr(PbMiscTextAttr *textAttr)
Sets a reference to a PbMiscTextAttr for miscellaneous text attributes of all legend texts.
SoSFEnum titleVisibility
Title visibility.
MarginType
Type of margins.
@ FIXED_MARGIN
Absolute margin.
@ REL_MARGIN
Relative margin.
SoSFEnum incrementType
Increment type for the values of legend.
SoSFFloat marginRight
Right margin.
Class for smart character strings.
Maintains a list of pointers to fields.
Base class for all group nodes.
Field containing a single Boolean value.
Field containing an enumerated value.
Field containing a floating-point value.
Field containing a string.
Field containing an unsigned short integer.