Class to build 3D filled curve. More...
#include <MeshViz/graph/PoCurveFilling.h>
Public Types | |
enum | Orientation { HORIZONTAL, VERTICAL } |
Public Member Functions | |
virtual SoType | getTypeId () const |
virtual const SoNodekitCatalog * | getNodekitCatalog () const |
PoCurveFilling () | |
Static Public Member Functions | |
static SoType | getClassTypeId () |
static const SoNodekitCatalog * | getClassNodekitCatalog () |
Public Attributes | |
SoSFFloat | threshold |
SoSFFloat | width |
SoSFEnum | orientation |
Builds a 3D filled curve on 1D mesh (PoIrregularMesh1D or PoRegularMesh1D). The abscissas of the filled curve are given by the geometry of the current mesh 1D, and the ordinates 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 filled curve. This value is either an ordinate (VERTICAL orientation) or an abscissas (HORIZONTAL orientation). The thickness of the filled curve is specified by the field thicknessIndex which is an index of a value-set of the current mesh 1D. These values are multiplied by the field width. If thicknessIndex == -1, the thickness of the filled curve is the value of the field width. thickness fields are ignored if the field width is equal to 0. This class also takes into account of the current mesh 1D hints (PoMesh1DHints).
The interpretation of colorBinding is the following :
colorBinding | INHERITED |
yValuesIndex | 0 |
colorValuesIndex | 1 |
material | NULL |
thicknessIndex | -1 |
thicknessBinding | PER_VERTEX_THICKNESS |
thicknessFactor | 1.0 |
threshold | 0.0 |
width | 1.0 |
orientation | VERTICAL |
PoCurveFilling {
Separator alternateRep (from PoBase) {
AppearanceKit appearance (from PoBase)
Specifies the appearance of all the kit. By default lightModel.model=PHONG. The part material is set when the kit is rebuilt, if the field colorBinding is different from INHERITED.
MatrixTransform domainTransform (from PoBase)
Corresponds to the domain transformation.
Group curve (from PoCurveLine)
Contains a SoIndexedTriangleStripSet shape to draw the filled curve.
}
}
PoCurveFilling::PoCurveFilling | ( | ) |
Constructor.
static const SoNodekitCatalog* PoCurveFilling::getClassNodekitCatalog | ( | ) | [static] |
Returns the SoNodekitCatalog for this class.
Reimplemented from PoCurveLine.
static SoType PoCurveFilling::getClassTypeId | ( | ) | [static] |
Returns the type identifier for this class.
Reimplemented from PoCurveLine.
virtual const SoNodekitCatalog* PoCurveFilling::getNodekitCatalog | ( | ) | const [virtual] |
Returns the SoNodekitCatalog for this instance.
Reimplemented from PoCurveLine.
virtual SoType PoCurveFilling::getTypeId | ( | ) | const [virtual] |
Returns the type identifier for this specific instance.
Reimplemented from PoCurveLine.
Defines the orientation of the filled curve.
Defines the threshold of the origin of the filled curve.
This value is either an ordinate (VERTICAL orientation) or an abscissas (HORIZONTAL orientation).
Defines the width of the curve filled.
If the thicknessIndex is different from -1, thickness values are multiplied to this value. If this value is equal to 0, thicknessIndex, thicknessBinding and thicknessFactor are ignored.