76 virtual void update() {
79 bb->
size->setValue( Vec3f( d, d, 0.f ) );
85 Disk2D( Inst< SFNode > _metadata = 0,
86 Inst< SFBound > _bound = 0,
87 Inst< DisplayList > _displayList = 0,
88 Inst< MFBool > _isTouched = 0,
89 Inst< MFVec3f > _force = 0,
90 Inst< MFVec3f > _contactPoint = 0,
91 Inst< MFVec3f > _contactNormal = 0,
92 Inst< SFFloat > _innerRadius = 0,
93 Inst< SFFloat > _outerRadius = 0,
94 Inst< SFBool > _solid = 0 );
97 virtual void render();
105 if( innerRadius->getValue() == 0 ) {
107 }
else if( innerRadius->getValue() != outerRadius->getValue() ) {
113 virtual int nrLines() {
114 if( innerRadius->getValue() == outerRadius->getValue() )
return 40;
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 field of the Box node.
Definition: Disk2D.h:74
The Disk2D node specifies a circular disk which is centred at (0, 0) in the local coordinate system.
Definition: Disk2D.h:65
H3DUniquePtr< SFFloat > innerRadius
The innerRadius field specifies the inner dimension of the Disk2D.
Definition: Disk2D.h:128
H3DUniquePtr< SFBool > solid
The solid field specifies if both sides of the closed arc should be rendered.
Definition: Disk2D.h:147
H3DUniquePtr< SFFloat > outerRadius
The outerRadius field specifies the radius of the outer dimension of the Disk2D.
Definition: Disk2D.h:138
static H3DNodeDatabase database
The H3DNodeDatabase for this node.
Definition: Disk2D.h:150
virtual int nrTriangles()
The number of triangles rendered by this geometry.
Definition: Disk2D.h:104
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
A template modifier class for adding type checking on the routes to any Field class.
Definition: TypedField.h:84
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