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

The Arc node specifies a linear circular arc whose center is at (0,0) and whose angles are measured starting at the positive x-axis and sweeping towards the positive y-axis. More...

#include <H3D/Arc2D.h>

Inheritance diagram for H3D::Arc2D:

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

 Arc2D (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 > _endAngle=0, Inst< SFFloat > _startAngle=0, Inst< SFFloat > _radius=0)
 Constructor.
virtual void render ()
 Renders the Arc2D using OpenGL.
virtual int nrLines ()
 The number of lines rendered by this geometry.

Public Attributes

auto_ptr< SFFloatendAngle
 The end angle for the arc.
auto_ptr< SFFloatstartAngle
 The start angle for the arc.
auto_ptr< SFFloatradius
 The radius field specifies the radius of the circle of which the arc is a portion.

Static Public Attributes

static H3DNodeDatabase database
 The H3DNodeDatabase for this node.


Detailed Description

The Arc node specifies a linear circular arc whose center is at (0,0) and whose angles are measured starting at the positive x-axis and sweeping towards the positive y-axis.

The radius field specifies the radius of the circle of which the arc is a portion. The arc extends from the startAngle counterclockwise to the endAngle. The value of radius shall be greater than zero. The values of startAngle and endAngle shall be in the range (0, 2pi). If startAngle and endAngle have the same value, a circle is specified.

Internal routes:
Arc2D.dot

Member Data Documentation

The end angle for the arc.

The arc extends from the startAngle counterclockwise to the endAngle.

Access type: inputOutput
Default value: pi/2

Arc2D_endAngle.dot

Referenced by Arc2D(), and render().

The radius field specifies the radius of the circle of which the arc is a portion.

Access type: inputOutput
Default value: 1

Arc2D_radius.dot

Referenced by Arc2D(), and render().

The start angle for the arc.

The arc extends from the startAngle counterclockwise to the endAngle.

Access type: inputOutput
Default value: 0

Arc2D_startAngle.dot

Referenced by Arc2D(), and render().


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

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