79 class SFBound:
public X3DGeometryNode::SFBound {
81 virtual void update() {
84 bb->
size->setValue( b );
90 Box( Inst< SFNode > _metadata = 0,
91 Inst< SFBound > _bound = 0,
92 Inst< SFVec3f > _size = 0,
93 Inst< SFBool > _solid = 0 );
96 virtual void render();
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 Box node.
Definition: Box.h:79
The Box node specifies a rectangular parallelepiped box centred at (0, 0, 0) in the local coordinate ...
Definition: Box.h:71
H3DUniquePtr< SFBool > solid
The solid field determines whether the box is visible when viewed from the inside.
Definition: Box.h:122
static H3DNodeDatabase database
The H3DNodeDatabase for this node.
Definition: Box.h:125
virtual int nrTriangles()
The number of triangles rendered by this geometry.
Definition: Box.h:99
H3DUniquePtr< SFVec3f > size
The size field specifies the extents of the box along the X-, Y-, and Z-axes respectively.
Definition: Box.h:114
The SFVec3f field contains a Vec3f.
Definition: SFVec3f.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