SuperTuxKart
Loading...
Searching...
No Matches
Public Member Functions | Protected Attributes | List of all members
TrackObjectPresentationSceneNode Class Reference

Base class for all track object presentation classes using a scene node as presentation. More...

#include <track_object_presentation.hpp>

Inheritance diagram for TrackObjectPresentationSceneNode:
Inheritance graph
[legend]

Public Member Functions

 TrackObjectPresentationSceneNode (const XMLNode &xml_node)
 Constructor based on data from xml.
 
 TrackObjectPresentationSceneNode (const core::vector3df &xyz, const core::vector3df &hpr, const core::vector3df &scale, scene::ISceneNode *node=NULL)
 Constructor based on a transform.
 
virtual const core::vector3df & getPosition () const OVERRIDE
 Returns the position of this TrackObjectPresentation.
 
virtual const core::vector3df getAbsolutePosition () const OVERRIDE
 Returns a copy of the initial position.
 
virtual const core::vector3df getAbsoluteCenterPosition () const OVERRIDE
 
virtual const core::vector3df & getRotation () const OVERRIDE
 Returns the initial rotation.
 
virtual const core::vector3df & getScale () const OVERRIDE
 Returns the initial scale.
 
virtual void move (const core::vector3df &xyz, const core::vector3df &hpr, const core::vector3df &scale, bool isAbsoluteCoord) OVERRIDE
 
virtual void setEnable (bool enabled) OVERRIDE
 
virtual void reset () OVERRIDE
 
scene::ISceneNode * getNode ()
 Returns a pointer to the scene node.
 
const scene::ISceneNode * getNode () const
 Returns a pointer to the scene node, const version.
 
bool isAlwaysHidden () const
 
- Public Member Functions inherited from TrackObjectPresentation
 TrackObjectPresentation (const XMLNode &xml_node)
 
 TrackObjectPresentation (const core::vector3df &xyz, const core::vector3df &hpr=core::vector3df(0, 0, 0), const core::vector3df &scale=core::vector3df(0, 0, 0))
 
virtual void reset ()
 
virtual void setEnable (bool enabled)
 
virtual void updateGraphics (float dt)
 
virtual void update (float dt)
 
virtual void move (const core::vector3df &xyz, const core::vector3df &hpr, const core::vector3df &scale, bool isAbsoluteCoord)
 
virtual const core::vector3df & getPosition () const
 Returns the position of this TrackObjectPresentation.
 
virtual const core::vector3df getAbsolutePosition () const
 Returns a copy of the initial position.
 
virtual const core::vector3df getAbsoluteCenterPosition () const
 
virtual const core::vector3df & getRotation () const
 Returns the initial rotation.
 
virtual const core::vector3df & getScale () const
 Returns the initial scale.
 

Protected Attributes

scene::ISceneNode * m_node
 A pointer to the scene node of this object.
 
bool m_force_always_hidden
 
- Protected Attributes inherited from TrackObjectPresentation
core::vector3df m_init_xyz
 The initial XYZ position of the object.
 
core::vector3df m_init_hpr
 The initial hpr of the object.
 
core::vector3df m_init_scale
 The initial scale of the object.
 

Detailed Description

Base class for all track object presentation classes using a scene node as presentation.

Member Function Documentation

◆ getAbsoluteCenterPosition()

const core::vector3df TrackObjectPresentationSceneNode::getAbsoluteCenterPosition ( ) const
virtual

Reimplemented from TrackObjectPresentation.

◆ getAbsolutePosition()

const core::vector3df TrackObjectPresentationSceneNode::getAbsolutePosition ( ) const
virtual

Returns a copy of the initial position.

Note this function does not return a const reference, since some classes overwrite it this way.

Reimplemented from TrackObjectPresentation.

◆ getPosition()

const core::vector3df & TrackObjectPresentationSceneNode::getPosition ( ) const
virtual

Returns the position of this TrackObjectPresentation.

Reimplemented from TrackObjectPresentation.

◆ getRotation()

const core::vector3df & TrackObjectPresentationSceneNode::getRotation ( ) const
virtual

Returns the initial rotation.

Reimplemented from TrackObjectPresentation.

◆ getScale()

const core::vector3df & TrackObjectPresentationSceneNode::getScale ( ) const
virtual

Returns the initial scale.

Reimplemented from TrackObjectPresentation.

◆ move()

void TrackObjectPresentationSceneNode::move ( const core::vector3df &  xyz,
const core::vector3df &  hpr,
const core::vector3df &  scale,
bool  isAbsoluteCoord 
)
virtual

Reimplemented from TrackObjectPresentation.

◆ reset()

void TrackObjectPresentationSceneNode::reset ( )
virtual

Reimplemented from TrackObjectPresentation.

◆ setEnable()

void TrackObjectPresentationSceneNode::setEnable ( bool  enabled)
virtual

Reimplemented from TrackObjectPresentation.


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