sculpto
Public Member Functions | Public Attributes | List of all members
scl::transform_component Struct Reference

#include <transform_component.h>

Public Member Functions

 transform_component ()=default
 
 transform_component (const transform_component &Other)=default
 
 transform_component (const matr4 &Tranform)
 
 transform_component (const vec3 &Scale, const vec3 &Angles, const vec3 &Position)
 
 ~transform_component ()=default
 
void SetScale (const vec3 &Scale)
 
void SetAngles (const vec3 &Angles)
 
void SetPosition (const vec3 &Position)
 
void InvalidateScale ()
 
void InvalidateRotation ()
 
void InvalidatePosition ()
 
void Invalidate ()
 
 operator const matr4 & () const
 
 operator matr4 & ()
 

Public Attributes

vec3 Scale { 1 }
 
vec3 Angles {}
 
vec3 Position {}
 
matr4 ScaleMatr {}
 
matr4 AnglesMatr {}
 
matr4 PositionMatr {}
 
matr4 Transform {}
 

Detailed Description

Application scene system objects transform component class.

Definition at line 16 of file transform_component.h.

Constructor & Destructor Documentation

◆ transform_component() [1/4]

scl::transform_component::transform_component ( )
default

◆ transform_component() [2/4]

scl::transform_component::transform_component ( const transform_component Other)
default

◆ transform_component() [3/4]

scl::transform_component::transform_component ( const matr4 Tranform)
inline

Definition at line 28 of file transform_component.h.

◆ transform_component() [4/4]

scl::transform_component::transform_component ( const vec3 Scale,
const vec3 Angles,
const vec3 Position 
)
inline

Definition at line 29 of file transform_component.h.

◆ ~transform_component()

scl::transform_component::~transform_component ( )
default

Member Function Documentation

◆ Invalidate()

void scl::transform_component::Invalidate ( )
inline

◆ InvalidatePosition()

void scl::transform_component::InvalidatePosition ( )
inline

◆ InvalidateRotation()

void scl::transform_component::InvalidateRotation ( )
inline

◆ InvalidateScale()

void scl::transform_component::InvalidateScale ( )
inline

Definition at line 52 of file transform_component.h.

◆ operator const matr4 &()

scl::transform_component::operator const matr4 & ( ) const
inline

Definition at line 75 of file transform_component.h.

75{ return Transform; }

◆ operator matr4 &()

scl::transform_component::operator matr4 & ( )
inline

Definition at line 76 of file transform_component.h.

76{ return Transform; }

◆ SetAngles()

void scl::transform_component::SetAngles ( const vec3 Angles)
inline

Definition at line 41 of file transform_component.h.

42 {
43 this->Angles = Angles;
45 }

◆ SetPosition()

void scl::transform_component::SetPosition ( const vec3 Position)
inline

Definition at line 46 of file transform_component.h.

47 {
48 this->Position = Position;
50 }

◆ SetScale()

void scl::transform_component::SetScale ( const vec3 Scale)
inline

Definition at line 36 of file transform_component.h.

37 {
38 this->Scale = Scale;
40 }

Member Data Documentation

◆ Angles

vec3 scl::transform_component::Angles {}

Definition at line 19 of file transform_component.h.

◆ AnglesMatr

matr4 scl::transform_component::AnglesMatr {}

Definition at line 22 of file transform_component.h.

◆ Position

vec3 scl::transform_component::Position {}

Definition at line 20 of file transform_component.h.

◆ PositionMatr

matr4 scl::transform_component::PositionMatr {}

Definition at line 23 of file transform_component.h.

◆ Scale

vec3 scl::transform_component::Scale { 1 }

Definition at line 18 of file transform_component.h.

◆ ScaleMatr

matr4 scl::transform_component::ScaleMatr {}

Definition at line 21 of file transform_component.h.

◆ Transform

matr4 scl::transform_component::Transform {}

Definition at line 24 of file transform_component.h.


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