Transform¶
- 
class 
guerilla.Transform¶ Bases:
guerilla.SelectableNodeThe transform class is the base class for the transform node plug-ins.
The transform nodes can be stacked in the transform stack of anySceneGraphNodeobject to modified its transform (position, rotation, scale).A typical transform plug-in must compute the Out plug according to its parameters and the value of the In plug.
- 
In¶ The result of the previous transform in the stack
Can be nil if no previous transform node.
Type: transform
- 
Out¶ The result of this transform to compute.
This plug must be computed in the eval. It must include the transform of the In plug.
Type: transform
- 
construct(node)¶ Create and add the transform to the scene graph node’s transform stack
To be implemented by the plug-in.
Parameters: node ( SceneGraphNode) – the scene graph node
- 
delete()¶ Delete this transform
- 
getaxisrotation(axis)¶ Return the local rotation angle on the axis
To be implemented by the plug-in in order to react to the local rotation manipulator
Parameters: axis (str) – Return type: float 
- 
gettransformtemplate(template)¶ Add the transform template
To be implemented by the plug-in in order to display a custom template
Parameters: template (table) – 
- 
getworldmatrix()¶ Return the matrix transforming from this transform to the world
Return type: matrix
- 
movedown()¶ Move this transform one level up in the transform stack
- 
moveup()¶ Move this transform one level up in the transform stack
- 
setaxisrotation(axis, angle)¶ Set the local rotation angle on the axis
To be implemented by the plug-in in order to react to the local rotation manipulator
Parameters: 
-