Class representing SDFObject transformation in space.
More...
#include <models3.h>
|
|
void | applyZeroRotation () |
| |
Class representing SDFObject transformation in space.
Class responsible for rotating, moving and other geometric transformations upon the provided SDFObject
◆ TransformataObject()
| RayMarching::TransformataObject::TransformataObject |
( |
std::unique_ptr< SDFObject > |
object | ) |
|
|
inline |
Generates new transform for provided SDFObject
- Parameters
-
◆ ~TransformataObject()
| RayMarching::TransformataObject::~TransformataObject |
( |
| ) |
|
|
overridedefault |
◆ getColor()
| color_t RayMarching::TransformataObject::getColor |
( |
const Eigen::Vector3d & |
p | ) |
const |
|
overridevirtual |
◆ getDist()
| double RayMarching::TransformataObject::getDist |
( |
const Eigen::Vector3d & |
p | ) |
const |
|
overridevirtual |
◆ getScale()
| double RayMarching::TransformataObject::getScale |
( |
| ) |
const |
|
inline |
Scaling getter
- Returns
- current scale ratio
◆ getTranslation()
| Eigen::Vector3d RayMarching::TransformataObject::getTranslation |
( |
| ) |
const |
|
inline |
Translation Vector3d getter
- Returns
- Current translation
◆ rotate()
| void RayMarching::TransformataObject::rotate |
( |
double |
x, |
|
|
double |
y, |
|
|
double |
z |
|
) |
| |
Rotate object
- Parameters
-
| x | X-axis rotation in degrees |
| y | Y-axis rotation in degrees |
| z | Z-axis rotation in degrees |
◆ scale()
| void RayMarching::TransformataObject::scale |
( |
double |
s | ) |
|
|
inline |
Applies scaling operation on a object
- Parameters
-
◆ setRotation()
| void RayMarching::TransformataObject::setRotation |
( |
double |
x, |
|
|
double |
y, |
|
|
double |
z |
|
) |
| |
Sets object rotation
- Parameters
-
| x | X-axis rotation in degrees |
| y | Y-axis rotation in degrees |
| z | Z-axis rotation in degrees |
◆ setScale()
| void RayMarching::TransformataObject::setScale |
( |
double |
s | ) |
|
|
inline |
Sets desired scaling factor
- Parameters
-
◆ setTranslation()
| void RayMarching::TransformataObject::setTranslation |
( |
const Eigen::Vector3d & |
p | ) |
|
|
inline |
Sets new translation on object
- Parameters
-
◆ translate()
| void RayMarching::TransformataObject::translate |
( |
const Eigen::Vector3d & |
p | ) |
|
|
inline |
Applies translation upon object
- Parameters
-
The documentation for this class was generated from the following files: