#include <iso_visual_scene_transform_node.h>
Inherited by iso::visual::CameraTransformNode.
Inheritance diagram for iso::visual::SceneTransformNode:
Public Member Functions | |
SceneTransformNode (SceneObject *pSceneObject) | |
SceneTransformNode (SceneObject *pSceneObject, SceneTransformProperty *pProperty) | |
~SceneTransformNode () | |
bool | contains (SceneTransformNode *pNode) const |
void | add (SceneTransformNode *pNode) |
void | remove (SceneTransformNode *pNode) |
bool | changed () const |
SceneTransformProperty * | property () |
SceneTransformNode * | parent () |
const math::Vector3< real > & | position () const |
return positon (in world coordinates) | |
const math::Quaternion< real > & | orientation () const |
return orientation (in world coordinates) | |
const math::Vector3< real > & | scale () const |
return scale (in world coordinates) | |
const math::Matrix4< real > & | matrix () const |
return transformation matrix (in world coordinates) | |
const math::Matrix4< real > & | glMatrix () const |
return opengl transformation matrix (in world coordinates) | |
math::Matrix4< real > & | glMatrix () |
return opengl transformation matrix (in world coordinates) | |
void | setPosition (real pX, real pY, real pZ) |
set position (in object coordinates) | |
void | setPosition (const math::Vector3< real > &pPosition) |
set position (in object coordinates) | |
void | changePosition (real pX, real pY, real pZ) |
change position (in object coordinates) | |
void | changePosition (const math::Vector3< real > &pPosition) |
change position (in object coordinates) | |
void | setOrientationX (real pAngle) |
set orientation around x axis (in object coordinates) | |
void | setOrientationY (real pAngle) |
set orientation around y axis (in object coordinates) | |
void | setOrientationZ (real pAngle) |
set orientation around z axis (in object coordinates) | |
void | setOrientation (const math::Vector3< real > &pAxis, real pAngle) |
set camera orientation (in object coordinates) | |
void | setOrientation (const math::Quaternion< real > &pOrientation) |
change camera orientation (in object coordinates) | |
void | changeOrientationX (real pAngle) |
change orientation around x axis (in object coordinates) | |
void | changeOrientationY (real pAngle) |
change orientation around y axis (in object coordinates) | |
void | changeOrientationZ (real pAngle) |
change orientation around z axis (in object coordinates) | |
void | changeOrientation (const math::Vector3< real > &pAxis, real pAngle) |
change camera orientation (in object coordinates) | |
void | changeOrientation (const math::Quaternion< real > &pOrientation) |
change camera orientation (in object coordinates) | |
void | setScale (real pScale) |
set uniform scale (in object coordinates) | |
void | setScale (real pX, real pY, real pZ) |
set nonuniform scale (in object coordinates) | |
void | setScale (const math::Vector3< real > pScale) |
set nonuniform scale (in object coordinates) | |
void | changeScale (real pScale) |
change unform scale (in object coordinates) | |
void | changeScale (real pX, real pY, real pZ) |
change nonuniform scale (in object coordinates) | |
void | changeScale (const math::Vector3< real > pScale) |
change nonunform scale (in object coordinates) | |
void | update () |
void | updateWorldCoordinates () |
Protected Attributes | |
SceneObject * | mSceneObject |
SceneTransformProperty * | mProperty |
SceneTransformProperty | mInheritedProperty |
SceneTransformNode * | mParent |
parent transform node | |
QList< SceneTransformNode * > | mChildren |
children transform nodes | |
math::Matrix4< real > | mGLMatrix |
opengl transformation matrix | |
bool | mChanged |
flag indicating whether world matrix is out of date |
SceneTransformNode::SceneTransformNode | ( | SceneObject * | pSceneObject | ) |
SceneTransformNode::SceneTransformNode | ( | SceneObject * | pSceneObject, | |
SceneTransformProperty * | pProperty | |||
) |
SceneTransformNode::~SceneTransformNode | ( | ) |
bool SceneTransformNode::contains | ( | SceneTransformNode * | pNode | ) | const |
void SceneTransformNode::add | ( | SceneTransformNode * | pNode | ) |
void SceneTransformNode::remove | ( | SceneTransformNode * | pNode | ) |
bool SceneTransformNode::changed | ( | ) | const |
SceneTransformProperty * SceneTransformNode::property | ( | ) |
SceneTransformNode * SceneTransformNode::parent | ( | ) |
const math::Vector3< visual::real > & SceneTransformNode::position | ( | ) | const |
return positon (in world coordinates)
const math::Quaternion< visual::real > & SceneTransformNode::orientation | ( | ) | const |
return orientation (in world coordinates)
const math::Vector3< visual::real > & SceneTransformNode::scale | ( | ) | const |
return scale (in world coordinates)
const math::Matrix4< visual::real > & SceneTransformNode::matrix | ( | ) | const |
return transformation matrix (in world coordinates)
const math::Matrix4< visual::real > & SceneTransformNode::glMatrix | ( | ) | const |
return opengl transformation matrix (in world coordinates)
math::Matrix4< visual::real > & SceneTransformNode::glMatrix | ( | ) |
return opengl transformation matrix (in world coordinates)
set position (in object coordinates)
pX | position x | |
pY | position y | |
pZ | position z |
void SceneTransformNode::setPosition | ( | const math::Vector3< real > & | pPosition | ) |
set position (in object coordinates)
pPosition | position |
change position (in object coordinates)
pX | position x | |
pY | position y | |
pZ | position z |
void SceneTransformNode::changePosition | ( | const math::Vector3< real > & | pPosition | ) |
change position (in object coordinates)
pPosition | position |
void SceneTransformNode::setOrientationX | ( | real | pAngle | ) |
set orientation around x axis (in object coordinates)
pAngle | rotation angle |
void SceneTransformNode::setOrientationY | ( | real | pAngle | ) |
set orientation around y axis (in object coordinates)
pAngle | rotation angle |
void SceneTransformNode::setOrientationZ | ( | real | pAngle | ) |
set orientation around z axis (in object coordinates)
pAngle | rotation angle |
set camera orientation (in object coordinates)
pAxis | rotation axis | |
pAngle | rotation angle |
void SceneTransformNode::setOrientation | ( | const math::Quaternion< real > & | pOrientation | ) |
change camera orientation (in object coordinates)
pOrientation | orientation |
void SceneTransformNode::changeOrientationX | ( | real | pAngle | ) |
change orientation around x axis (in object coordinates)
pAngle | rotation angle |
void SceneTransformNode::changeOrientationY | ( | real | pAngle | ) |
change orientation around y axis (in object coordinates)
pAngle | rotation angle |
void SceneTransformNode::changeOrientationZ | ( | real | pAngle | ) |
change orientation around z axis (in object coordinates)
pAngle | rotation angle |
change camera orientation (in object coordinates)
pAxis | rotation axis | |
pAngle | rotation angle |
void SceneTransformNode::changeOrientation | ( | const math::Quaternion< real > & | pOrientation | ) |
change camera orientation (in object coordinates)
pOrientation | orientation |
void SceneTransformNode::setScale | ( | real | pScale | ) |
set uniform scale (in object coordinates)
pScale | scale |
set nonuniform scale (in object coordinates)
pX | scale x | |
pY | scale y | |
pZ | scale z |
void SceneTransformNode::setScale | ( | const math::Vector3< real > | pScale | ) |
set nonuniform scale (in object coordinates)
pScale | scale |
void SceneTransformNode::changeScale | ( | real | pScale | ) |
change unform scale (in object coordinates)
pScale | scale |
change nonuniform scale (in object coordinates)
pX | scale x | |
pY | scale y | |
pZ | scale z |
void SceneTransformNode::changeScale | ( | const math::Vector3< real > | pScale | ) |
change nonunform scale (in object coordinates)
pScale | scale |
void SceneTransformNode::update | ( | ) |
void SceneTransformNode::updateWorldCoordinates | ( | ) |
SceneObject* iso::visual::SceneTransformNode::mSceneObject [protected] |
scene object this node belongs to
parent transform node
QList< SceneTransformNode* > iso::visual::SceneTransformNode::mChildren [protected] |
children transform nodes
math::Matrix4<real> iso::visual::SceneTransformNode::mGLMatrix [protected] |
opengl transformation matrix
bool iso::visual::SceneTransformNode::mChanged [protected] |
flag indicating whether world matrix is out of date