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

Box Class Reference

Box node instances. More...

Inheritance diagram for Box:

AbstractGeometry AbstractBase GeometryNode Node Node List of all members.

Public Methods

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

virtual ~Box () 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

SFVec3f size
BSphere bsphere

Friends

class BoxClass

Detailed Description

Box node instances.


Constructor & Destructor Documentation

Box const NodeType   nodeType,
const ScopePtr   scope
 

Constructor.

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

~Box   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.