Node to define the numeric display format. More...
#include <MeshViz/nodes/PoNumericDisplayFormat.h>
Public Types | |
enum | FormatType { AUTO_FORMAT, FLOAT_FORMAT, INTEGER_FORMAT } |
Public Member Functions | |
virtual SoType | getTypeId () const |
PoNumericDisplayFormat () | |
Static Public Member Functions | |
static SoType | getClassTypeId () |
Public Attributes | |
SoSFEnum | formatType |
SoSFShort | numDecimal |
SoSFShort | tenPower |
This node defines the current numeric display format for all subsequent MeshViz representations which display numeric values. This node is used to define the numerical display format of mumerical values to be displayed. There are three formats available: automatic format, floating point format, integer format. The automatic format selects the best format adapted to the domain of values to be displayed. The floating point format and the integer format divide the numerical value to be displayed by the power of ten, and then display it in the selected format.
formatType | AUTO_FORMAT |
numDecimal | 0 |
tenPower | 0 |
PoNumericDisplayFormat::PoNumericDisplayFormat | ( | ) |
Constructor.
static SoType PoNumericDisplayFormat::getClassTypeId | ( | ) | [static] |
Returns the type identifier for this class.
Reimplemented from PoNode.
virtual SoType PoNumericDisplayFormat::getTypeId | ( | ) | const [virtual] |
Returns the type identifier for this specific instance.
Reimplemented from PoNode.
Defines the type of format.
Defines the number of decimals placed after the decimal point.
Used only if the format is FLOAT_FORMAT.
Defines the power of ten divisor.
Unused if the format is AUTO_FORMAT.