Pyrogenesis
13997
|
Particle emitter model, for attaching emitters as props on other models. More...
#include <ParticleEmitter.h>
Public Member Functions | |
CModelParticleEmitter (const CParticleEmitterTypePtr &type) | |
~CModelParticleEmitter () | |
virtual CModelParticleEmitter * | ToCModelParticleEmitter () |
Dynamic cast. More... | |
virtual CModelAbstract * | Clone () const |
virtual void | SetDirtyRec (int dirtyflags) |
Calls SetDirty on this model and all child objects. More... | |
virtual void | SetTerrainDirty (ssize_t i0, ssize_t j0, ssize_t i1, ssize_t j1) |
Called when terrain has changed in the given inclusive bounds. More... | |
virtual void | SetEntityVariable (const std::string &name, float value) |
Called when the entity tries to set some variable to affect the display of this model and/or its child objects. More... | |
virtual void | CalcBounds () |
(Re)calculates and stores any bounds or bound-dependent data for this object. More... | |
virtual void | ValidatePosition () |
Ensure that both the transformation and the bone matrices are correct for this model and all its props. More... | |
virtual void | InvalidatePosition () |
Mark this model's position and bone matrices, and all props' positions as invalid. More... | |
virtual void | SetTransform (const CMatrix3D &transform) |
![]() | |
CModelAbstract () | |
~CModelAbstract () | |
virtual CModel * | ToCModel () |
Dynamic cast. More... | |
virtual CModelDecal * | ToCModelDecal () |
Dynamic cast. More... | |
virtual const CBoundingBoxAligned | GetWorldBoundsRec () |
Returns world space bounds of this object and all child objects. More... | |
virtual const CBoundingBoxOriented & | GetSelectionBox () |
Returns the world-space selection box of this model. More... | |
virtual void | InvalidateBounds () |
Marks the bounds as invalid. More... | |
void | SetCustomSelectionShape (CustomSelectionShape *descriptor) |
Sets a custom selection shape as described by a descriptor . More... | |
virtual const CBoundingBoxAligned | GetObjectSelectionBoundsRec () |
Returns the (object-space) bounds that should be used to construct a selection box for this model and its children. More... | |
virtual void | SetPlayerID (player_id_t id) |
virtual player_id_t | GetPlayerID () const |
virtual void | SetShadingColor (const CColor &colour) |
virtual CColor | GetShadingColor () const |
![]() | |
CRenderableObject () | |
virtual | ~CRenderableObject () |
const CMatrix3D & | GetTransform () const |
const CMatrix3D & | GetInvTransform () const |
void | SetDirty (u32 dirtyflags) |
const CBoundingBoxAligned & | GetWorldBounds () |
Returns the world-space axis-aligned bounds of this object. More... | |
void | SetRenderData (CRenderData *renderdata) |
CRenderData * | GetRenderData () |
Return object renderdata - can be null if renderer hasn't yet created the renderdata. More... | |
Public Attributes | |
CParticleEmitterTypePtr | m_Type |
CParticleEmitterPtr | m_Emitter |
![]() | |
CModelAbstract * | m_Parent |
If non-null, points to the model that we are attached to. More... | |
bool | m_PositionValid |
True if both transform and and bone matrices are valid. More... | |
player_id_t | m_PlayerID |
CColor | m_ShadingColor |
Modulating color. More... | |
Additional Inherited Members | |
![]() | |
void | CalcSelectionBox () |
![]() | |
void | RecalculateBoundsIfNecessary () |
Factored out so subclasses don't need to repeat this if they want to add additional getters for bounds-related methods (since they'll have to make sure to recalc the bounds if necessary before they return it). More... | |
![]() | |
CBoundingBoxOriented | m_SelectionBox |
Selection box for this model. More... | |
bool | m_SelectionBoxValid |
Is the current selection box valid? More... | |
CustomSelectionShape * | m_CustomSelectionShape |
Pointer to a descriptor for a custom-defined selection box shape. More... | |
![]() | |
CBoundingBoxAligned | m_WorldBounds |
World-space bounds of this object. More... | |
CMatrix3D | m_Transform |
CMatrix3D | m_InvTransform |
CRenderData * | m_RenderData |
bool | m_BoundsValid |
Remembers whether any bounds need to be recalculated. More... | |
Particle emitter model, for attaching emitters as props on other models.
Definition at line 150 of file ParticleEmitter.h.
CModelParticleEmitter::CModelParticleEmitter | ( | const CParticleEmitterTypePtr & | type | ) |
Definition at line 234 of file ParticleEmitter.cpp.
CModelParticleEmitter::~CModelParticleEmitter | ( | ) |
Definition at line 240 of file ParticleEmitter.cpp.
|
virtual |
(Re)calculates and stores any bounds or bound-dependent data for this object.
At this abstraction level, this is only the world-space bounds stored in m_WorldBounds; subclasses may use this method to (re)compute additional bounds if necessary, or any data that depends on the bounds. Whenever bound-dependent data is requested through a public interface, RecalculateBoundsIfNecessary should be called first to ensure bound correctness, which will in turn call this method if it turns out that they're outdated.
Implements CRenderableObject.
Definition at line 255 of file ParticleEmitter.cpp.
|
virtual |
Implements CModelAbstract.
Definition at line 250 of file ParticleEmitter.cpp.
|
virtual |
Mark this model's position and bone matrices, and all props' positions as invalid.
Implements CModelAbstract.
Definition at line 273 of file ParticleEmitter.cpp.
|
inlinevirtual |
Calls SetDirty on this model and all child objects.
Implements CModelAbstract.
Definition at line 164 of file ParticleEmitter.h.
|
virtual |
Called when the entity tries to set some variable to affect the display of this model and/or its child objects.
Reimplemented from CModelAbstract.
Definition at line 245 of file ParticleEmitter.cpp.
|
inlinevirtual |
Called when terrain has changed in the given inclusive bounds.
Might call SetDirty if the change affects this model.
Implements CModelAbstract.
Definition at line 169 of file ParticleEmitter.h.
|
virtual |
Reimplemented from CRenderableObject.
Definition at line 277 of file ParticleEmitter.cpp.
|
inlinevirtual |
|
virtual |
Ensure that both the transformation and the bone matrices are correct for this model and all its props.
Implements CModelAbstract.
Definition at line 264 of file ParticleEmitter.cpp.
CParticleEmitterPtr CModelParticleEmitter::m_Emitter |
Definition at line 181 of file ParticleEmitter.h.
CParticleEmitterTypePtr CModelParticleEmitter::m_Type |
Definition at line 180 of file ParticleEmitter.h.