#include <NodeTransform.h>
Inheritance diagram for NodeTransform:
Public Member Functions | |
NodeTransform (Scene *scene, Proto *proto) | |
virtual int | getType () const |
virtual Node * | copy () const |
virtual void | setField (int index, FieldValue *value) |
virtual void | drawHandles () |
virtual void | transform () |
virtual void | transformForHandle (int handle) |
virtual void | draw () |
virtual void | preDraw () |
virtual Vec3f | getHandle (int handle, int *constraint, int *field) |
virtual void | setHandle (int handle, const Vec3f &v) |
Protected Member Functions | |
virtual | ~NodeTransform () |
void | drawAxisLines () |
void | drawTranslationHandles () |
void | drawRotationHandles () |
void | drawScaleHandles () |
Static Protected Member Functions | |
static void | drawCone (float x, float y, float z) |
static void | drawScaleHandle (float x, float y, float z) |
Private Attributes | |
bool | _matrixDirty |
Transform { eventIn MFNode addChildren eventIn MFNode removeChildren exposedField SFVec3f center 0 0 0 # (-,) exposedField MFNode children [] exposedField SFRotation rotation 0 0 1 0 # [-1,1],(-,) exposedField SFVec3f scale 1 1 1 # (0,) exposedField SFRotation scaleOrientation 0 0 1 0 # [-1,1],(-,) exposedField SFVec3f translation 0 0 0 # (-,) field SFVec3f bboxCenter 0 0 0 # (-,) field SFVec3f bboxSize -1 -1 -1 # (0,) or -1,-1,-1 }
NodeTransform::~NodeTransform | ( | ) | [protected, virtual] |
virtual int NodeTransform::getType | ( | ) | const [inline, virtual] |
virtual Node* NodeTransform::copy | ( | ) | const [inline, virtual] |
void NodeTransform::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.
void NodeTransform::drawHandles | ( | ) | [virtual] |
To be overriden by the subclasses
Reimplemented from Node.
void NodeTransform::transform | ( | ) | [virtual] |
To be overriden by the subclasses
Reimplemented from Node.
void NodeTransform::transformForHandle | ( | int | handle | ) | [virtual] |
To be overriden by the subclasses
Reimplemented from Node.
void NodeTransform::draw | ( | ) | [virtual] |
To be overriden by the subclasses
Reimplemented from Node.
void NodeTransform::preDraw | ( | ) | [virtual] |
To be overriden by the subclasses
Reimplemented from Node.
Vec3f NodeTransform::getHandle | ( | int | handle, | |
int * | constraint, | |||
int * | field | |||
) | [virtual] |
To be overriden by the subclasses
Reimplemented from Node.
void NodeTransform::setHandle | ( | int | handle, | |
const Vec3f & | v | |||
) | [virtual] |
To be overriden by the subclasses
Reimplemented from Node.
void NodeTransform::drawCone | ( | float | x, | |
float | y, | |||
float | z | |||
) | [static, protected] |
void NodeTransform::drawScaleHandle | ( | float | x, | |
float | y, | |||
float | z | |||
) | [static, protected] |
void NodeTransform::drawAxisLines | ( | ) | [protected] |
void NodeTransform::drawTranslationHandles | ( | ) | [protected] |
void NodeTransform::drawRotationHandles | ( | ) | [protected] |
void NodeTransform::drawScaleHandles | ( | ) | [protected] |
bool NodeTransform::_matrixDirty [private] |