H3D::Disk2D Class Reference
[X3D node classes.]

The Disk2D node specifies a circular disk which is centred at (0, 0) in the local coordinate system. More...

#include <H3D/Disk2D.h>

Inheritance diagram for H3D::Disk2D:

Inheritance graph

List of all members.

Classes

class  SFBound
 SFBound is specialized update itself from the radius field of the Box node. More...

Public Member Functions

 Disk2D (Inst< SFNode > _metadata=0, Inst< SFBound > _bound=0, Inst< DisplayList > _displayList=0, Inst< MFBool > _isTouched=0, Inst< MFVec3f > _force=0, Inst< MFVec3f > _contactPoint=0, Inst< MFVec3f > _contactNormal=0, Inst< SFFloat > _innerRadius=0, Inst< SFFloat > _outerRadius=0, Inst< SFBool > _solid=0)
 Constructor.
virtual void render ()
 Renders the Disk2D using OpenGL.
virtual void traverseSG (TraverseInfo &ti)
 Traverse the scenegraph.
virtual int nrTriangles ()
 The number of triangles rendered by this geometry.

Public Attributes

auto_ptr< SFFloatinnerRadius
 The innerRadius field specifies the inner dimension of the Disk2D.
auto_ptr< SFFloatouterRadius
 The outerRadius field specifies the radius of the outer dimension of the Disk2D.
auto_ptr< SFBoolsolid
 The solid field specifies if both sides of the closed arc should be rendered.

Static Public Attributes

static H3DNodeDatabase database
 The H3DNodeDatabase for this node.


Detailed Description

The Disk2D node specifies a circular disk which is centred at (0, 0) in the local coordinate system.

The outerRadius field specifies the radius of the outer dimension of the Disk2D.

The innerRadius field specifies the inner dimension of the Disk2D. The value of outerRadius shall be greater than zero. The value of innerRadius shall be greater than or equal to zero and less than or equal to outerRadius. If innerRadius is zero, the Disk2D is completely filled. Otherwise, the area within the innerRadius forms a hole in the Disk2D. If innerRadius is equal to outerRadius, a solid circle shall be drawn using the current line properties.

Textures are applied individually to each face of the Disk2D. On the front (+Z) and back (-Z) faces of the Disk2D, when viewed from the +Z-axis, the texture is mapped onto each face with the same orientation as if the image were displayed normally in 2D.

Internal routes:
Disk2D.dot

Member Function Documentation

void Disk2D::traverseSG ( TraverseInfo ti  )  [virtual]

Traverse the scenegraph.

A HAPIHapticShape is added for haptic rendering if haptics is enabled.

Parameters:
ti The TraverseInfo object containing information about the traversal.

Reimplemented from H3D::X3DGeometryNode.

References solid, and H3D::X3DGeometryNode::useBackFaceCulling().


Member Data Documentation

The innerRadius field specifies the inner dimension of the Disk2D.

The value of innerRadius shall be greater than or equal to zero and less than or equal to outerRadius. If innerRadius is zero, the Disk2D is completely filled. Otherwise, the area within the innerRadius forms a hole in the Disk2D.

Access type: inputOutput
Default value: 0

Disk2D_innerRadius.dot

Referenced by Disk2D(), and render().

The outerRadius field specifies the radius of the outer dimension of the Disk2D.

The value of outerRadius shall be greater than zero.

Access type: inputOutput
Default value: 1

Disk2D_outerRadius.dot

Referenced by Disk2D(), and render().

The solid field specifies if both sides of the closed arc should be rendered.

If solid is FALSE then both sides will be rendered.

Access type: inputOutput
Default value: FALSE

Disk2D_solid.dot

Referenced by Disk2D(), and traverseSG().


The documentation for this class was generated from the following files:

Generated on Fri Nov 7 10:29:48 2008 for H3D API by  doxygen 1.5.7