Cutout Vis2012
TUWienVisualisierung2(SS2012)-AdaptiveCutaways
 All Classes Namespaces Functions Pages
Public Member Functions | Public Attributes | List of all members
SRTTransform Class Reference

#include <SRTTransform.h>

Inheritance diagram for SRTTransform:
Transform

Public Member Functions

 SRTTransform (float s, const glm::vec3 &r, const glm::vec3 &t)
 
virtual glm::mat4 propagate (const glm::mat4 &inhTransform, float inhScale, float *totalScale)
 
virtual void update ()
 

Public Attributes

float s
 
glm::vec3 r
 
glm::vec3 t
 

Detailed Description

Calculates a matrix from a given translation vector, rotation vector and uniform scale factor.

Constructor & Destructor Documentation

SRTTransform::SRTTransform ( float  s,
const glm::vec3 &  r,
const glm::vec3 &  t 
)

Creates a new transform that (from right to left) scales, rotates and translates

Parameters
sscale factor
rpan, tilt, roll
ttranslation vector

Member Function Documentation

glm::mat4 SRTTransform::propagate ( const glm::mat4 &  inhTransform,
float  inhScale,
float *  totalScale 
)
virtual

Returns the model transformation which is calculated from the model transformation of this node's parent and the local transformation. Also calculated the scale separately.

Parameters
inhTransformparent transformation
inhScaleparent scale
[out]totalScaletotal scale of this node
Returns
model transformation of this node

Implements Transform.

void SRTTransform::update ( )
virtual

Called before propagation. Calculates the local transform internally.

Implements Transform.


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