Public Member Functions | Private Attributes | List of all members
tango_gl::Transform Class Reference

#include <transform.h>

Inheritance diagram for tango_gl::Transform:
Inheritance graph
[legend]

Public Member Functions

const TransformGetParent () const
 
TransformGetParent ()
 
glm::vec3 GetPosition () const
 
glm::quat GetRotation () const
 
glm::vec3 GetScale () const
 
glm::mat4 GetTransformationMatrix () const
 
const Transformoperator= (const Transform &rhs)=delete
 
void SetParent (Transform *transform)
 
void SetPosition (const glm::vec3 &position)
 
void SetRotation (const glm::quat &rotation)
 
void SetScale (const glm::vec3 &scale)
 
void SetTransformationMatrix (const glm::mat4 &transform_mat)
 
 Transform ()
 
 Transform (const Transform &other)=delete
 
void Translate (const glm::vec3 &translation)
 
virtual ~Transform ()
 

Private Attributes

Transformparent_
 
glm::vec3 position_
 
glm::quat rotation_
 
glm::vec3 scale_
 

Detailed Description

Definition at line 24 of file transform.h.

Constructor & Destructor Documentation

◆ Transform() [1/2]

tango_gl::Transform::Transform ( )

Definition at line 24 of file transform.cpp.

◆ ~Transform()

tango_gl::Transform::~Transform ( )
virtual

Definition at line 31 of file transform.cpp.

◆ Transform() [2/2]

tango_gl::Transform::Transform ( const Transform other)
delete

Member Function Documentation

◆ GetParent() [1/2]

const Transform * tango_gl::Transform::GetParent ( ) const

Definition at line 84 of file transform.cpp.

◆ GetParent() [2/2]

Transform * tango_gl::Transform::GetParent ( )

Definition at line 88 of file transform.cpp.

◆ GetPosition()

glm::vec3 tango_gl::Transform::GetPosition ( ) const

Definition at line 39 of file transform.cpp.

◆ GetRotation()

glm::quat tango_gl::Transform::GetRotation ( ) const

Definition at line 47 of file transform.cpp.

◆ GetScale()

glm::vec3 tango_gl::Transform::GetScale ( ) const

Definition at line 55 of file transform.cpp.

◆ GetTransformationMatrix()

glm::mat4 tango_gl::Transform::GetTransformationMatrix ( ) const

Definition at line 67 of file transform.cpp.

◆ operator=()

const Transform& tango_gl::Transform::operator= ( const Transform rhs)
delete

◆ SetParent()

void tango_gl::Transform::SetParent ( Transform transform)

Definition at line 80 of file transform.cpp.

◆ SetPosition()

void tango_gl::Transform::SetPosition ( const glm::vec3 position)

Definition at line 35 of file transform.cpp.

◆ SetRotation()

void tango_gl::Transform::SetRotation ( const glm::quat rotation)

Definition at line 43 of file transform.cpp.

◆ SetScale()

void tango_gl::Transform::SetScale ( const glm::vec3 scale)

Definition at line 51 of file transform.cpp.

◆ SetTransformationMatrix()

void tango_gl::Transform::SetTransformationMatrix ( const glm::mat4 transform_mat)

Definition at line 63 of file transform.cpp.

◆ Translate()

void tango_gl::Transform::Translate ( const glm::vec3 translation)

Definition at line 59 of file transform.cpp.

Member Data Documentation

◆ parent_

Transform* tango_gl::Transform::parent_
private

Definition at line 52 of file transform.h.

◆ position_

glm::vec3 tango_gl::Transform::position_
private

Definition at line 54 of file transform.h.

◆ rotation_

glm::quat tango_gl::Transform::rotation_
private

Definition at line 55 of file transform.h.

◆ scale_

glm::vec3 tango_gl::Transform::scale_
private

Definition at line 56 of file transform.h.


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


rtabmap
Author(s): Mathieu Labbe
autogenerated on Mon Jan 23 2023 03:39:00