26#include <MeshVizXLM/mapping/nodes/MoMeshBaseRepresentation.h>
27#include <MeshVizXLM/mapping/interfaces/MiColorMapping.h>
29#include <MeshVizXLM/MbVec3.h>
31#include <Inventor/misc/SoRef.h>
32#include <Inventor/caches/SoCache.h>
33#include <Inventor/fields/SoSFDouble.h>
34#include <Inventor/fields/SoSFVec2f.h>
35#include <Inventor/fields/SoSFUInt32.h>
39#pragma warning(disable:4251)
44class MdSurfaceMeshRectilinear;
48class MdLevelColorMapping;
49class MdLinearColorMapping;
50class MdPredefinedColorMapping;
233 virtual void doAction(
SoAction *action);
236 static void initClass() ;
237 static void exitClass() ;
242 void fillLegend(
SoState* state);
243 void fillLevelCM(
SoState* state,
const MdLevelColorMapping& levelCM);
244 void fillLinearCM(
SoState* state,
const MdLinearColorMapping& linearCM);
245 void fillPredefCM(
SoState* state,
const MdPredefinedColorMapping& predefCM);
247 void createMesh(
SoState* state,
int ind, std::vector<float>& coords0, std::vector<float> coords1,
float xmin,
float xmax,
double vmin,
double vmax);
250 void drawTitle(
SoState* state);
251 void drawValues(
SoState* state,
double vmin,
double vmax);
255 MdSurfaceMesh* m_surface;
258 MdSurfaceMeshRectilinear* m_legendMesh;
259 MxScalarSetIj* m_scalarSet;
263 void buildCache(
SoState *state );
<a href="IconLegend.html"><img src="extMV.gif" alt="MeshViz" border="0"></a> Interface class defining...
<a href="IconLegend.html"><img src="extMV.gif" alt="MeshViz" border="0"></a> Rendering node that disp...
SoSFString title
The title of the legend.
SoSFBool vertical
If TRUE, the legend is vertical.
SoSFEnum valueNotation
Defines the notation type (fixed or scientific) used to display the values of this legend.
SoSFColor titleColor
Color for the title of the legend.
SoSFVec2f bottomLeft
Bottom left corner of the rectangle in which the legend will be drawn.
SoSFDouble minValue
The minimum value defining the range of data to display in the legend.
SoSFFloat titleFontSize
The size of the font for the title of the legend.
SoSFBool displayValues
If TRUE, display numValues values starting from the minimal to the maximal values of the colormap.
SoSFVec2f topRight
Top-right corner of the rectangle in which the legend will be drawn.
SoSFEnum titlePosition
The position of the title relative to the legend box.
SoSFUInt32 valuePrecision
Defines the maximum number of significant digits to display, or the maximum number of digits after th...
SoSFInt32 numValues
The number of values displayed near the colorbar.
SoSFDouble maxValue
The maximum value defining the range of data to display in the legend.
Position
Position of the title.
SoSFColor valuesColor
Color for the values of the legend.
SoSFFloat valuesFontSize
The size of the font for the values of the legend.
Notation
Notation type of the values.
<a href="IconLegend.html"><img src="extMV.gif" alt="MeshViz" border="0"></a> Abstract base class for ...
Abstract base class for all actions.
Smart pointer for any class inheriting SoRefCounter.
Field containing a single Boolean value.
Field containing an RGB color.
Field containing a floating-point value.
Field containing an enumerated value.
Field containing a floating-point value.
Field containing a int32_t integer.
Field containing a string.
Field containing an unsigned int32_t integer.
Field containing a two-dimensional vector.
Group node that saves and restores traversal state.