My Project
Public Member Functions | Protected Attributes | List of all members
Rotation Class Referenceabstract

Base rotation class. More...

#include "model/modification/rotation.h"

Inheritance diagram for Rotation:
Inheritance graph
[legend]
Collaboration diagram for Rotation:
Collaboration graph
[legend]

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
 
- Public Member Functions inherited from Modification
 Modification ()
 
 ~Modification ()
 

Protected Attributes

Vertexcenter
 
double angle
 
GMatrix rotate
 
GMatrix vMatrixRotation
 
GMatrix nMatrixRotation
 

Detailed Description

Base rotation class.

Define rotation methods

Definition at line 21 of file rotation.h.

Constructor & Destructor Documentation

§ Rotation()

Rotation::Rotation ( )

Emty constructor. No action.

Definition at line 5 of file rotation.cpp.

§ ~Rotation()

Rotation::~Rotation ( )

Destructor. No action.

Definition at line 9 of file rotation.cpp.

Member Function Documentation

§ initModification()

void Rotation::initModification ( Vertex center)
overridevirtual

Set center around which occur modificaion and calculate transform matrix

Parameters
[in]centerPoint of modification center

Implements Modification.

Definition at line 49 of file rotation.cpp.

Here is the call graph for this function:

§ rotateX()

void Rotation::rotateX ( BaseObject o)

Provide rotation in OX surface

Parameters
[in]vertexObject to transform

Definition at line 13 of file rotation.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

§ rotateY()

void Rotation::rotateY ( BaseObject o)

Provide rotation in OY surface

Parameters
[in]vertexObject to transform

Definition at line 25 of file rotation.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

§ rotateZ()

void Rotation::rotateZ ( BaseObject o)

Provide rotation in OZ surface

Parameters
[in]vertexObject to transform

Definition at line 37 of file rotation.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

§ run()

virtual void Rotation::run ( BaseObject o)
pure virtual

Launches modification

Parameters
[in]oObject to modificate

Implements Modification.

Implemented in RotationZ, RotationY, and RotationX.

Member Data Documentation

§ angle

double Rotation::angle
protected

Rotation angle in degrees

Definition at line 67 of file rotation.h.

§ center

Vertex* Rotation::center
protected

Rotation center

Definition at line 66 of file rotation.h.

§ nMatrixRotation

GMatrix Rotation::nMatrixRotation
protected

Matrix to change normal

Definition at line 70 of file rotation.h.

§ rotate

GMatrix Rotation::rotate
protected

Rotation matrix

Definition at line 68 of file rotation.h.

§ vMatrixRotation

GMatrix Rotation::vMatrixRotation
protected

Matrix to change vertex

Definition at line 69 of file rotation.h.


The documentation for this class was generated from the following files: