Class to build a 3D arrow. More...
#include <MeshViz/graph/PoArrow3.h>
Public Types | |
enum | PatternType { NO_PATTERN, DIRECT_TRIANGLE, INDIRECT_TRIANGLE, RECTANGLE } |
Public Member Functions | |
virtual SoType | getTypeId () const |
virtual const SoNodekitCatalog * | getNodekitCatalog () const |
PoArrow3 () | |
PoArrow3 (int numPoints, const SbVec3f *_point, PatternType startType=NO_PATTERN, PatternType endType=NO_PATTERN, float _patternWidth=0.05f, float _patternHeight=0.03f) | |
virtual void | rebuild () |
Static Public Member Functions | |
static SoType | getClassTypeId () |
static const SoNodekitCatalog * | getClassNodekitCatalog () |
Public Attributes | |
SoMFVec3f | point |
SoSFEnum | startPatternType |
SoSFEnum | endPatternType |
SoSFFloat | patternWidth |
SoSFFloat | patternHeight |
This node draws a 3D arrow. The arrow is defined by a point list. The start pattern and the end pattern can be parameterized.
This node draws a single 3D arrow consisting of a polyline with optional arrowhead or rectangle at each end. Therefore the minimum number of points is 2. Additional points could be used to make, for example, a curved arrow.
point | 0 0 0 |
startPatternType | NO_PATTERN |
endPatternType | NO_PATTERN |
patternWidth | 0.05 |
patternHeight | 0.03 |
Type of pattern at the arrow extremities.
PoArrow3::PoArrow3 | ( | ) | [inline] |
Default constructor.
PoArrow3::PoArrow3 | ( | int | numPoints, | |
const SbVec3f * | _point, | |||
PatternType | startType = NO_PATTERN , |
|||
PatternType | endType = NO_PATTERN , |
|||
float | _patternWidth = 0.05f , |
|||
float | _patternHeight = 0.03f | |||
) | [inline] |
Constructor.
static const SoNodekitCatalog* PoArrow3::getClassNodekitCatalog | ( | ) | [static] |
Returns the SoNodekitCatalog for this class.
Reimplemented from PoGraphMaster.
static SoType PoArrow3::getClassTypeId | ( | ) | [static] |
Returns the type identifier for this class.
Reimplemented from PoGraphMaster.
virtual const SoNodekitCatalog* PoArrow3::getNodekitCatalog | ( | ) | const [virtual] |
Returns the SoNodekitCatalog for this instance.
Reimplemented from PoGraphMaster.
virtual SoType PoArrow3::getTypeId | ( | ) | const [virtual] |
Returns the type identifier for this specific instance.
Reimplemented from PoGraphMaster.
virtual void PoArrow3::rebuild | ( | ) | [virtual] |
Defines the end arrow pattern type.
Define the height of the start and end arrow pattern.
It is given in the normalized space [0-1]x[0-1]x([0-1]) defined by the current domain (cf PoBase description).
Define the width of the start and end arrow pattern.
It is given in the normalized space [0-1]x[0-1]x([0-1]) defined by the current domain (cf PoBase description).
Point list of the arrow.
Defines the start arrow pattern type.