72 class H3DAPI_API
SFBound:
public X3DGeometryNode::SFBound {
74 virtual void update() {
79 bb->
size->setValue( Vec3f( d, h+d, d ) );
85 Capsule( Inst< SFNode > _metadata = 0,
86 Inst< SFBound > _bound = 0,
87 Inst< SFBool > _bottom = 0,
88 Inst< SFFloat > _height = 0,
89 Inst< SFFloat > _radius = 0,
90 Inst< SFBool > _side = 0,
91 Inst< SFBool > _solid = 0,
92 Inst< SFBool > _top = 0 );
98 virtual void render();
104 virtual int nrTriangles();
156 H3DUniquePtr< SFBool >
top;
169 static const unsigned int theta_parts = 10;
171 static const unsigned int phi_parts = 5;
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 Capsule node.
Definition: Capsule.h:72
The Capsule node specifies a cylinder, with half-sphere as end caps, centred at (0,...
Definition: Capsule.h:63
H3DUniquePtr< Field > vboFieldsUpToDate
Internal field used to know if vertex buffer object can be created.
Definition: Capsule.h:164
H3DUniquePtr< SFBool > bottom
Specifies if the bottom of the Capsule should be rendered or not.
Definition: Capsule.h:112
H3DUniquePtr< SFBool > side
Specifies if the sides of the Capsule should be rendered or not.
Definition: Capsule.h:138
static H3DNodeDatabase database
The H3DNodeDatabase instance for this node.
Definition: Capsule.h:159
H3DUniquePtr< SFBool > top
Specifies if the top of the Capsule should be rendered or not.
Definition: Capsule.h:156
H3DUniquePtr< SFFloat > radius
The radius of the Capsule.
Definition: Capsule.h:130
H3DUniquePtr< SFBool > solid
The solid field determines whether the Capsule is visible when viewed from the inside.
Definition: Capsule.h:148
H3DUniquePtr< SFFloat > height
The height of the Capsule in meters.
Definition: Capsule.h:121
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