![]() |
Blue Brain BioExplorer
|
Defines the translation, rotation and scale parameters to be applied to a scene asset. More...
#include <Transformation.h>
Public Member Functions | |
Transformation ()=default | |
Transformation (const Vector3d &translation, const Vector3d &scale, const Quaterniond &rotation, const Vector3d &rotationCenter) | |
const Vector3d & | getTranslation () const |
void | setTranslation (const Vector3d &value) |
const Vector3d & | getScale () const |
void | setScale (const Vector3d &value) |
const Quaterniond & | getRotation () const |
void | setRotation (const Quaterniond &value) |
const Vector3d & | getRotationCenter () const |
void | setRotationCenter (const Vector3d &value) |
bool | operator== (const Transformation &rhs) const |
bool | operator!= (const Transformation &rhs) const |
Matrix4d | toMatrix (bool withScale=false) const |
![]() | |
BaseObject ()=default | |
virtual | ~BaseObject ()=default |
BaseObject (const BaseObject &) | |
BaseObject & | operator= (const BaseObject &rhs) |
bool | isModified () const |
void | resetModified () |
void | markModified (const bool triggerCallback=true) |
void | onModified (const ModifiedCallback &callback) |
void | clearModifiedCallback () |
Additional Inherited Members | |
![]() | |
using | ModifiedCallback = std::function< void(const BaseObject &)> |
![]() | |
template<typename T > | |
void | _updateValue (T &member, const T &newValue, const bool triggerCallback=true) |
template<class T > | |
bool | _isEqual (const T &a, const T &b, typename std::enable_if< std::is_floating_point< T >::value >::type *=0) |
template<class T > | |
bool | _isEqual (const T &a, const T &b, typename std::enable_if<!std::is_floating_point< T >::value >::type *=0) |
Defines the translation, rotation and scale parameters to be applied to a scene asset.
Definition at line 36 of file Transformation.h.
|
default |
|
inline |
Definition at line 41 of file Transformation.h.
|
inline |
Definition at line 54 of file Transformation.h.
|
inline |
Definition at line 56 of file Transformation.h.
|
inline |
Definition at line 52 of file Transformation.h.
|
inline |
Definition at line 50 of file Transformation.h.
|
inline |
Definition at line 64 of file Transformation.h.
|
inline |
Definition at line 59 of file Transformation.h.
|
inline |
Definition at line 55 of file Transformation.h.
|
inline |
Definition at line 57 of file Transformation.h.
|
inline |
Definition at line 53 of file Transformation.h.
|
inline |
Definition at line 51 of file Transformation.h.
|
inline |
Definition at line 66 of file Transformation.h.