doom3-gpl
Doom 3 GPL source release
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Static Public Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes | Friends | List of all members
idClipModel Class Reference

#include <Clip.h>

Public Member Functions

 idClipModel (void)
 
 idClipModel (const char *name)
 
 idClipModel (const idTraceModel &trm)
 
 idClipModel (const int renderModelHandle)
 
 idClipModel (const idClipModel *model)
 
 ~idClipModel (void)
 
bool LoadModel (const char *name)
 
void LoadModel (const idTraceModel &trm)
 
void LoadModel (const int renderModelHandle)
 
void Save (idSaveGame *savefile) const
 
void Restore (idRestoreGame *savefile)
 
void Link (idClip &clp)
 
void Link (idClip &clp, idEntity *ent, int newId, const idVec3 &newOrigin, const idMat3 &newAxis, int renderModelHandle=-1)
 
void Unlink (void)
 
void SetPosition (const idVec3 &newOrigin, const idMat3 &newAxis)
 
void Translate (const idVec3 &translation)
 
void Rotate (const idRotation &rotation)
 
void Enable (void)
 
void Disable (void)
 
void SetMaterial (const idMaterial *m)
 
const idMaterialGetMaterial (void) const
 
void SetContents (int newContents)
 
int GetContents (void) const
 
void SetEntity (idEntity *newEntity)
 
idEntityGetEntity (void) const
 
void SetId (int newId)
 
int GetId (void) const
 
void SetOwner (idEntity *newOwner)
 
idEntityGetOwner (void) const
 
const idBoundsGetBounds (void) const
 
const idBoundsGetAbsBounds (void) const
 
const idVec3GetOrigin (void) const
 
const idMat3GetAxis (void) const
 
bool IsTraceModel (void) const
 
bool IsRenderModel (void) const
 
bool IsLinked (void) const
 
bool IsEnabled (void) const
 
bool IsEqual (const idTraceModel &trm) const
 
cmHandle_t Handle (void) const
 
const idTraceModelGetTraceModel (void) const
 
void GetMassProperties (const float density, float &mass, idVec3 &centerOfMass, idMat3 &inertiaTensor) const
 

Static Public Member Functions

static cmHandle_t CheckModel (const char *name)
 
static void ClearTraceModelCache (void)
 
static int TraceModelCacheSize (void)
 
static void SaveTraceModels (idSaveGame *savefile)
 
static void RestoreTraceModels (idRestoreGame *savefile)
 

Private Member Functions

void Init (void)
 
void Link_r (struct clipSector_s *node)
 

Static Private Member Functions

static int AllocTraceModel (const idTraceModel &trm)
 
static void FreeTraceModel (int traceModelIndex)
 
static idTraceModelGetCachedTraceModel (int traceModelIndex)
 
static int GetTraceModelHashKey (const idTraceModel &trm)
 

Private Attributes

bool enabled
 
idEntityentity
 
int id
 
idEntityowner
 
idVec3 origin
 
idMat3 axis
 
idBounds bounds
 
idBounds absBounds
 
const idMaterialmaterial
 
int contents
 
cmHandle_t collisionModelHandle
 
int traceModelIndex
 
int renderModelHandle
 
struct clipLink_sclipLinks
 
int touchCount
 

Friends

class idClip
 

Detailed Description

Definition at line 54 of file Clip.h.

Constructor & Destructor Documentation

idClipModel::idClipModel ( void  )

Definition at line 295 of file Clip.cpp.

idClipModel::idClipModel ( const char *  name)
explicit

Definition at line 304 of file Clip.cpp.

idClipModel::idClipModel ( const idTraceModel trm)
explicit

Definition at line 314 of file Clip.cpp.

idClipModel::idClipModel ( const int  renderModelHandle)
explicit

Definition at line 324 of file Clip.cpp.

idClipModel::idClipModel ( const idClipModel model)
explicit

Definition at line 335 of file Clip.cpp.

idClipModel::~idClipModel ( void  )

Definition at line 361 of file Clip.cpp.

Member Function Documentation

int idClipModel::AllocTraceModel ( const idTraceModel trm)
staticprivate

Definition at line 100 of file Clip.cpp.

cmHandle_t idClipModel::CheckModel ( const char *  name)
static

Definition at line 604 of file Clip.cpp.

void idClipModel::ClearTraceModelCache ( void  )
static

Definition at line 81 of file Clip.cpp.

ID_INLINE void idClipModel::Disable ( void  )

Definition at line 154 of file Clip.h.

ID_INLINE void idClipModel::Enable ( void  )

Definition at line 150 of file Clip.h.

void idClipModel::FreeTraceModel ( int  traceModelIndex)
staticprivate

Definition at line 127 of file Clip.cpp.

ID_INLINE const idBounds & idClipModel::GetAbsBounds ( void  ) const

Definition at line 202 of file Clip.h.

ID_INLINE const idMat3 & idClipModel::GetAxis ( void  ) const

Definition at line 210 of file Clip.h.

ID_INLINE const idBounds & idClipModel::GetBounds ( void  ) const

Definition at line 198 of file Clip.h.

idTraceModel * idClipModel::GetCachedTraceModel ( int  traceModelIndex)
staticprivate

Definition at line 140 of file Clip.cpp.

ID_INLINE int idClipModel::GetContents ( void  ) const

Definition at line 170 of file Clip.h.

ID_INLINE idEntity * idClipModel::GetEntity ( void  ) const

Definition at line 178 of file Clip.h.

