Skyscraper 2.0
SBS::SceneNode Class Reference

#include <scenenode.h>

Inheritance diagram for SBS::SceneNode:
Collaboration diagram for SBS::SceneNode:

Public Member Functions

 SceneNode (Object *parent, std::string name)
 
 ~SceneNode ()
 
Ogre::SceneNode * GetRawSceneNode ()
 
void AddChild (SceneNode *scenenode)
 
void RemoveChild (SceneNode *scenenode)
 
void ShowBoundingBox (bool value)
 
void SetPosition (const Vector3 &position)
 
void SetPositionRelative (const Vector3 &position)
 
Vector3 GetPosition (bool relative=false)
 
void SetRotation (const Vector3 &rotation)
 
Vector3 GetRotation ()
 
void Update ()
 
Quaternion GetOrientation (bool relative=false)
 
void SetOrientation (const Quaternion &q, bool relative=false)
 
void Move (const Vector3 &vector, Real speed=1.0)
 
void DetachAllObjects ()
 
void AttachObject (Ogre::MovableObject *object)
 
void DetachObject (Ogre::MovableObject *object)
 
Real GetScale ()
 
void SetScale (Real scale)
 
SceneNodeCreateChild (std::string name, const Vector3 &offset=Vector3::ZERO)
 
std::string GetFullName ()
 
bool IsRoot ()
 
void Pitch (Real &degree)
 
void Yaw (Real &degree)
 
void Roll (Real &degree)
 
Vector3 GetDerivedPosition ()
 
Quaternion GetDerivedOrientation ()
 
void SetDirection (const Vector3 &direction)
 
void LookAt (const Vector3 &point)
 
- Public Member Functions inherited from SBS::ObjectBase
 ObjectBase (Object *parent)
 
virtual ~ObjectBase ()
 
ObjectGetParent ()
 
SBSGetRoot ()
 
void SetName (const std::string &name)
 
const std::string & GetName ()
 
std::string GetNameBase ()
 
virtual void Report (const std::string &message)
 
virtual bool ReportError (const std::string &message)
 

Private Attributes

Ogre::SceneNode * node
 
Vector3 Rotation
 

Additional Inherited Members

- Protected Attributes inherited from SBS::ObjectBase
SBSsbs
 

Detailed Description

Definition at line 29 of file scenenode.h.

Constructor & Destructor Documentation

◆ SceneNode()

SBS::SceneNode::SceneNode ( Object * parent,
std::string name )

◆ ~SceneNode()

SBS::SceneNode::~SceneNode ( )

Definition at line 59 of file scenenode.cpp.

References SBS::SBS::mSceneManager, node, and SBS::ObjectBase::sbs.

Member Function Documentation

◆ AddChild()

void SBS::SceneNode::AddChild ( SceneNode * scenenode)

Definition at line 73 of file scenenode.cpp.

References GetRawSceneNode(), and node.

Referenced by SBS::Object::AddChild().

Here is the call graph for this function:

◆ AttachObject()

void SBS::SceneNode::AttachObject ( Ogre::MovableObject * object)

Definition at line 250 of file scenenode.cpp.

References node, and SBS::ObjectBase::ReportError().

Referenced by SBS::Camera::Attach(), SBS::CameraTexture::CameraTexture(), SBS::DynamicMesh::Mesh::Enabled(), and SBS::Light::Light().

Here is the call graph for this function:

◆ CreateChild()

SceneNode * SBS::SceneNode::CreateChild ( std::string name,
const Vector3 & offset = Vector3::ZERO )

◆ DetachAllObjects()

void SBS::SceneNode::DetachAllObjects ( )

Definition at line 65 of file scenenode.cpp.

References node.

Referenced by SBS::Object::~Object().

◆ DetachObject()

void SBS::SceneNode::DetachObject ( Ogre::MovableObject * object)

◆ GetDerivedOrientation()

Quaternion SBS::SceneNode::GetDerivedOrientation ( )

Definition at line 360 of file scenenode.cpp.

References node.

Referenced by GetOrientation().

◆ GetDerivedPosition()

Vector3 SBS::SceneNode::GetDerivedPosition ( )

Definition at line 354 of file scenenode.cpp.

References node, SBS::ObjectBase::sbs, and SBS::SBS::ToLocal().

Referenced by GetPosition().

Here is the call graph for this function:

◆ GetFullName()

std::string SBS::SceneNode::GetFullName ( )

Definition at line 318 of file scenenode.cpp.

References node.

Referenced by SBS::DynamicMesh::Mesh::CreateSubMesh(), and SBS::MeshObject::MeshObject().

