NodeTransform Class Reference

#include <NodeTransform.h>

Inheritance diagram for NodeTransform:

Node List of all members.

Public Member Functions

 NodeTransform (Scene *scene, Proto *proto)
virtual int getType () const
virtual Nodecopy () 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

Detailed Description

According to the Transform Node of VRML97 specification.

  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
} 


Constructor & Destructor Documentation

NodeTransform::NodeTransform ( Scene scene,
Proto proto 
)

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


Member Function Documentation

virtual int NodeTransform::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* NodeTransform::copy (  )  const [inline, virtual]

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

Implements Node.

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]


Member Data Documentation

bool NodeTransform::_matrixDirty [private]


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