#include <iso_visual_scene_transform_property.h>
Public Member Functions | |
SceneTransformProperty () | |
~SceneTransformProperty () | |
bool | changed () const |
check if transform has been changed | |
const math::Vector3< real > & | position () const |
return positon | |
const math::Quaternion< real > & | orientation () const |
return orientation | |
const math::Vector3< real > & | scale () const |
return scale | |
const math::Matrix4< real > & | matrix () const |
return object transformation matrix | |
void | setPosition (real pX, real pY, real pZ) |
set position | |
void | setPosition (const math::Vector3< real > &pPosition) |
set position | |
void | changePosition (real pX, real pY, real pZ) |
change position | |
void | changePosition (const math::Vector3< real > &pPosition) |
change position | |
void | setOrientationX (real pAngle) |
set orientation around x axis | |
void | setOrientationY (real pAngle) |
set orientation around y axis | |
void | setOrientationZ (real pAngle) |
set orientation around z axis | |
void | setOrientation (const math::Vector3< real > &pAxis, real pAngle) |
set camera orientation | |
void | setOrientation (const math::Quaternion< real > &pOrientation) |
change camera orientation | |
void | changeOrientationX (real pAngle) |
change orientation around x axis | |
void | changeOrientationY (real pAngle) |
change orientation around y axis | |
void | changeOrientationZ (real pAngle) |
change orientation around z axis | |
void | changeOrientation (const math::Vector3< real > &pAxis, real pAngle) |
change camera orientation | |
void | changeOrientation (const math::Quaternion< real > &pOrientation) |
change camera orientation | |
void | setScale (real pScale) |
set uniform scale | |
void | setScale (real pX, real pY, real pZ) |
set nonuniform scale | |
void | setScale (const math::Vector3< real > pScale) |
set nonuniform scale | |
void | changeScale (real pScale) |
change unform scale | |
void | changeScale (real pX, real pY, real pZ) |
change nonuniform scale | |
void | changeScale (const math::Vector3< real > pScale) |
change nonunform scale | |
void | update () |
Protected Member Functions | |
void | updateCoordinates () |
Protected Attributes | |
math::Vector3< real > | mPosition |
position | |
math::Quaternion< real > | mOrientation |
orientation | |
math::Vector3< real > | mScale |
scale | |
math::Matrix4< real > | mMatrix |
object transformation matrix | |
bool | mChanged |
flag indicating whether matrix is out of date | |
math::Matrix4< real > | mTmpOrientMatrix |
temporary orientation matrix | |
math::Matrix4< real > | mTmpScaleMatrix |
temporary scale matrix | |
math::Quaternion< real > | mTmpQuaternion |
Static Protected Attributes | |
static const math::Vector3< real > | sXAxis |
static const math::Vector3< real > | sYAxis |
static const math::Vector3< real > | sZAxis |
Friends | |
class | SceneTransformNode |
SceneTransformProperty::SceneTransformProperty | ( | ) |
SceneTransformProperty::~SceneTransformProperty | ( | ) |
bool SceneTransformProperty::changed | ( | ) | const |
check if transform has been changed
const math::Vector3< real > & SceneTransformProperty::position | ( | ) | const |
return positon
const math::Quaternion< real > & SceneTransformProperty::orientation | ( | ) | const |
return orientation
const math::Vector3< real > & SceneTransformProperty::scale | ( | ) | const |
return scale
const math::Matrix4< real > & SceneTransformProperty::matrix | ( | ) | const |
return object transformation matrix
set position
pX | position x | |
pY | position y | |
pZ | position z |
void SceneTransformProperty::setPosition | ( | const math::Vector3< real > & | pPosition | ) |
set position
pPosition | position |
change position
pX | position x | |
pY | position y | |
pZ | position z |
void SceneTransformProperty::changePosition | ( | const math::Vector3< real > & | pPosition | ) |
change position
pPosition | position |
void SceneTransformProperty::setOrientationX | ( | real | pAngle | ) |
set orientation around x axis
pAngle | rotation angle |
void SceneTransformProperty::setOrientationY | ( | real | pAngle | ) |
set orientation around y axis
pAngle | rotation angle |
void SceneTransformProperty::setOrientationZ | ( | real | pAngle | ) |
set orientation around z axis
pAngle | rotation angle |
set camera orientation
pAxis | rotation axis | |
pAngle | rotation angle |
void SceneTransformProperty::setOrientation | ( | const math::Quaternion< real > & | pOrientation | ) |
change camera orientation
pOrientation | orientation |
void SceneTransformProperty::changeOrientationX | ( | real | pAngle | ) |
change orientation around x axis
pAngle | rotation angle |
void SceneTransformProperty::changeOrientationY | ( | real | pAngle | ) |
change orientation around y axis
pAngle | rotation angle |
void SceneTransformProperty::changeOrientationZ | ( | real | pAngle | ) |
change orientation around z axis
pAngle | rotation angle |
change camera orientation
pAxis | rotation axis | |
pAngle | rotation angle |
void SceneTransformProperty::changeOrientation | ( | const math::Quaternion< real > & | pOrientation | ) |
change camera orientation
pOrientation | orientation |
void SceneTransformProperty::setScale | ( | real | pScale | ) |
set uniform scale
pScale | scale |
set nonuniform scale
pX | scale x | |
pY | scale y | |
pZ | scale z |
void SceneTransformProperty::setScale | ( | const math::Vector3< real > | pScale | ) |
set nonuniform scale
pScale | scale |
void SceneTransformProperty::changeScale | ( | real | pScale | ) |
change unform scale
pScale | scale |
change nonuniform scale
pX | scale x | |
pY | scale y | |
pZ | scale z |
void SceneTransformProperty::changeScale | ( | const math::Vector3< real > | pScale | ) |
change nonunform scale
pScale | scale |
void SceneTransformProperty::update | ( | ) |
void SceneTransformProperty::updateCoordinates | ( | ) | [protected] |
friend class SceneTransformNode [friend] |
math::Vector3<real> iso::visual::SceneTransformProperty::mPosition [protected] |
position
math::Quaternion<real> iso::visual::SceneTransformProperty::mOrientation [protected] |
orientation
math::Vector3<real> iso::visual::SceneTransformProperty::mScale [protected] |
scale
math::Matrix4<real> iso::visual::SceneTransformProperty::mMatrix [protected] |
object transformation matrix
bool iso::visual::SceneTransformProperty::mChanged [protected] |
flag indicating whether matrix is out of date
math::Matrix4<real> iso::visual::SceneTransformProperty::mTmpOrientMatrix [protected] |
temporary orientation matrix
math::Matrix4<real> iso::visual::SceneTransformProperty::mTmpScaleMatrix [protected] |
temporary scale matrix
math::Quaternion<real> iso::visual::SceneTransformProperty::mTmpQuaternion [protected] |
const math::Vector3< real > SceneTransformProperty::sXAxis [static, protected] |
const math::Vector3< real > SceneTransformProperty::sYAxis [static, protected] |
const math::Vector3< real > SceneTransformProperty::sZAxis [static, protected] |