NodeElevationGrid Class Reference

#include <NodeElevationGrid.h>

Inheritance diagram for NodeElevationGrid:

Node List of all members.

Public Member Functions

 NodeElevationGrid (Scene *scene, Proto *proto)
virtual int getType () const
virtual Nodecopy () const
virtual int getNodeClass () const
virtual void setField (int index, FieldValue *value)
virtual Vec3f getHandle (int handle, int *constraint, int *field)
virtual void setHandle (int handle, const Vec3f &v)
virtual void draw ()
virtual void drawHandles ()

Protected Member Functions

virtual ~NodeElevationGrid ()
void generateNormals ()
void resizeX ()
void resizeZ ()

Protected Attributes

MFVec3f_normals
int _normalPerVertex
int _oldX
int _oldZ

Constructor & Destructor Documentation

NodeElevationGrid::NodeElevationGrid ( Scene scene,
Proto proto 
)

NodeElevationGrid::~NodeElevationGrid (  )  [protected, virtual]


Member Function Documentation

virtual int NodeElevationGrid::getType (  )  const [inline, virtual]

Returns the Type of a Node in the Node subclasses(here pure virtual). E.g. for the NodeGroup it returns NODE_GROUP

Implements Node.

virtual Node* NodeElevationGrid::copy (  )  const [inline, virtual]

Creates a new instance of that Node in the Node subclasses(here pure virtual).

Implements Node.

virtual int NodeElevationGrid::getNodeClass (  )  const [inline, virtual]

Returns a NODE_CHILD as a node class (used to validate the scene)

Reimplemented from Node.

void NodeElevationGrid::setField ( int  index,
FieldValue value 
) [virtual]

Sets the Field at that index with the specified FieldValue value. Special care is taken if the field is SF-MFNode.

Reimplemented from Node.

Vec3f NodeElevationGrid::getHandle ( int  handle,
int *  constraint,
int *  field 
) [virtual]

To be overriden by the subclasses

Reimplemented from Node.

void NodeElevationGrid::setHandle ( int  handle,
const Vec3f v 
) [virtual]

To be overriden by the subclasses

Reimplemented from Node.

void NodeElevationGrid::draw (  )  [virtual]

To be overriden by the subclasses

Reimplemented from Node.

void NodeElevationGrid::drawHandles (  )  [virtual]

To be overriden by the subclasses

Reimplemented from Node.

void NodeElevationGrid::generateNormals (  )  [protected]

void NodeElevationGrid::resizeX (  )  [protected]

void NodeElevationGrid::resizeZ (  )  [protected]


Member Data Documentation

MFVec3f* NodeElevationGrid::_normals [protected]

int NodeElevationGrid::_normalPerVertex [protected]

int NodeElevationGrid::_oldX [protected]

int NodeElevationGrid::_oldZ [protected]


Generated on Thu Jan 18 10:06:18 2007 for vhdPLUS by  doxygen 1.5.1-p1