PoAutoValueLegend Class Reference
[Legend]

MeshViz Abstract class for automatic value legend. More...

#include <MeshViz/graph/PoAutoValueLegend.h>

Inheritance diagram for PoAutoValueLegend:
PoValueLegend PoLegend PoGraphMaster PoBase SoBaseKit SoNode SoGetView SoFieldContainer SoBase SoRefCounter SoTypedObject PoLinearValueLegend PoNonLinearValueLegend1 PoNonLinearValueLegend2 PoNonLinearValueLegend3

List of all members.

Public Member Functions

virtual SoType getTypeId () const
virtual const SoNodekitCataloggetNodekitCatalog () const

Static Public Member Functions

static SoType getClassTypeId ()
static const SoNodekitCataloggetClassNodekitCatalog ()

Public Attributes

SoSFVec2f start
SoSFVec2f end

Detailed Description

MeshViz Abstract class for automatic value legend.

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.


Member Function Documentation

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.


Member Data Documentation

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.


The documentation for this class was generated from the following file:

Open Inventor Toolkit reference manual, generated on 16 Jul 2020
Copyright © Thermo Fisher Scientific All rights reserved.
http://www.openinventor.com/