◆ GetOrientation()

Quaternion SBS::SceneNode::GetOrientation ( bool relative = false)

◆ GetPosition()

◆ GetRawSceneNode()

◆ GetRotation()

Vector3 SBS::SceneNode::GetRotation ( )

Definition at line 179 of file scenenode.cpp.

References Rotation.

Referenced by SBS::Object::GetRotation().

◆ GetScale()

Real SBS::SceneNode::GetScale ( )

◆ IsRoot()

bool SBS::SceneNode::IsRoot ( )

Definition at line 328 of file scenenode.cpp.

References SBS::Object::GetSceneNode(), and SBS::ObjectBase::sbs.

Referenced by GetOrientation(), GetPosition(), SetOrientation(), and SetPosition().

Here is the call graph for this function:

◆ LookAt()

void SBS::SceneNode::LookAt ( const Vector3 & point)

Definition at line 372 of file scenenode.cpp.

References node, SBS::ObjectBase::sbs, and SBS::SBS::ToRemote().

Referenced by SBS::CameraTexture::CameraTexture(), and SBS::CameraTexture::LookAt().

Here is the call graph for this function:

◆ Move()

void SBS::SceneNode::Move ( const Vector3 & vector,
Real speed = 1.0 )

Definition at line 237 of file scenenode.cpp.

References node, SBS::ObjectBase::sbs, SBS::SBS::ToRemote(), and Update().

Referenced by CreateChild(), and SBS::Object::Move().

Here is the call graph for this function:

◆ Pitch()

void SBS::SceneNode::Pitch ( Real & degree)

Definition at line 333 of file scenenode.cpp.

References node.

◆ RemoveChild()

void SBS::SceneNode::RemoveChild ( SceneNode * scenenode)

Definition at line 81 of file scenenode.cpp.

References GetRawSceneNode(), and node.

Referenced by SBS::Object::RemoveChild().

Here is the call graph for this function:

◆ Roll()

void SBS::SceneNode::Roll ( Real & degree)

Definition at line 347 of file scenenode.cpp.

References node.

◆ SetDirection()

void SBS::SceneNode::SetDirection ( const Vector3 & direction)

Definition at line 367 of file scenenode.cpp.

References node, SBS::ObjectBase::sbs, and SBS::SBS::ToRemote().

Referenced by SBS::Light::SetDirection().

Here is the call graph for this function:

◆ SetOrientation()

void SBS::SceneNode::SetOrientation ( const Quaternion & q,
bool relative = false )

Definition at line 217 of file scenenode.cpp.

References IsRoot(), node, SBS::ObjectBase::sbs, SBS::SBS::ToGlobal(), and Update().

Referenced by SBS::Object::ChangeParent(), SBS::Object::SetOrientation(), and SetRotation().

Here is the call graph for this function:

◆ SetPosition()

void SBS::SceneNode::SetPosition ( const Vector3 & position)

Definition at line 101 of file scenenode.cpp.

References IsRoot(), node, SBS::ObjectBase::sbs, SBS::SBS::ToGlobal(), SBS::SBS::ToRemote(), and Update().

Referenced by SBS::Camera::SetPosition(), and SBS::Object::SetPosition().

Here is the call graph for this function:

◆ SetPositionRelative()

void SBS::SceneNode::SetPositionRelative ( const Vector3 & position)

Definition at line 115 of file scenenode.cpp.

References node, SBS::ObjectBase::sbs, SBS::SBS::ToRemote(), and Update().

Referenced by SBS::Object::SetPositionRelative().

Here is the call graph for this function:

◆ SetRotation()

void SBS::SceneNode::SetRotation ( const Vector3 & rotation)

Definition at line 148 of file scenenode.cpp.

References node, Rotation, and SetOrientation().

Referenced by SBS::Object::SetRotation().

Here is the call graph for this function:

◆ SetScale()

void SBS::SceneNode::SetScale ( Real scale)

Definition at line 294 of file scenenode.cpp.

References node.

Referenced by SBS::MeshObject::MeshObject().

◆ ShowBoundingBox()

void SBS::SceneNode::ShowBoundingBox ( bool value)

Definition at line 93 of file scenenode.cpp.

References node.

Referenced by SBS::Object::ShowBoundingBox().

◆ Update()

◆ Yaw()

void SBS::SceneNode::Yaw ( Real & degree)

Definition at line 340 of file scenenode.cpp.

References node.

Member Data Documentation

◆ node

◆ Rotation

Vector3 SBS::SceneNode::Rotation
private

Definition at line 67 of file scenenode.h.

Referenced by GetRotation(), SceneNode(), and SetRotation().


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