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

The ArcClose node specifies a portion of a circle 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/ArcClose2D.h>

Inheritance diagram for H3D::ArcClose2D:

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

 ArcClose2D (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, Inst< SFString > _closureType=0, Inst< SFBool > _solid=0)
 Constructor.
virtual void render ()
 Renders the ArcClose2D using OpenGL.
virtual int nrTriangles ()
 The number of triangles rendered by this geometry.
virtual void traverseSG (TraverseInfo &ti)
 Traverse the scenegraph.

Public Attributes

auto_ptr< SFFloatendAngle
 The end angle for the ArcClose.
auto_ptr< SFFloatstartAngle
 The start angle for the ArcClose.
auto_ptr< SFFloatradius
 The radius field specifies the radius of the circle of which the ArcClose is a portion.
auto_ptr< SFStringclosureType
 A closureType of "PIE" connects the end point to the start point by defining two straight line segments first from the end point to the center and then the center to the start point.
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 ArcClose node specifies a portion of a circle 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 end points of the arc specified are connected as defined by the closureType field. 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 and closureType is ignored.

A closureType of "PIE" connects the end point to the start point by defining two straight line segments first from the end point to the center and then the center to the start point.

A closureType of "CHORD" connects the end point to the start point by defining a straight line segment from the end point to the start point.

Internal routes:
ArcClose2D.dot

Member Function Documentation

void ArcClose2D::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

A closureType of "PIE" connects the end point to the start point by defining two straight line segments first from the end point to the center and then the center to the start point.

A closureType of "CHORD" connects the end point to the start point by defining a straight line segment from the end point to the start point.

Access type: inputOutput

ArcClose2D_closureType.dot

Referenced by ArcClose2D(), and render().

The end angle for the ArcClose.

The ArcClose extends from the startAngle counterclockwise to the endAngle.

Access type: inputOutput
Default value: pi/2

ArcClose2D_endAngle.dot

Referenced by ArcClose2D(), and render().

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

Access type: inputOutput
Default value: 1

ArcClose2D_radius.dot

Referenced by ArcClose2D(), 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

ArcClose2D_solid.dot

Referenced by ArcClose2D(), and traverseSG().

The start angle for the ArcClose.

The ArcClose extends from the startAngle counterclockwise to the endAngle.

Access type: inputOutput
Default value: 0

ArcClose2D_startAngle.dot

Referenced by ArcClose2D(), and render().


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

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