Main Page   Namespace List   Class Hierarchy   Compound List   Namespace Members   Compound Members   Related Pages  

Sphere Class Reference

Sphere node instances. More...

Inheritance diagram for Sphere:

AbstractGeometry AbstractBase GeometryNode Node Node List of all members.

Public Methods

 Sphere (const NodeType &nodeType, const ScopePtr &scope)
 Constructor.

virtual ~Sphere () throw ()
 Destructor.

virtual Viewer::Object insertGeometry (Viewer &viewer, VrmlRenderContext context)
 Insert this geometry into viewer's display list.

virtual const BVolumegetBVolume () const
 Get the bounding volume.


Private Attributes

SFFloat radius
 radius field.

BSphere bsphere
 Bounding volume.


Friends

class SphereClass
 Class object for Sphere instances.


Detailed Description

Sphere node instances.


Constructor & Destructor Documentation

Sphere const NodeType   nodeType,
const ScopePtr   scope
 

Constructor.

Parameters:
nodeType the NodeType associated with the node instance.
scope the Scope to which the node belongs.

~Sphere   throw () [virtual]
 

Destructor.


Member Function Documentation

const BVolume * getBVolume   const [virtual]
 

Get the bounding volume.

Returns:
the bounding volume associated with the node.

Reimplemented from Node.

Viewer::Object insertGeometry Viewer   viewer,
VrmlRenderContext    context
[virtual]
 

Insert this geometry into viewer's display list.

Parameters:
viewer a Viewer.
context the rendering context.

Implements GeometryNode.


Friends And Related Function Documentation

SphereClass [friend]
 

Class object for Sphere instances.


Member Data Documentation

BSphere bsphere [private]
 

Bounding volume.

SFFloat radius [private]
 

radius field.