29 #ifndef __CYLINDER_H__
30 #define __CYLINDER_H__
87 class SFBound:
public X3DGeometryNode::SFBound {
89 virtual void update() {
94 bb->
size->setValue( Vec3f( d, h, d ) );
100 Cylinder( Inst< SFNode > _metadata = 0,
101 Inst< SFBound > _bound = 0,
102 Inst< SFBool > _bottom = 0,
103 Inst< SFFloat> _height = 0,
104 Inst< SFFloat> _radius = 0,
105 Inst< SFBool > _side = 0,
106 Inst< SFBool > _solid = 0,
107 Inst< SFBool > _top = 0 );
113 virtual void render();
172 H3DUniquePtr< SFBool >
top;
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 Cylinder node.
Definition: Cylinder.h:87
The Cylinder node specifies a capped cylinder centred at (0,0,0) in the local coordinate system and w...
Definition: Cylinder.h:78
H3DUniquePtr< SFBool > solid
The solid field determines whether the cylinder is visible when viewed from the inside.
Definition: Cylinder.h:164
H3DUniquePtr< SFBool > top
Specifies if the top of the cylinder should be rendered or not.
Definition: Cylinder.h:172
H3DUniquePtr< Field > vboFieldsUpToDate
Internal field used to know if vertex buffer object can be created.
Definition: Cylinder.h:178
virtual int nrTriangles()
The number of triangles rendered by this geometry.
Definition: Cylinder.h:119
H3DUniquePtr< SFBool > side
Specifies if the sides of the Cylinder should be rendered or not.
Definition: Cylinder.h:154
H3DUniquePtr< SFBool > bottom
Specifies if the bottom of the Cylinder should be rendered or not.
Definition: Cylinder.h:128
H3DUniquePtr< SFFloat > radius
The radius of the Cylinder.
Definition: Cylinder.h:146
H3DUniquePtr< SFFloat > height
The height of the Cylinder in meters.
Definition: Cylinder.h:137
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