Rotate the object about a specified axis and pivot points.
This is an absolute transformation; the start and finish angles are given. So is the duration. In that sense, there is really no "toggle" of the state. You initiate the behaviour and it plays until completed, at which point in deactivates.
You can run it "forward" or "backward".
Currently, only a simple linear interpolation of angles is done.
#include
<class_rotate_about_axis_1_1_rotate_about_axis.h>
Public Member Functions |
|
__init__ () | |
getParameterType () | |
Provide the type of 'Axis' and 'Pivot'
parameters since they are not of a standard python type. |
|
forward () | |
backward () | |
calculateTransform () | |
The base class expects a full transformation
(12 values) as a parameter. |
RotateAboutAxis.RotateAboutAxis.__init__ | ( | ) |
Reimplemented from TransformBehavior.TransformBehavior.
RotateAboutAxis.RotateAboutAxis.getParameterType | ( | ) |
Provide the type of 'Axis' and 'Pivot' parameters since they are not of a standard python type.
Reimplemented from TransformBehavior.TransformBehavior.
RotateAboutAxis.RotateAboutAxis.forward | ( | ) |
RotateAboutAxis.RotateAboutAxis.backward | ( | ) |
RotateAboutAxis.RotateAboutAxis.calculateTransform | ( | ) |
The base class expects a full transformation (12 values) as a parameter.
<parameter name="FullTransform" type="affinematrix" value="1 0 0 0 1 0 0 0 1 0 0 5"> <parameter name="FullTransform" type="affinematrix" format="stream" directory="C:/" source="example.mov" framerate="30" playmode="oscillate" loop="1">
Reimplemented from TransformBehavior.TransformBehavior.