ID_INLINE int idClipModel::GetId ( void  ) const

Definition at line 186 of file Clip.h.

void idClipModel::GetMassProperties ( const float  density,
float mass,
idVec3 centerOfMass,
idMat3 inertiaTensor 
) const

Definition at line 475 of file Clip.cpp.

ID_INLINE const idMaterial * idClipModel::GetMaterial ( void  ) const

Definition at line 162 of file Clip.h.

ID_INLINE const idVec3 & idClipModel::GetOrigin ( void  ) const

Definition at line 206 of file Clip.h.

ID_INLINE idEntity * idClipModel::GetOwner ( void  ) const

Definition at line 194 of file Clip.h.

ID_INLINE const idTraceModel * idClipModel::GetTraceModel ( void  ) const

Definition at line 234 of file Clip.h.

int idClipModel::GetTraceModelHashKey ( const idTraceModel trm)
staticprivate

Definition at line 149 of file Clip.cpp.

cmHandle_t idClipModel::Handle ( void  ) const

Definition at line 457 of file Clip.cpp.

void idClipModel::Init ( void  )
private

Definition at line 272 of file Clip.cpp.

ID_INLINE bool idClipModel::IsEnabled ( void  ) const

Definition at line 226 of file Clip.h.

ID_INLINE bool idClipModel::IsEqual ( const idTraceModel trm) const

Definition at line 230 of file Clip.h.

ID_INLINE bool idClipModel::IsLinked ( void  ) const

Definition at line 222 of file Clip.h.

ID_INLINE bool idClipModel::IsRenderModel ( void  ) const

Definition at line 214 of file Clip.h.

ID_INLINE bool idClipModel::IsTraceModel ( void  ) const

Definition at line 218 of file Clip.h.

void idClipModel::Link ( idClip clp)

Definition at line 545 of file Clip.cpp.

void idClipModel::Link ( idClip clp,
idEntity ent,
int  newId,
const idVec3 newOrigin,
const idMat3 newAxis,
int  renderModelHandle = -1 
)

Definition at line 583 of file Clip.cpp.

void idClipModel::Link_r ( struct clipSector_s node)
private

Definition at line 513 of file Clip.cpp.

bool idClipModel::LoadModel ( const char *  name)

Definition at line 215 of file Clip.cpp.

void idClipModel::LoadModel ( const idTraceModel trm)

Definition at line 237 of file Clip.cpp.

void idClipModel::LoadModel ( const int  renderModelHandle)

Definition at line 252 of file Clip.cpp.

void idClipModel::Restore ( idRestoreGame savefile)

Definition at line 401 of file Clip.cpp.

void idClipModel::RestoreTraceModels ( idRestoreGame savefile)
static

Definition at line 178 of file Clip.cpp.

ID_INLINE void idClipModel::Rotate ( const idRotation rotation)

Definition at line 144 of file Clip.h.

void idClipModel::Save ( idSaveGame savefile) const

Definition at line 374 of file Clip.cpp.

void idClipModel::SaveTraceModels ( idSaveGame savefile)
static

Definition at line 159 of file Clip.cpp.

ID_INLINE void idClipModel::SetContents ( int  newContents)

Definition at line 166 of file Clip.h.

ID_INLINE void idClipModel::SetEntity ( idEntity newEntity)

Definition at line 174 of file Clip.h.

ID_INLINE void idClipModel::SetId ( int  newId)

Definition at line 182 of file Clip.h.

ID_INLINE void idClipModel::SetMaterial ( const idMaterial m)

Definition at line 158 of file Clip.h.

ID_INLINE void idClipModel::SetOwner ( idEntity newOwner)

Definition at line 190 of file Clip.h.

void idClipModel::SetPosition ( const idVec3 newOrigin,
const idMat3 newAxis 
)

Definition at line 444 of file Clip.cpp.

int idClipModel::TraceModelCacheSize ( void  )
static

Definition at line 91 of file Clip.cpp.

ID_INLINE void idClipModel::Translate ( const idVec3 translation)

Definition at line 139 of file Clip.h.

void idClipModel::Unlink ( void  )

Definition at line 491 of file Clip.cpp.

Friends And Related Function Documentation

friend class idClip
friend

Definition at line 56 of file Clip.h.

Member Data Documentation

idBounds idClipModel::absBounds
private

Definition at line 119 of file Clip.h.

idMat3 idClipModel::axis
private

Definition at line 117 of file Clip.h.

idBounds idClipModel::bounds
private

Definition at line 118 of file Clip.h.

struct clipLink_s* idClipModel::clipLinks
private

Definition at line 126 of file Clip.h.

cmHandle_t idClipModel::collisionModelHandle
private

Definition at line 122 of file Clip.h.

int idClipModel::contents
private

Definition at line 121 of file Clip.h.

bool idClipModel::enabled
private

Definition at line 112 of file Clip.h.

idEntity* idClipModel::entity
private

Definition at line 113 of file Clip.h.

int idClipModel::id
private

Definition at line 114 of file Clip.h.

const idMaterial* idClipModel::material
private

Definition at line 120 of file Clip.h.

idVec3 idClipModel::origin
private

Definition at line 116 of file Clip.h.

idEntity* idClipModel::owner
private

Definition at line 115 of file Clip.h.

int idClipModel::renderModelHandle
private

Definition at line 124 of file Clip.h.

int idClipModel::touchCount
private

Definition at line 127 of file Clip.h.

int idClipModel::traceModelIndex
private

Definition at line 123 of file Clip.h.


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