Node that resizes items in the scene. More...
#include <Scale.hpp>
Public Member Functions | |
| Scale (const Tag &tag) | |
| virtual void | add (const Vector &B) |
| virtual void | apply () |
| virtual void | applyTo (Matrix &matrix) |
| virtual void | remove () |
| virtual bool | setAttribute (pair< string, string > attribute) |
| virtual string | toString () const |
Static Public Member Functions | |
| static Scale * | find (Node *node) |
Private Attributes | |
| float | value |
Node that resizes items in the scene.
Creates a new Scale from an XML tag.
| tag | XML tag with "x", "y", and "z" values. |
| void add | ( | const Vector & | B | ) | [virtual] |
Adds a vector to this scale.
| void apply | ( | ) | [virtual] |
Performs the transformation.
Implements Transformation.
| void remove | ( | ) | [virtual] |
Restores state before transformation was applied.
Implements Transformation.
| bool setAttribute | ( | pair< string, string > | attribute | ) | [virtual] |
Sets "x", "y", or "z".
Reimplemented from Node.
| string toString | ( | ) | const [virtual] |
Forms a string from the object's attributes.
Reimplemented from Node.
1.6.3