A transformation node to be used to appy a transformation to the sub-tree (composite node).
More...
#include "Transformation.h"
A transformation node to be used to appy a transformation to the sub-tree (composite node).
- Examples
- scg3_table_scene_example.cpp.
Definition at line 42 of file Transformation.h.
◆ Transformation()
scg::Transformation::Transformation |
( |
| ) |
|
◆ ~Transformation()
virtual scg::Transformation::~Transformation |
( |
| ) |
|
|
virtual |
◆ accept()
virtual void scg::Transformation::accept |
( |
Traverser * |
traverser | ) |
|
|
virtual |
◆ acceptPost()
virtual void scg::Transformation::acceptPost |
( |
Traverser * |
traverser | ) |
|
|
virtual |
Accept traverser after traversing sub-tree (visitor pattern).
Reimplemented from scg::Composite.
Reimplemented in scg::Camera.
◆ create()
◆ getMatrix()
const glm::mat4& scg::Transformation::getMatrix |
( |
| ) |
const |
Get transformation matrix.
◆ render()
virtual void scg::Transformation::render |
( |
RenderState * |
renderState | ) |
|
|
virtual |
◆ renderPost()
virtual void scg::Transformation::renderPost |
( |
RenderState * |
renderState | ) |
|
|
virtual |
Render transformaton after traversing sub-tree, i.e., restore model-view matrix.
Reimplemented from scg::Composite.
Reimplemented in scg::Camera.
◆ rotate()
virtual Transformation* scg::Transformation::rotate |
( |
GLfloat |
angleDeg, |
|
|
glm::vec3 |
axis |
|
) |
| |
|
inlinevirtual |
Rotate subsequent geometry.
- Parameters
-
angleDeg | rotation angle (degrees) |
axis | rotaton axis |
- Returns
- this pointer for method chaining
Reimplemented in scg::Camera.
Definition at line 93 of file Transformation.h.
◆ rotateRad()
virtual Transformation* scg::Transformation::rotateRad |
( |
GLfloat |
angleRad, |
|
|
glm::vec3 |
axis |
|
) |
| |
|
virtual |
Rotate subsequent geometry.
- Parameters
-
angleDeg | rotation angle (radians) |
axis | rotaton axis |
- Returns
- this pointer for method chaining
Reimplemented in scg::Camera.
◆ scale()
virtual Transformation* scg::Transformation::scale |
( |
glm::vec3 |
scaling | ) |
|
|
virtual |
Scale subsequent geometry.
- Parameters
-
scaling | scale factors in xyz directions |
- Returns
- this pointer for method chaining
Reimplemented in scg::Camera.
◆ setMatrix()
virtual Transformation* scg::Transformation::setMatrix |
( |
const glm::mat4 & |
matrix | ) |
|
|
virtual |
Set transformation matrix.
- Returns
- this pointer for method chaining
Reimplemented in scg::Camera.
◆ translate()
virtual Transformation* scg::Transformation::translate |
( |
glm::vec3 |
translation | ) |
|
|
virtual |
◆ matrix_
glm::mat4 scg::Transformation::matrix_ |
|
protected |
The documentation for this class was generated from the following file: