84 class SFBound:
public X3DGeometryNode::SFBound {
86 virtual void update() {
91 bb->
size->setValue( Vec3f( d, h, d ) );
97 Cone( Inst< SFNode > _metadata = 0,
98 Inst< SFBound > _bound = 0,
99 Inst< SFBool > _bottom = 0,
100 Inst< SFFloat > _bottomRadius = 0,
101 Inst< SFFloat > _height = 0,
102 Inst< SFBool > _side = 0,
103 Inst< SFBool > _solid = 0 );
106 virtual void render();
Contains the SFFloat 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 radius and heigh field of the Cone node.
Definition: Cone.h:84
The Cone node specifies a cone which is centred in the local coordinate system and whose central axis...
Definition: Cone.h:75
H3DUniquePtr< SFFloat > bottomRadius
The bottomRadius field specifies the radius of the cone's base.
Definition: Cone.h:127
H3DUniquePtr< SFBool > bottom
The side field specifies whether the bottom cap of the cone is rendered.
Definition: Cone.h:121
H3DUniquePtr< SFBool > solid
The solid field determines whether the box is visible when viewed from the inside.
Definition: Cone.h:147
H3DUniquePtr< SFFloat > height
The height field specifies the height of the cone from the centre of the base to the apex.
Definition: Cone.h:134
virtual int nrTriangles()
The number of triangles rendered by this geometry.
Definition: Cone.h:109
H3DUniquePtr< SFBool > side
The side field specifies whether the sides of the cone are rendered.
Definition: Cone.h:140
static H3DNodeDatabase database
The H3DNodeDatabase for this node.
Definition: Cone.h:150
The SFFloat field contains one single-precision floating point number.
Definition: SFFloat.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