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

ElevationGrid Class Reference

ElevationGrid node instances. More...

Inheritance diagram for ElevationGrid:

AbstractGeometry AbstractBase GeometryNode Node Node List of all members.

Public Methods

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

virtual ~ElevationGrid () throw ()
 Destructor.

virtual bool isModified () const
 Determine whether the node has been modified.

virtual void updateModified (NodePath &path, int flags=0x003)
 Propagate the bvolume dirty flag from children to parents.

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


Private Methods

void processSet_color (const FieldValue &sfnode, double timestamp) throw (std::bad_cast, std::bad_alloc)
 set_color eventIn handler.

void processSet_height (const FieldValue &mffloat, double timestamp) throw (std::bad_cast, std::bad_alloc)
 set_height eventIn handler.

void processSet_normal (const FieldValue &sfnode, double timestamp) throw (std::bad_cast, std::bad_alloc)
 set_normal eventIn handler.

void processSet_texCoord (const FieldValue &sfnode, double timestamp) throw (std::bad_cast, std::bad_alloc)
 set_texCoord eventIn handler.


Private Attributes

SFNode color
SFNode normal
SFNode texCoord
SFBool ccw
SFBool colorPerVertex
SFFloat creaseAngle
MFFloat height
SFBool normalPerVertex
SFBool solid
SFInt32 xDimension
SFFloat xSpacing
SFInt32 zDimension
SFFloat zSpacing

Friends

class ElevationGridClass

Detailed Description

ElevationGrid node instances.


Constructor & Destructor Documentation

ElevationGrid const NodeType   nodeType,
const ScopePtr   scope
 

Constructor.

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

~ElevationGrid   throw () [virtual]
 

Destructor.


Member Function Documentation

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.

bool isModified   const [virtual]
 

Determine whether the node has been modified.

Returns:
true if the node or one of its children has been modified, false otherwise.

Reimplemented from Node.

void processSet_color const FieldValue   sfnode,
double    timestamp
throw (std::bad_cast, std::bad_alloc) [private]
 

set_color eventIn handler.

Parameters:
sfnode an SFNode value.
timestamp the current time.
Exceptions:
std::bad_cast if sfnode is not an SFNode.
std::bad_alloc if memory allocation fails.

void processSet_height const FieldValue   mffloat,
double    timestamp
throw (std::bad_cast, std::bad_alloc) [private]
 

set_height eventIn handler.

Parameters:
mffloat an MFFloat value.
timestamp the current time.
Exceptions:
std::bad_cast if mffloat is not an MFFloat.
std::bad_alloc if memory allocation fails.

void processSet_normal const FieldValue   sfnode,
double    timestamp
throw (std::bad_cast, std::bad_alloc) [private]
 

set_normal eventIn handler.

Parameters:
sfnode an SFNode value.
timestamp the current time.
Exceptions:
std::bad_cast if sfnode is not an SFNode.
std::bad_alloc if memory allocation fails.

void processSet_texCoord const FieldValue   sfnode,
double    timestamp
throw (std::bad_cast, std::bad_alloc) [private]
 

set_texCoord eventIn handler.

Parameters:
sfnode an SFNode value.
timestamp the current time.
Exceptions:
std::bad_cast if sfnode is not an SFNode.
std::bad_alloc if memory allocation fails.

void updateModified NodePath &    path,
int    flags = 0x003
[virtual]
 

Propagate the bvolume dirty flag from children to parents.

Parameters:
path stack of ancestor nodes.
flags 1 indicates normal modified flag, 2 indicates the bvolume dirty flag, 3 indicates both.

Reimplemented from Node.