Translate Class Reference
[Basic]

Node that moves items in the scene. More...

#include <Translate.hpp>

Inheritance diagram for Translate:
Transformation Node Applicable

List of all members.

Public Member Functions

 Translate (const Tag &tag)
void add (const Vector &B)
virtual void apply ()
virtual void applyTo (Matrix &matrix)
virtual Vector getValue () const
virtual void remove ()
virtual bool setAttribute (pair< string, string > attribute)
virtual string toString () const

Static Public Member Functions

static Translatefind (Node *node)

Private Attributes

Vector value

Detailed Description

Node that moves items in the scene.


Constructor & Destructor Documentation

Translate ( const Tag tag  ) 

Creates a new Translate from an XML tag.

Parameters:
tag XML tag with "value", "x", "y", or "z" attributes.

Member Function Documentation

void add ( const Vector B  ) 

Adds a vector to this translation.

void apply (  )  [virtual]

Performs the translation.

Implements Transformation.

void applyTo ( Matrix matrix  )  [virtual]

Add the translate to the matrix before sorting.

Implements Transformation.

Translate * find ( Node node  )  [static]

Finds a translate node above another.

void remove (  )  [virtual]

Restores transformation that was in effect before translate was applied.

Implements Transformation.

bool setAttribute ( pair< string, string >  attribute  )  [virtual]

Sets "x", "y", or "z" in value.

Reimplemented from Node.

string toString (  )  const [virtual]

Forms a string from the object's attributes.

Reimplemented from Node.


The documentation for this class was generated from the following files:
Generated on Wed Jun 9 01:36:37 2010 for Gander by  doxygen 1.6.3