#include <NodeElevationGrid.h>
Inheritance diagram for NodeElevationGrid:
Public Member Functions | |
NodeElevationGrid (Scene *scene, Proto *proto) | |
virtual int | getType () const |
virtual Node * | copy () 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 |
NodeElevationGrid::~NodeElevationGrid | ( | ) | [protected, virtual] |
virtual int NodeElevationGrid::getType | ( | ) | const [inline, virtual] |
virtual Node* NodeElevationGrid::copy | ( | ) | const [inline, virtual] |
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] |
MFVec3f* NodeElevationGrid::_normals [protected] |
int NodeElevationGrid::_normalPerVertex [protected] |
int NodeElevationGrid::_oldX [protected] |
int NodeElevationGrid::_oldZ [protected] |