Class to build a linear auto value legend. More...
#include <MeshViz/graph/PoLinearValueLegend.h>
Public Types | |
enum | ValueDistribution { ALL_VALUES, LINEAR_VALUES, MIN_MAX_VALUES } |
Public Member Functions | |
virtual SoType | getTypeId () const |
virtual const SoNodekitCatalog * | getNodekitCatalog () const |
PoLinearValueLegend () | |
PoLinearValueLegend (const SbVec2f &_start, const SbVec2f &_end, ValueDistribution distribution=ALL_VALUES) | |
virtual void | rebuild () |
Static Public Member Functions | |
static SoType | getClassTypeId () |
static const SoNodekitCatalog * | getClassNodekitCatalog () |
Public Attributes | |
SoSFEnum | valueDistribution |
SoSFFloat | maxValueSize |
SoSFBool | lowerUpperBoxes |
Class to build a linear value legend. The space between boxes is null and their width (or their height) is proportional to the difference between two consecutive values. The legend is composed of one column (or one row depending on the orientation of the legend). There are three possible representations:
titleVisibility | VISIBILITY_OFF |
titlePosition | POS_BOTTOM |
titlePath | RIGHT_PATH |
titleFontSize | 0 |
titleFontName | "" |
titleString | "" |
valueVisibility | VISIBILITY_ON |
valuePosition | POS_RIGHT |
valueFontName | "" |
valueAddStringVisibility | FALSE |
valueAddString | "" |
marginType | REL_MARGIN |
marginLeft | 0.05 |
marginRight | 0.05 |
marginBottom | 0.05 |
marginTop | 0.05 |
incrementType | VERTICAL_INCREMENT |
numColumns | 1 |
boxRatio | 1 |
periodValue | 1 |
firstValue | 1 |
lastValue | 32767 |
start | 0 0 |
end | 1 1 |
valueDistribution | ALL_VALUES |
maxValueSize | 0.6 |
lowerUndefString | "UNDEF<" |
upperUndefString | "UNDEF>" |
lowerUpperBoxes | TRUE |
PoLinearValueLegend::PoLinearValueLegend | ( | ) |
Default constructor.
PoLinearValueLegend::PoLinearValueLegend | ( | const SbVec2f & | _start, | |
const SbVec2f & | _end, | |||
ValueDistribution | distribution = ALL_VALUES | |||
) |
Constructor.
static const SoNodekitCatalog* PoLinearValueLegend::getClassNodekitCatalog | ( | ) | [static] |
Returns the SoNodekitCatalog for this class.
Reimplemented from PoAutoValueLegend.
static SoType PoLinearValueLegend::getClassTypeId | ( | ) | [static] |
Returns the type identifier for this class.
Reimplemented from PoAutoValueLegend.
virtual const SoNodekitCatalog* PoLinearValueLegend::getNodekitCatalog | ( | ) | const [virtual] |
Returns the SoNodekitCatalog for this instance.
Reimplemented from PoAutoValueLegend.
virtual SoType PoLinearValueLegend::getTypeId | ( | ) | const [virtual] |
Returns the type identifier for this specific instance.
Reimplemented from PoAutoValueLegend.
virtual void PoLinearValueLegend::rebuild | ( | ) | [virtual] |
Indicates if lower and upper boxes should be displayed.
The color of the lower box is the color associated with values less than the minimum, and the color of the upper box is the color associated with values greater than the maximum.
NOTE: field available since Open Inventor 6.0Indicates the maximum size of text values.
If the legend is vertical, this value is the maximum percentage of the width of text values relative to the legend width (without margin). If the legend is horizontal, this value is the maximum percentage of the height of text values relative to the legend height (without margin).
Specifies the distribution of the values.