Abstract class for automatic value legend. More...
#include <MeshViz/graph/PoAutoValueLegend.h>
Public Member Functions | |
virtual SoType | getTypeId () const |
virtual const SoNodekitCatalog * | getNodekitCatalog () const |
Static Public Member Functions | |
static SoType | getClassTypeId () |
static const SoNodekitCatalog * | getClassNodekitCatalog () |
Public Attributes | |
SoSFVec2f | start |
SoSFVec2f | end |
This class represents a value legend delimited by a rectangle defined by the points start and end. Values of the legend are drawn from the start point to the end point, so reversing their two points reverses also the value order.
The distribution of the color boxes is handled automatically according to the number of values and the geometry of the rectangle delimiting the legend. The box sizes and the font size are calculated so that the boxes occupy the entire space inside the legend rectangle.
static const SoNodekitCatalog* PoAutoValueLegend::getClassNodekitCatalog | ( | ) | [static] |
Returns the SoNodekitCatalog for this class.
Reimplemented from PoValueLegend.
Reimplemented in PoLinearValueLegend, PoNonLinearValueLegend1, PoNonLinearValueLegend2, and PoNonLinearValueLegend3.
static SoType PoAutoValueLegend::getClassTypeId | ( | ) | [static] |
Returns the type identifier for this class.
Reimplemented from PoValueLegend.
Reimplemented in PoLinearValueLegend, PoNonLinearValueLegend1, PoNonLinearValueLegend2, and PoNonLinearValueLegend3.
virtual const SoNodekitCatalog* PoAutoValueLegend::getNodekitCatalog | ( | ) | const [virtual] |
Returns the SoNodekitCatalog for this instance.
Reimplemented from PoValueLegend.
Reimplemented in PoLinearValueLegend, PoNonLinearValueLegend1, PoNonLinearValueLegend2, and PoNonLinearValueLegend3.
virtual SoType PoAutoValueLegend::getTypeId | ( | ) | const [virtual] |
Returns the type identifier for this specific instance.
Reimplemented from PoValueLegend.
Reimplemented in PoLinearValueLegend, PoNonLinearValueLegend1, PoNonLinearValueLegend2, and PoNonLinearValueLegend3.
Second point of the same diagonal.
First point of one of the diagonals of the rectangle delimiting the legend.
Values of the legend are drawn from the start point to the end point, so reversing their two points reverses also the values order. For instance if start = SbVec2f(0,0) and end = SbVec2f(0.5, 1), values are drawn from the down to the up.