SceneNodeParameter< T > Class Template Reference

Template for a class representing parameters containing scene objects. More...

#include <SceneNodeParameter.h>

Inheritance diagram for SceneNodeParameter< T >:

Inheritance graph
[legend]
Collaboration diagram for SceneNodeParameter< T >:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 SceneNodeParameter (const QString &name)
 Constructor of the SceneNodeParameter class.
 SceneNodeParameter (const SceneNodeParameter< T > &parameter)
 Copy constructor of the SceneNodeParameter class.
virtual ~SceneNodeParameter ()
 Destructor of the SceneNodeParameter class.
virtual AbstractParameterclone ()
 Creates an exact copy of the parameter.
Ogre::SceneNode * getSceneNode ()
 Returns the OGRE scene node contained in this parameter.

Static Public Attributes

static const QVariant DefaultValue = QVariant::fromValue<Ogre::SceneNode *>(0)
 The default value for all scene node parameters.

Private Member Functions

void createSceneNode ()
 Creates the scene node that is contained in the scene node parameter.
void destroySceneNode ()
 Destroys the scene node that is contained in the scene node parameter.


Detailed Description

template<Parameter::Type T>
class SceneNodeParameter< T >

Template for a class representing parameters containing scene objects.

Constructor & Destructor Documentation

template<Parameter::Type T>
SceneNodeParameter< T >::SceneNodeParameter ( const QString &  name  )  [inline]

Constructor of the SceneNodeParameter class.

Constructors and Destructors.

Parameters:
name The name of the parameter.
Constructor of the SceneNodeParameter class.

Parameters:
name The name of the parameter.

template<Parameter::Type T>
SceneNodeParameter< T >::SceneNodeParameter ( const SceneNodeParameter< T > &  parameter  )  [inline]

Copy constructor of the SceneNodeParameter class.

Parameters:
parameter The parameter to copy.

template<Parameter::Type T>
SceneNodeParameter< T >::~SceneNodeParameter (  )  [inline, virtual]

Destructor of the SceneNodeParameter class.

Defined virtual to guarantee that the destructor of a derived class will be called if the instance of the derived class is saved in a variable of its parent class type.


Member Function Documentation

template<Parameter::Type T>
AbstractParameter * SceneNodeParameter< T >::clone (  )  [inline, virtual]

Creates an exact copy of the parameter.

Public Functions.

Returns:
An exact copy of the parameter.
Creates an exact copy of the parameter.

Returns:
An exact copy of the parameter.

Reimplemented from Parameter.

template<Parameter::Type T>
Ogre::SceneNode * SceneNodeParameter< T >::getSceneNode (  )  [inline]

Returns the OGRE scene node contained in this parameter.

Returns:
The OGRE scene node contained in this parameter.

template<Parameter::Type T>
void SceneNodeParameter< T >::createSceneNode (  )  [inline, private]

Creates the scene node that is contained in the scene node parameter.

Private Functions.

template<Parameter::Type T>
void SceneNodeParameter< T >::destroySceneNode (  )  [inline, private]

Destroys the scene node that is contained in the scene node parameter.


Member Data Documentation

template<Parameter::Type T>
const QVariant SceneNodeParameter< T >::DefaultValue = QVariant::fromValue<Ogre::SceneNode *>(0) [inline, static]

The default value for all scene node parameters.

Public Static Data.


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

Generated on Wed Feb 24 15:01:03 2010 for Frapper by  doxygen 1.5.9