29 #ifndef __RECTANGLE2D_H__
30 #define __RECTANGLE2D_H__
70 class SFBound:
public X3DGeometryNode::SFBound {
72 virtual void update() {
75 bb->
size->setValue( Vec3f( b.x, b.y, 0 ) );
82 Inst< SFBound > _bound = 0,
83 Inst< DisplayList > _displayList = 0,
84 Inst< MFBool > _isTouched = 0,
85 Inst< MFVec3f > _force = 0,
86 Inst< MFVec3f > _contactPoint = 0,
87 Inst< MFVec3f > _contactNormal = 0,
88 Inst< SFVec2f > _size = 0,
89 Inst< SFBool > _solid = 0 );
92 virtual void render();
Contains the SFVec2f 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
H3DUniquePtr< SFVec3f > size
The size of the bounding box.
Definition: Bound.h:287
SFBound is specialized update itself from the size field of the Rectangle2D node.
Definition: Rectangle2D.h:70
The Rectangle2D node specifies a rectangle centred at (0, 0) in the current local 2D coordinate syste...
Definition: Rectangle2D.h:62
static H3DNodeDatabase database
The H3DNodeDatabase for this node.
Definition: Rectangle2D.h:123
virtual int nrTriangles()
The number of triangles rendered by this geometry.
Definition: Rectangle2D.h:99
H3DUniquePtr< SFBool > solid
The solid field specifies if both sides of the rectangle should be rendered.
Definition: Rectangle2D.h:120
H3DUniquePtr< SFVec2f > size
The size field specifies the extents of the box along the X-, and Y-axes respectively and each compon...
Definition: Rectangle2D.h:111
The SFVec2f field contains a Vec2f.
Definition: SFVec2f.h:41
TraverseInfo is a structure that is passed along when traversing the scene graph.
Definition: TraverseInfo.h:57
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