SuperTuxKart
Public Member Functions | Protected Attributes | List of all members
TrackObjectPresentation Class Reference

Base class for all track object presentation classes. More...

#include <track_object_presentation.hpp>

Inheritance diagram for TrackObjectPresentation:
Inheritance graph
[legend]

Public Member Functions

 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. More...
 
virtual const core::vector3df getAbsolutePosition () const
 Returns a copy of the initial position. More...
 
virtual const core::vector3df getAbsoluteCenterPosition () const
 
virtual const core::vector3df & getRotation () const
 Returns the initial rotation. More...
 
virtual const core::vector3df & getScale () const
 Returns the initial scale. More...
 

Protected Attributes

core::vector3df m_init_xyz
 The initial XYZ position of the object. More...
 
core::vector3df m_init_hpr
 The initial hpr of the object. More...
 
core::vector3df m_init_scale
 The initial scale of the object. More...
 

Detailed Description

Base class for all track object presentation classes.

Member Function Documentation

◆ getAbsolutePosition()

virtual const core::vector3df TrackObjectPresentation::getAbsolutePosition ( ) const
inlinevirtual

Returns a copy of the initial position.

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

Reimplemented in TrackObjectPresentationSceneNode.

◆ getPosition()

virtual const core::vector3df& TrackObjectPresentation::getPosition ( ) const
inlinevirtual

Returns the position of this TrackObjectPresentation.

Reimplemented in TrackObjectPresentationSceneNode.

◆ getRotation()

virtual const core::vector3df& TrackObjectPresentation::getRotation ( ) const
inlinevirtual

Returns the initial rotation.

Reimplemented in TrackObjectPresentationSceneNode.

◆ getScale()

virtual const core::vector3df& TrackObjectPresentation::getScale ( ) const
inlinevirtual

Returns the initial scale.

Reimplemented in TrackObjectPresentationSceneNode.

Member Data Documentation

◆ m_init_hpr

core::vector3df TrackObjectPresentation::m_init_hpr
protected

The initial hpr of the object.

◆ m_init_scale

core::vector3df TrackObjectPresentation::m_init_scale
protected

The initial scale of the object.

◆ m_init_xyz

core::vector3df TrackObjectPresentation::m_init_xyz
protected

The initial XYZ position of the object.


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