Class to build a 2D arrow. More...
#include <MeshViz/graph/PoArrow.h>
Public Types | |
enum | PatternType { NO_PATTERN, DIRECT_TRIANGLE, INDIRECT_TRIANGLE, RECTANGLE } |
Public Member Functions | |
virtual SoType | getTypeId () const |
virtual const SoNodekitCatalog * | getNodekitCatalog () const |
PoArrow () | |
PoArrow (int numPoints, const SbVec2f *_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 | |
SoMFVec2f | point |
SoSFEnum | startPatternType |
SoSFEnum | endPatternType |
SoSFFloat | patternWidth |
SoSFFloat | patternHeight |
This class builds an arrow in the plane XY. The arrow is defined by a point list. The start pattern and the end pattern can be parameterized.
point | 0 0 |
startPatternType | NO_PATTERN |
endPatternType | NO_PATTERN |
patternWidth | 0.05 |
patternHeight | 0.03 |
enum PoArrow::PatternType |
PoArrow::PoArrow | ( | ) | [inline] |
Default constructor.
PoArrow::PoArrow | ( | int | numPoints, | |
const SbVec2f * | _point, | |||
PatternType | startType = NO_PATTERN , |
|||
PatternType | endType = NO_PATTERN , |
|||
float | _patternWidth = 0.05f , |
|||
float | _patternHeight = 0.03f | |||
) | [inline] |
Constructor.
static const SoNodekitCatalog* PoArrow::getClassNodekitCatalog | ( | ) | [static] |
Returns the SoNodekitCatalog for this class.
Reimplemented from PoGraphMaster.
static SoType PoArrow::getClassTypeId | ( | ) | [static] |
Returns the type identifier for this class.
Reimplemented from PoGraphMaster.
virtual const SoNodekitCatalog* PoArrow::getNodekitCatalog | ( | ) | const [virtual] |
Returns the SoNodekitCatalog for this instance.
Reimplemented from PoGraphMaster.
virtual SoType PoArrow::getTypeId | ( | ) | const [virtual] |
Returns the type identifier for this specific instance.
Reimplemented from PoGraphMaster.
virtual void PoArrow::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.