Blue Brain BioExplorer
core::Transformation Class Reference

Defines the translation, rotation and scale parameters to be applied to a scene asset. More...

#include <Transformation.h>

Inheritance diagram for core::Transformation:
Collaboration diagram for core::Transformation:

Public Member Functions

 Transformation ()=default
 
 Transformation (const Vector3d &translation, const Vector3d &scale, const Quaterniond &rotation, const Vector3d &rotationCenter)
 
const Vector3dgetTranslation () const
 
void setTranslation (const Vector3d &value)
 
const Vector3dgetScale () const
 
void setScale (const Vector3d &value)
 
const QuaterniondgetRotation () const
 
void setRotation (const Quaterniond &value)
 
const Vector3dgetRotationCenter () const
 
void setRotationCenter (const Vector3d &value)
 
bool operator== (const Transformation &rhs) const
 
bool operator!= (const Transformation &rhs) const
 
Matrix4d toMatrix (bool withScale=false) const
 
- Public Member Functions inherited from core::BaseObject
 BaseObject ()=default
 
virtual ~BaseObject ()=default
 
 BaseObject (const BaseObject &)
 
BaseObjectoperator= (const BaseObject &rhs)
 
bool isModified () const
 
void resetModified ()
 
void markModified (const bool triggerCallback=true)
 
void onModified (const ModifiedCallback &callback)
 
void clearModifiedCallback ()
 

Additional Inherited Members

- Public Types inherited from core::BaseObject
using ModifiedCallback = std::function< void(const BaseObject &)>
 
- Protected Member Functions inherited from core::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)
 

Detailed Description

Defines the translation, rotation and scale parameters to be applied to a scene asset.

Definition at line 36 of file Transformation.h.

Constructor & Destructor Documentation

◆ Transformation() [1/2]

core::Transformation::Transformation ( )
default

◆ Transformation() [2/2]

core::Transformation::Transformation ( const Vector3d translation,
const Vector3d scale,
const Quaterniond rotation,
const Vector3d rotationCenter 
)
inline

Definition at line 41 of file Transformation.h.

Member Function Documentation

◆ getRotation()

const Quaterniond& core::Transformation::getRotation ( ) const
inline

Definition at line 54 of file Transformation.h.

◆ getRotationCenter()

const Vector3d& core::Transformation::getRotationCenter ( ) const
inline

Definition at line 56 of file Transformation.h.

◆ getScale()

const Vector3d& core::Transformation::getScale ( ) const
inline

Definition at line 52 of file Transformation.h.

◆ getTranslation()

const Vector3d& core::Transformation::getTranslation ( ) const
inline

Definition at line 50 of file Transformation.h.

◆ operator!=()

bool core::Transformation::operator!= ( const Transformation rhs) const
inline

Definition at line 64 of file Transformation.h.

◆ operator==()

bool core::Transformation::operator== ( const Transformation rhs) const
inline

Definition at line 59 of file Transformation.h.

◆ setRotation()

void core::Transformation::setRotation ( const Quaterniond value)
inline

Definition at line 55 of file Transformation.h.

◆ setRotationCenter()

void core::Transformation::setRotationCenter ( const Vector3d value)
inline

Definition at line 57 of file Transformation.h.

◆ setScale()

void core::Transformation::setScale ( const Vector3d value)
inline

Definition at line 53 of file Transformation.h.

◆ setTranslation()

void core::Transformation::setTranslation ( const Vector3d value)
inline

Definition at line 51 of file Transformation.h.

◆ toMatrix()

Matrix4d core::Transformation::toMatrix ( bool  withScale = false) const
inline

Definition at line 66 of file Transformation.h.


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