29 #ifndef __POLYLINE2D_H__
30 #define __POLYLINE2D_H__
63 virtual void callList(
bool build_list =
true );
74 virtual void update() {
75 const vector< Vec2f > &points =
78 _bound->fitAround2DPoints( points.begin(), points.end() );
85 Inst< SFBound > _bound = 0,
86 Inst< DisplayList > _displayList = 0,
87 Inst< MFBool > _isTouched = 0,
88 Inst< MFVec3f > _force = 0,
89 Inst< MFVec3f > _contactPoint = 0,
90 Inst< MFVec3f > _contactNormal = 0,
91 Inst< MFVec2f > _lineSegments = 0 );
96 virtual void render();
100 return lineSegments->size();
Contains the MFVec2f field class.
Header file for X3DGeometryNode, X3D scene-graph node.
The BoxBound is a Bound class that specifies the bound using an axis-aligned bounding box.
Definition: Bound.h:144
The MFVec2f field contains a vector of Vec2f.
Definition: MFVec2f.h:41
Display list is extended in order to set color to emissive color from material outside of display lis...
Definition: Polyline2D.h:60
SFBound is specialized update itself from the lineSegments field of the Polyline2D node.
Definition: Polyline2D.h:72
The Polyline2D node specifies a series of contiguous line segments in the local 2D coordinate system ...
Definition: Polyline2D.h:53
H3DUniquePtr< Field > vboFieldsUpToDate
Internal field used to know if vertex buffer object can be created.
Definition: Polyline2D.h:115
virtual int nrLines()
The number of lines rendered by this geometry.
Definition: Polyline2D.h:99
H3DUniquePtr< MFVec2f > lineSegments
The lineSegments field specifies the vertices to be connected.
Definition: Polyline2D.h:108
static H3DNodeDatabase database
The H3DNodeDatabase for this node.
Definition: Polyline2D.h:111
A template modifier class for adding type checking on the routes to any Field class.
Definition: TypedField.h:84
Display list is extended in order to set front sidedness of triangles outside the display list.
Definition: X3DGeometryNode.h:76
This is the base node type for all geometry in X3D.
Definition: X3DGeometryNode.h:61
Type getValue(const char *s, const char *&rest)
Function that reads characters from a char * and converts them to a given type.
Definition: X3DFieldConversion.h:134
H3D API namespace.
Definition: Anchor.h:38
The H3DNodeDatabase contains a mapping between a name of a Node and the constructor for the Node with...
Definition: H3DNodeDatabase.h:194