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

GeometryNode Class Reference

Abstract base class for geometry nodes. More...

Inheritance diagram for GeometryNode:

Node AbstractGeometry AbstractIndexedSet Box Cone Cylinder ElevationGrid Extrusion PointSet Sphere Text List of all members.

Public Methods

virtual ~GeometryNode ()=0 throw ()
 Destructor.

virtual const GeometryNode * toGeometry () const throw ()
 Cast to a GeometryNode.

virtual GeometryNode * toGeometry () throw ()
 Cast to a GeometryNode.

virtual Viewer::Object insertGeometry (Viewer &viewer, VrmlRenderContext context)=0
virtual const ColorNodegetColor () const throw ()
 Get the color node (if any) associated with this geometry.


Protected Methods

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


Detailed Description

Abstract base class for geometry nodes.


Constructor & Destructor Documentation

~GeometryNode   throw () [pure virtual]
 

Destructor.

GeometryNode const NodeType   nodeType,
const ScopePtr   scope
[protected]
 

Constructor.

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

Member Function Documentation

const ColorNode * getColor   const throw () [virtual]
 

Get the color node (if any) associated with this geometry.

Returns:
the ColorNode associated associated with this geometry, or 0 if there is no such node.

Todo:
Reevaluate the way the renderer visits geometry nodes; potentially eliminate this method.

GeometryNode * toGeometry   throw () [virtual]
 

Cast to a GeometryNode.

Returns:
a pointer to this GeometryNode.

Reimplemented from Node.

const GeometryNode * toGeometry   const throw () [virtual]
 

Cast to a GeometryNode.

Returns:
a pointer to this GeometryNode.

Reimplemented from Node.