#include <CmdTrans.h>
Inheritance diagram for CmdRotate:
Public Types | |
enum | { BY, TO } |
Public Methods | |
CmdRotate (float a, char ax, int by_or_to) | |
first constructor: a single rotation, no smooth transition. More... | |
CmdRotate (float a, char ax, int by_or_to, float inc) | |
second constructor: a smooth rotation in given increments ... only useful for "by" rotations. If "to" is given to this constructor, a single-step rotation is done. More... | |
Public Attributes | |
char | axis |
axis to rotate. More... | |
float | deg |
amount to rotate. More... | |
int | byOrTo |
set, or add to, rotation? More... | |
int | steps |
steps to rotate through; by default this is 1. More... | |
Protected Methods | |
virtual void | create_text (void) |
virtual function which is called when a text version of the command must be created to be printed to the console or a log file. More... |
Definition at line 45 of file CmdTrans.h.
|
Definition at line 47 of file CmdTrans.h. |
|
first constructor: a single rotation, no smooth transition.
Definition at line 54 of file CmdTrans.C. |
|
second constructor: a smooth rotation in given increments ... only useful for "by" rotations. If "to" is given to this constructor, a single-step rotation is done.
Definition at line 75 of file CmdTrans.C. |
|
virtual function which is called when a text version of the command must be created to be printed to the console or a log file.
Reimplemented from Command. Definition at line 44 of file CmdTrans.C. References BY, byOrTo, Command::cmdText, deg, and steps. |
|
axis to rotate.
Definition at line 48 of file CmdTrans.h. |
|
set, or add to, rotation?
Definition at line 50 of file CmdTrans.h. Referenced by CmdRotate, and create_text. |
|
amount to rotate.
Definition at line 49 of file CmdTrans.h. Referenced by CmdRotate, and create_text. |
|
steps to rotate through; by default this is 1.
Definition at line 51 of file CmdTrans.h. Referenced by CmdRotate, and create_text. |