SceneObject Class Reference

#include <SceneObject.h>

List of all members.

Classes

struct  State
class  UpdateStateCallback

Public Member Functions

 SceneObject (osg::Node *model=NULL, const char *filename=NULL)
 ~SceneObject ()
osg::Vec3 getPosition ()
osg::Vec3 getOrientation ()
osg::Quat getOrientationAsQuaternion ()
osg::Vec3 getScale ()
int getState ()
void setState (int state)
void setModelFilename (const char *filename)
void setModelFilename (std::string &filename)
std::string & getModelFilename ()
double getBoundingRadius () const
osg::Matrix getTransformationMatrix ()
bool intersects (const osg::Vec3d &rayDirection, const osg::Vec3d &rayPoint)

Protected Member Functions

bool _checkIntersection (osg::Node *node, const osg::Vec3d &rayDirection, const osg::Vec3d &rayPoint, const osg::Vec3d &sphereHit1, const osg::Vec3d &sphereHit2)
void setPosition (const osg::Vec3 &position)
void setOrientation (const osg::Vec3 &orientation)
void setScale (const osg::Vec3 &scale)

Protected Attributes

osg::MatrixTransform * _T
osg::MatrixTransform * _R
osg::MatrixTransform * _S
osg::Node * _objectNode
std::string _objectFilename
osg::Vec3 _eulerOrientation
double _bbRadius
MaterialFactory_materialFactory
int _state

Friends

class ObjectManipulatorProxy

Detailed Description

Razred SceneObject predstavlja objekte koji sačinjavaju scenu, a kojima je moguće manipulirati.


Constructor & Destructor Documentation

SceneObject::SceneObject ( osg::Node *  model = NULL,
const char *  filename = NULL 
)
SceneObject::~SceneObject (  ) 

Member Function Documentation

bool SceneObject::_checkIntersection ( osg::Node *  node,
const osg::Vec3d &  rayDirection,
const osg::Vec3d &  rayPoint,
const osg::Vec3d &  sphereHit1,
const osg::Vec3d &  sphereHit2 
) [protected]
double SceneObject::getBoundingRadius (  )  const
std::string & SceneObject::getModelFilename (  ) 
osg::Vec3 SceneObject::getOrientation (  ) 
osg::Quat SceneObject::getOrientationAsQuaternion (  ) 
osg::Vec3 SceneObject::getPosition (  ) 
osg::Vec3 SceneObject::getScale (  ) 
int SceneObject::getState (  ) 
osg::Matrix SceneObject::getTransformationMatrix (  ) 
bool SceneObject::intersects ( const osg::Vec3d &  rayDirection,
const osg::Vec3d &  rayPoint 
)
void SceneObject::setModelFilename ( std::string &  filename  ) 
void SceneObject::setModelFilename ( const char *  filename  ) 
void SceneObject::setOrientation ( const osg::Vec3 &  orientation  )  [protected]
void SceneObject::setPosition ( const osg::Vec3 &  position  )  [protected]
void SceneObject::setScale ( const osg::Vec3 &  scale  )  [protected]
void SceneObject::setState ( int  state  ) 

Friends And Related Function Documentation

friend class ObjectManipulatorProxy [friend]

Member Data Documentation

double SceneObject::_bbRadius [protected]
osg::Vec3 SceneObject::_eulerOrientation [protected]
std::string SceneObject::_objectFilename [protected]
osg::Node* SceneObject::_objectNode [protected]
osg::MatrixTransform* SceneObject::_R [protected]
osg::MatrixTransform* SceneObject::_S [protected]
int SceneObject::_state [protected]
osg::MatrixTransform* SceneObject::_T [protected]

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

Generated on Thu Jan 14 20:50:13 2010 for TerrainEditor by  doxygen 1.6.1