Class to build a 2D ribbon curve. More...
#include <MeshViz/graph/PoRibbon.h>
Public Member Functions | |
virtual SoType | getTypeId () const |
virtual const SoNodekitCatalog * | getNodekitCatalog () const |
PoRibbon () | |
Static Public Member Functions | |
static SoType | getClassTypeId () |
static const SoNodekitCatalog * | getClassNodekitCatalog () |
Public Attributes | |
SoSFFloat | width |
Builds a 2D ribbon curve on 1D mesh (PoIrregularMesh1D or PoRegularMesh1D). The abscissas of the ribbon 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 ribbon 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 ribbon is the value of the field width. 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 |
width | 1.0 |
PoRibbon {
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 ribbon.
}
}
PoRibbon::PoRibbon | ( | ) |
Constructor.
static const SoNodekitCatalog* PoRibbon::getClassNodekitCatalog | ( | ) | [static] |
Returns the SoNodekitCatalog for this class.
Reimplemented from PoCurveLine.
static SoType PoRibbon::getClassTypeId | ( | ) | [static] |
Returns the type identifier for this class.
Reimplemented from PoCurveLine.
virtual const SoNodekitCatalog* PoRibbon::getNodekitCatalog | ( | ) | const [virtual] |
Returns the SoNodekitCatalog for this instance.
Reimplemented from PoCurveLine.
virtual SoType PoRibbon::getTypeId | ( | ) | const [virtual] |
Returns the type identifier for this specific instance.
Reimplemented from PoCurveLine.
Defines the width of the ribbon.
If the thicknessIndex is different from -1, thickness values are multiplied to this value.