PoItemLegend Class Reference
[Legend]

MeshViz Class to build an items legend. More...

#include <MeshViz/graph/PoItemLegend.h>

Inheritance diagram for PoItemLegend:
PoLegend PoGraphMaster PoBase SoBaseKit SoNode SoGetView SoFieldContainer SoBase SoRefCounter SoTypedObject

List of all members.

Public Member Functions

virtual SoType getTypeId () const
virtual const SoNodekitCataloggetNodekitCatalog () const
 PoItemLegend ()
 PoItemLegend (const SbVec2f &_start, const SbVec2f &_end, int _numItems, const char **_item, const SbColor *_boxColor=NULL)
virtual void rebuild ()

Static Public Member Functions

static SoType getClassTypeId ()
static const SoNodekitCataloggetClassNodekitCatalog ()

Public Attributes

SoSFVec2f start
SoSFVec2f end
SoMFString item
SoSFBool boxVisibility
SoMFColor boxColor
SoSFBool lineVisibility
SoMFColor lineColor
SoMFFloat lineSize
SoMFUShort linePattern
SoSFBool markerVisibility
SoMFColor markerColor
SoMFFloat markerSize
SoMFString markerString

Detailed Description

MeshViz Class to build an items legend.

This legend associates a string (this is the values of the legend) to a box or/and a line or/and a marker. All the sizes cannot be controlled by the application and depend on the dimensions of the legend. The font size F of strings is calculated as function of the rectangle delimiting the legend. The size of the markers is equal to F. The height of the boxes is equal to 1.5 * F, and the width of the lines and of the boxes is equal to 1.5 * F * boxRatio.

FILE FORMAT/DEFAULT


Open Inventor Toolkit reference manual, generated on 4 Sep 2023
Copyright © Thermo Fisher Scientific All rights reserved.
https://www.openinventor.com/