Class to build a 2D tube curve. More...
#include <MeshViz/graph/PoTube.h>
Public Member Functions | |
virtual SoType | getTypeId () const |
virtual const SoNodekitCatalog * | getNodekitCatalog () const |
PoTube () | |
Static Public Member Functions | |
static SoType | getClassTypeId () |
static const SoNodekitCatalog * | getClassNodekitCatalog () |
Builds a 2D tube curve on 1D mesh (PoIrregularMesh1D or PoRegularMesh1D). The abscissas of the tube 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. The thickness of the tube 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 tube is the value of the field width. The shape of the profile is given by the current profile (PoProfile and its derived nodes). The profile must be defined in the plane ZY. Profiles can be beveled according to the current beveled edge values (PoBeveledEdge). The current complexity (SoComplexity) is used to determine the tessellation of the current profile.
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 |
PoTube {
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 tube and a SoIndexedFaceSet to draw the surface at extremities of the tube.
}
}
PoTube::PoTube | ( | ) |
Constructor.
static const SoNodekitCatalog* PoTube::getClassNodekitCatalog | ( | ) | [static] |
Returns the SoNodekitCatalog for this class.
Reimplemented from PoCurveLine.
static SoType PoTube::getClassTypeId | ( | ) | [static] |
Returns the type identifier for this class.
Reimplemented from PoCurveLine.
virtual const SoNodekitCatalog* PoTube::getNodekitCatalog | ( | ) | const [virtual] |
Returns the SoNodekitCatalog for this instance.
Reimplemented from PoCurveLine.
virtual SoType PoTube::getTypeId | ( | ) | const [virtual] |
Returns the type identifier for this specific instance.
Reimplemented from PoCurveLine.