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

The Sphere node specifies a sphere centred at (0, 0, 0) in the local coordinate system. More...

#include <Sphere.h>

Inheritance diagram for H3D::Sphere:

Inheritance graph
List of all members.

Public Member Functions

 Sphere (Inst< SFNode > _metadata=0, Inst< SFBound > _bound=0, Inst< SFFloat > _radius=0, Inst< SFBool > _solid=0)
 Constructor.
virtual void render ()
 Renders the Sphere with OpenGL.

Public Attributes

auto_ptr< SFFloatradius
 The radius of the Sphere in metres.
auto_ptr< SFBoolsolid
 Specifies if both sides of the Sphere should be rendered or only the outside.

Static Public Attributes

static H3DNodeDatabase database
 The H3DNodeDatabase for this node.

Protected Attributes

GLUquadricObj * gl_quadric

Classes

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

Detailed Description

The Sphere node specifies a sphere centred at (0, 0, 0) in the local coordinate system.

The radius field specifies the radius of the sphere and shall be greater than zero. Figure 13.8 depicts the fields of the Sphere node.

When a texture is applied to a sphere, the texture covers the entire surface, wrapping counterclockwise from the back of the sphere (i.e., longitudinal arc intersecting the -Z-axis) when viewed from the top of the sphere. The texture has a seam at the back where the X=0 plane intersects the sphere and Z values are negative.

The solid field determines whether the sphere is visible when viewed from the inside. If solid is false both sides of the sphere will be rendered.

Internal routes:
Sphere.dot


Member Data Documentation

auto_ptr< SFFloat > H3D::Sphere::radius
 

The radius of the Sphere in metres.

Access type: inputOutput
Default value: 1
Valid range: >0

Sphere_radius.dot

auto_ptr< SFBool > H3D::Sphere::solid
 

Specifies if both sides of the Sphere should be rendered or only the outside.

Both are rendered if false, outside only it true.

Access type: inputOutput
Default value: TRUE

Sphere_solid.dot


Generated on Thu Aug 24 12:40:04 2006 for H3D API by  doxygen 1.4.5