SuperTuxKart
Public Member Functions | Private Member Functions | Private Attributes | List of all members
TrackObjectPresentationMesh Class Reference

A track object representation that consists of a mesh scene node. More...

#include <track_object_presentation.hpp>

Inheritance diagram for TrackObjectPresentationMesh:
Inheritance graph
[legend]

Public Member Functions

 TrackObjectPresentationMesh (const XMLNode &xml_node, bool enabled, scene::ISceneNode *parent, std::shared_ptr< RenderInfo > render_info)
 
 TrackObjectPresentationMesh (const std::string &model_file, const core::vector3df &xyz, const core::vector3df &hpr, const core::vector3df &scale)
 
 TrackObjectPresentationMesh (scene::IAnimatedMesh *mesh, const core::vector3df &xyz, const core::vector3df &hpr, const core::vector3df &scale)
 
virtual void reset () OVERRIDE
 
const std::string & getModelFile () const
 Returns the mode file name. More...
 
- Public Member Functions inherited from TrackObjectPresentationSceneNode
 TrackObjectPresentationSceneNode (const XMLNode &xml_node)
 Constructor based on data from xml. More...
 
 TrackObjectPresentationSceneNode (const core::vector3df &xyz, const core::vector3df &hpr, const core::vector3df &scale, scene::ISceneNode *node=NULL)
 Constructor based on a transform. More...
 
virtual const core::vector3df & getPosition () const OVERRIDE
 Returns the position of this TrackObjectPresentation. More...
 
virtual const core::vector3df getAbsolutePosition () const OVERRIDE
 Returns a copy of the initial position. More...
 
virtual const core::vector3df getAbsoluteCenterPosition () const OVERRIDE
 
virtual const core::vector3df & getRotation () const OVERRIDE
 Returns the initial rotation. More...
 
virtual const core::vector3df & getScale () const OVERRIDE
 Returns the initial scale. More...
 
virtual void move (const core::vector3df &xyz, const core::vector3df &hpr, const core::vector3df &scale, bool isAbsoluteCoord) OVERRIDE
 
virtual void setEnable (bool enabled) OVERRIDE
 
scene::ISceneNode * getNode ()
 Returns a pointer to the scene node. More...
 
const scene::ISceneNode * getNode () const
 Returns a pointer to the scene node, const version. More...
 
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 updateGraphics (float dt)
 
virtual void update (float dt)
 

Private Member Functions

void init (const XMLNode *xml_node, scene::ISceneNode *parent, bool enabled)
 

Private Attributes

scene::IMesh * m_mesh
 The mesh used here. More...
 
bool m_is_looped
 True if it is a looped animation. More...
 
bool m_is_in_skybox
 True if the object is in the skybox.
 
std::string m_model_file
 
std::shared_ptr< RenderInfom_render_info
 

Additional Inherited Members

- Protected Attributes inherited from TrackObjectPresentationSceneNode
scene::ISceneNode * m_node
 A pointer to the scene node of this object. More...
 
bool m_force_always_hidden
 
- Protected Attributes inherited from TrackObjectPresentation
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

A track object representation that consists of a mesh scene node.

Member Function Documentation

◆ getModelFile()

const std::string& TrackObjectPresentationMesh::getModelFile ( ) const
inline

Returns the mode file name.

Member Data Documentation

◆ m_is_looped

bool TrackObjectPresentationMesh::m_is_looped
private

True if it is a looped animation.

◆ m_mesh

scene::IMesh* TrackObjectPresentationMesh::m_mesh
private

The mesh used here.

It needs to be stored so that it can be removed from irrlicht's mesh cache when it is deleted.


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