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 <Disk2D.h>

Inheritance diagram for H3D::Disk2D:

Inheritance graph
List of all members.

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.

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.

Classes

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

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 Data Documentation

auto_ptr< SFFloat > H3D::Disk2D::innerRadius
 

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

auto_ptr< SFFloat > H3D::Disk2D::outerRadius
 

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

auto_ptr< SFBool > H3D::Disk2D::solid
 

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


Generated on Thu Aug 24 12:38:59 2006 for H3D API by  doxygen 1.4.5