Number5
Visualisierung 2 Project - Florian Schober (0828151, f.schober@live.com), Andreas Walch (0926780, walch.andreas89@gmail.com)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Protected Attributes | List of all members
ISceneObject Class Reference

#include <ISceneObject.hpp>

Inheritance diagram for ISceneObject:
SceneInstance SimpleMeshInstance

Public Member Functions

id_t const & getId () const
 
id_t const getPickId () const
 
 ISceneObject (Application *app, bool pickable=true)
 
virtual ~ISceneObject ()
 
virtual bool update (double time, double timeDelta) pure
 

Protected Attributes

Applicationm_app
 
id_t m_id
 
bool m_pickable
 

Detailed Description

ISceneObject is the base-class for objects in the scene-graph. It automatically manages id-assignments.

Definition at line 11 of file ISceneObject.hpp.

Constructor & Destructor Documentation

ISceneObject ( Application app,
bool  pickable = true 
)

Constructs an ISceneObject. Assigns a new id to this object.

Parameters
appThe global application
pickableWheter the object is packable or not

Definition at line 4 of file ISceneObject.cpp.

~ISceneObject ( )
virtual

Destructs an ISceneObject. Gives its id back.

Definition at line 11 of file ISceneObject.cpp.

Member Function Documentation

id_t const& getId ( ) const
inline

Accessor to the objects id.

Returns
The objects id.

Definition at line 23 of file ISceneObject.hpp.

id_t const getPickId ( ) const
inline

Accessor to the picking-id. This is 0 for non-pickable obejcts, and the objects id for every other object.

Returns
The picking-id.

Definition at line 28 of file ISceneObject.hpp.

virtual bool update ( double  time,
double  timeDelta 
)
virtual

Abstract function that can be used to update the objects data. Will be called every frame by the scene-graph.

Parameters
timeThe absolute frame time
timeDeltaThe time since the last frame

Reimplemented in SceneInstance, and SimpleMeshInstance.

Member Data Documentation

Application* m_app
protected

The global application

Definition at line 14 of file ISceneObject.hpp.

id_t m_id
protected

The id of this object

Definition at line 15 of file ISceneObject.hpp.

bool m_pickable
protected

Wheter the object is packable or not

Definition at line 16 of file ISceneObject.hpp.


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