Class to build generalized bars. More...
#include <MeshViz/graph/PoGeneralizedBar.h>
Public Member Functions | |
virtual SoType | getTypeId () const |
virtual const SoNodekitCatalog * | getNodekitCatalog () const |
PoGeneralizedBar () | |
Static Public Member Functions | |
static SoType | getClassTypeId () |
static const SoNodekitCatalog * | getClassNodekitCatalog () |
Public Attributes | |
SoMFNode | bars |
SoSFVec3f | scaleFactor |
Build bars on 1D mesh (PoIrregularMesh1D or PoRegularMesh1D), where each bar is defined by a sub-scene graph. The field bars is used to define the sub-scene graph of each bar. If the number of sub-scene graphs is inferior to the number of bars to draw, they are cyclically used. The field scaleFactor specifies a possibly non uniform scale applied to each bar. The orientation of the bars can be horizontal or vertical. The abscissas (ordinates if HORIZONTAL orientation) of the bars are given by the geometry of the current mesh 1D, and the height (width if HORIZONTAL orientation) are given by one of the value-set of the current mesh 1D specified by the field yValuesIndex. A threshold defines the origin of the bars. This value is either an ordinate (VERTICAL orientation) or an abscissas (HORIZONTAL orientation). This class also takes into account of the current mesh 1D hints (PoMesh1DHints) and the current mesh 1D filter (PoMesh1DFilter) to filter the geometry of the current mesh 1D .
The interpretation of colorBinding is the following :
colorBinding | INHERITED |
yValuesIndex | 0 |
colorValuesIndex | 1 |
material | NULL |
bars | NULL |
scaleFactor | 1 1 1 |
orientation | VERTICAL |
threshold | 0.0 |
PoGeneralizedBar {
Separator alternateRep (from PoBase) {
AppearanceKit appearance (from PoBase)
Specifies the appearance of all the kit. By default lightModel.model=PHONG.
MatrixTransform domainTransform (from PoBase)
Corresponds to the domain transformation.
Group bar (from PoBar)
Contains a list of couple SoMaterial and sub-scene graph containing the bars if the field colorBinding is different from INHERITED, a list of sub-scene graphs otherwise.
}
}
PoGeneralizedBar::PoGeneralizedBar | ( | ) |
Constructor.
static const SoNodekitCatalog* PoGeneralizedBar::getClassNodekitCatalog | ( | ) | [static] |
Returns the SoNodekitCatalog for this class.
Reimplemented from PoBar.
static SoType PoGeneralizedBar::getClassTypeId | ( | ) | [static] |
Returns the type identifier for this class.
Reimplemented from PoBar.
virtual const SoNodekitCatalog* PoGeneralizedBar::getNodekitCatalog | ( | ) | const [virtual] |
Returns the SoNodekitCatalog for this instance.
Reimplemented from PoBar.
virtual SoType PoGeneralizedBar::getTypeId | ( | ) | const [virtual] |
Returns the type identifier for this specific instance.
Reimplemented from PoBar.
Defines the sub-scene graphs used for each bar.
If the number of sub-scene graphs is inferior to the number of bars to draw, they are cyclically used. Each sub-scene graph defining each bar is considered to be specified vertically in the plane XY.
Specifies a possibly non uniform scale applied to each bar.
If the orientation is VERTICAL, only the X and Z components are used, and if the orientation is HORIZONTAL, only the Y and Z components are used. If a component has a negative value, the scale in the component direction is relative to the height (resp. width) of the histogram, otherwise this an absolute scale.