My Project
|
Base rotation class. More...
#include "model/modification/rotation.h"
Public Member Functions | |
Rotation () | |
~Rotation () | |
void | rotateX (BaseObject *o) |
void | rotateY (BaseObject *o) |
void | rotateZ (BaseObject *o) |
virtual void | initModification (Vertex *center) override |
virtual void | run (BaseObject *o)=0 |
![]() | |
Modification () | |
~Modification () | |
Protected Attributes | |
Vertex * | center |
double | angle |
GMatrix | rotate |
GMatrix | vMatrixRotation |
GMatrix | nMatrixRotation |
Rotation::Rotation | ( | ) |
Emty constructor. No action.
Definition at line 5 of file rotation.cpp.
Rotation::~Rotation | ( | ) |
Destructor. No action.
Definition at line 9 of file rotation.cpp.
|
overridevirtual |
Set center around which occur modificaion and calculate transform matrix
[in] | center | Point of modification center |
Implements Modification.
Definition at line 49 of file rotation.cpp.
void Rotation::rotateX | ( | BaseObject * | o | ) |
Provide rotation in OX surface
[in] | vertex | Object to transform |
Definition at line 13 of file rotation.cpp.
void Rotation::rotateY | ( | BaseObject * | o | ) |
Provide rotation in OY surface
[in] | vertex | Object to transform |
Definition at line 25 of file rotation.cpp.
void Rotation::rotateZ | ( | BaseObject * | o | ) |
Provide rotation in OZ surface
[in] | vertex | Object to transform |
Definition at line 37 of file rotation.cpp.
|
pure virtual |
|
protected |
Rotation angle in degrees
Definition at line 67 of file rotation.h.
|
protected |
Rotation center
Definition at line 66 of file rotation.h.
|
protected |
Matrix to change normal
Definition at line 70 of file rotation.h.
|
protected |
Rotation matrix
Definition at line 68 of file rotation.h.
|
protected |
Matrix to change vertex
Definition at line 69 of file rotation.h.