28#include <MeshViz/graph/PoGraphMaster.h>
30#include <Inventor/fields/SoSFEnum.h>
31#include <Inventor/fields/SoSFFloat.h>
32#include <Inventor/fields/SoSFBool.h>
33#include <Inventor/fields/SoSFUShort.h>
34#include <Inventor/fields/SoSFString.h>
60 SO_KIT_CATALOG_ENTRY_HEADER(backgroundSep) ;
61 SO_KIT_CATALOG_ENTRY_HEADER(backgroundApp) ;
62 SO_KIT_CATALOG_ENTRY_HEADER(background) ;
64 SO_KIT_CATALOG_ENTRY_HEADER(backgroundBorderSep) ;
65 SO_KIT_CATALOG_ENTRY_HEADER(backgroundBorderApp) ;
66 SO_KIT_CATALOG_ENTRY_HEADER(backgroundBorder) ;
68 SO_KIT_CATALOG_ENTRY_HEADER(boxSep) ;
69 SO_KIT_CATALOG_ENTRY_HEADER(boxApp) ;
70 SO_KIT_CATALOG_ENTRY_HEADER(box) ;
72 SO_KIT_CATALOG_ENTRY_HEADER(boxBorderSep) ;
73 SO_KIT_CATALOG_ENTRY_HEADER(boxBorderApp) ;
74 SO_KIT_CATALOG_ENTRY_HEADER(boxBorder) ;
76 SO_KIT_CATALOG_ENTRY_HEADER(titleSep) ;
77 SO_KIT_CATALOG_ENTRY_HEADER(titleApp) ;
78 SO_KIT_CATALOG_ENTRY_HEADER(title) ;
80 SO_KIT_CATALOG_ENTRY_HEADER(valueTextSep) ;
81 SO_KIT_CATALOG_ENTRY_HEADER(valueTextApp) ;
82 SO_KIT_CATALOG_ENTRY_HEADER(valueText) ;
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,
347 const SbVec2f &space_box,
const Plimit &limit) ;
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,
357 const SbVec2f &space_box,
const Plimit &limit,
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 ;
<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.