Node that moves items in the scene. More...
#include <Translate.hpp>
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 Translate * | find (Node *node) |
Private Attributes | |
| Vector | value |
Node that moves items in the scene.
Creates a new Translate from an XML tag.
| tag | XML tag with "value", "x", "y", or "z" attributes. |
| 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.
| 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.
1.6.3