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

#include <Clip.h>

Public Member Functions

 idClip (void)
 
void Init (void)
 
void Shutdown (void)
 
bool Translation (trace_t &results, const idVec3 &start, const idVec3 &end, const idClipModel *mdl, const idMat3 &trmAxis, int contentMask, const idEntity *passEntity)
 
bool Rotation (trace_t &results, const idVec3 &start, const idRotation &rotation, const idClipModel *mdl, const idMat3 &trmAxis, int contentMask, const idEntity *passEntity)
 
bool Motion (trace_t &results, const idVec3 &start, const idVec3 &end, const idRotation &rotation, const idClipModel *mdl, const idMat3 &trmAxis, int contentMask, const idEntity *passEntity)
 
int Contacts (contactInfo_t *contacts, const int maxContacts, const idVec3 &start, const idVec6 &dir, const float depth, const idClipModel *mdl, const idMat3 &trmAxis, int contentMask, const idEntity *passEntity)
 
int Contents (const idVec3 &start, const idClipModel *mdl, const idMat3 &trmAxis, int contentMask, const idEntity *passEntity)
 
bool TracePoint (trace_t &results, const idVec3 &start, const idVec3 &end, int contentMask, const idEntity *passEntity)
 
bool TraceBounds (trace_t &results, const idVec3 &start, const idVec3 &end, const idBounds &bounds, int contentMask, const idEntity *passEntity)
 
void TranslationModel (trace_t &results, const idVec3 &start, const idVec3 &end, const idClipModel *mdl, const idMat3 &trmAxis, int contentMask, cmHandle_t model, const idVec3 &modelOrigin, const idMat3 &modelAxis)
 
void RotationModel (trace_t &results, const idVec3 &start, const idRotation &rotation, const idClipModel *mdl, const idMat3 &trmAxis, int contentMask, cmHandle_t model, const idVec3 &modelOrigin, const idMat3 &modelAxis)
 
int ContactsModel (contactInfo_t *contacts, const int maxContacts, const idVec3 &start, const idVec6 &dir, const float depth, const idClipModel *mdl, const idMat3 &trmAxis, int contentMask, cmHandle_t model, const idVec3 &modelOrigin, const idMat3 &modelAxis)
 
int ContentsModel (const idVec3 &start, const idClipModel *mdl, const idMat3 &trmAxis, int contentMask, cmHandle_t model, const idVec3 &modelOrigin, const idMat3 &modelAxis)
 
void TranslationEntities (trace_t &results, const idVec3 &start, const idVec3 &end, const idClipModel *mdl, const idMat3 &trmAxis, int contentMask, const idEntity *passEntity)
 
bool GetModelContactFeature (const contactInfo_t &contact, const idClipModel *clipModel, idFixedWinding &winding) const
 
int EntitiesTouchingBounds (const idBounds &bounds, int contentMask, idEntity **entityList, int maxCount) const
 
int ClipModelsTouchingBounds (const idBounds &bounds, int contentMask, idClipModel **clipModelList, int maxCount) const
 
const idBoundsGetWorldBounds (void) const
 
idClipModelDefaultClipModel (void)
 
void PrintStatistics (void)
 
void DrawClipModels (const idVec3 &eye, const float radius, const idEntity *passEntity)
 
bool DrawModelContactFeature (const contactInfo_t &contact, const idClipModel *clipModel, int lifetime) const
 

Private Member Functions

struct clipSector_sCreateClipSectors_r (const int depth, const idBounds &bounds, idVec3 &maxSector)
 
void ClipModelsTouchingBounds_r (const struct clipSector_s *node, struct listParms_s &parms) const
 
const idTraceModelTraceModelForClipModel (const idClipModel *mdl) const
 
int GetTraceClipModels (const idBounds &bounds, int contentMask, const idEntity *passEntity, idClipModel **clipModelList) const
 
void TraceRenderModel (trace_t &trace, const idVec3 &start, const idVec3 &end, const float radius, const idMat3 &axis, idClipModel *touch) const
 

Private Attributes

int numClipSectors
 
struct clipSector_sclipSectors
 
idBounds worldBounds
 
idClipModel temporaryClipModel
 
idClipModel defaultClipModel
 
int touchCount
 
int numTranslations
 
int numRotations
 
int numMotions
 
int numRenderModelTraces
 
int numContents
 
int numContacts
 

Friends

class idClipModel
 

Detailed Description

Definition at line 248 of file Clip.h.

Constructor & Destructor Documentation

idClip::idClip ( void  )

Definition at line 622 of file Clip.cpp.

Member Function Documentation

int idClip::ClipModelsTouchingBounds ( const idBounds bounds,
int  contentMask,
idClipModel **  clipModelList,
int  maxCount 
) const

Definition at line 804 of file Clip.cpp.

void idClip::ClipModelsTouchingBounds_r ( const struct clipSector_s node,
struct listParms_s parms 
) const
private

Definition at line 747 of file Clip.cpp.

int idClip::Contacts ( contactInfo_t contacts,
const int  maxContacts,
const idVec3 start,
const idVec6 dir,
const float  depth,
const idClipModel mdl,
const idMat3 trmAxis,
int  contentMask,
const idEntity passEntity 
)

Definition at line 1358 of file Clip.cpp.

int idClip::ContactsModel ( contactInfo_t contacts,
const int  maxContacts,
const idVec3 start,
const idVec6 dir,
const float  depth,
const idClipModel mdl,
const idMat3 trmAxis,
int  contentMask,
cmHandle_t  model,
const idVec3 modelOrigin,
const idMat3 modelAxis 
)

Definition at line 1519 of file Clip.cpp.

int idClip::Contents ( const idVec3 start,
const idClipModel mdl,
const idMat3 trmAxis,
int  contentMask,
const idEntity passEntity 
)

Definition at line 1429 of file Clip.cpp.

int idClip::ContentsModel ( const idVec3 start,
const idClipModel mdl,
const idMat3 trmAxis,
int  contentMask,
cmHandle_t  model,
const idVec3 modelOrigin,
const idMat3 modelAxis 
)

Definition at line 1532 of file Clip.cpp.

clipSector_t * idClip::CreateClipSectors_r ( const int  depth,
const idBounds bounds,
idVec3 maxSector 
)
private

Definition at line 636 of file Clip.cpp.

ID_INLINE idClipModel * idClip::DefaultClipModel ( void  )

Definition at line 348 of file Clip.h.

void idClip::DrawClipModels ( const idVec3 eye,
const float  radius,
const idEntity passEntity 
)

Definition at line 1617 of file Clip.cpp.

bool idClip::DrawModelContactFeature ( const contactInfo_t contact,
const idClipModel clipModel,
int  lifetime 
) const

Definition at line 1645 of file Clip.cpp.

int idClip::EntitiesTouchingBounds ( const idBounds bounds,
int  contentMask,
idEntity **  entityList,
int  maxCount 
) const

Definition at line 833 of file Clip.cpp.

bool idClip::GetModelContactFeature ( const contactInfo_t contact,
const idClipModel clipModel,
idFixedWinding winding 
) const

Definition at line 1545 of file Clip.cpp.

int idClip::GetTraceClipModels ( const idBounds bounds,
int  contentMask,
const idEntity passEntity,
idClipModel **  clipModelList 
) const
private

Definition at line 870 of file Clip.cpp.

ID_INLINE const idBounds & idClip::GetWorldBounds ( void  ) const

Definition at line 344 of file Clip.h.

void idClip::Init ( void  )

Definition at line 684 of file Clip.cpp.

bool idClip::Motion ( trace_t results,
const idVec3 start,
const idVec3 end,
const idRotation rotation,
const idClipModel mdl,
const idMat3 trmAxis,
int  contentMask,
const idEntity passEntity 
)

Definition at line 1197 of file Clip.cpp.

void idClip::PrintStatistics ( void  )

Definition at line 1606 of file Clip.cpp.

bool idClip::Rotation ( trace_t results,
const idVec3 start,
const idRotation rotation,
const idClipModel mdl,
const idMat3 trmAxis,
int  contentMask,
const idEntity passEntity 
)

Definition at line 1130 of file Clip.cpp.

void idClip::RotationModel ( trace_t results,
const idVec3 start,
const idRotation rotation,
const idClipModel mdl,
const idMat3 trmAxis,
int  contentMask,
cmHandle_t  model,
const idVec3 modelOrigin,
const idMat3 modelAxis 
)

Definition at line 1506 of file Clip.cpp.

void idClip::Shutdown ( void  )

Definition at line 715 of file Clip.cpp.

ID_INLINE bool idClip::TraceBounds ( trace_t results,
const idVec3 start,
const idVec3 end,
const idBounds bounds,
int  contentMask,
const idEntity passEntity 
)

Definition at line 338 of file Clip.h.

const idTraceModel * idClip::TraceModelForClipModel ( const idClipModel mdl) const
private

Definition at line 944 of file Clip.cpp.

ID_INLINE bool idClip::TracePoint ( trace_t results,
const idVec3 start,
const idVec3 end,
int  contentMask,
const idEntity passEntity 
)

Definition at line 333 of file Clip.h.

void idClip::TraceRenderModel ( trace_t trace,
const idVec3 start,
const idVec3 end,
const float  radius,
const idMat3 axis,
idClipModel touch 
) const
private

Definition at line 913 of file Clip.cpp.

bool idClip::Translation ( trace_t results,
const idVec3 start,
const idVec3 end,
const idClipModel mdl,
const idMat3 trmAxis,
int  contentMask,
const idEntity passEntity 
)

Definition at line 1056 of file Clip.cpp.

void idClip::TranslationEntities ( trace_t results,
const idVec3 start,
const idVec3 end,
const idClipModel mdl,
const idMat3 trmAxis,
int  contentMask,
const idEntity passEntity 
)

Definition at line 995 of file Clip.cpp.

void idClip::TranslationModel ( trace_t results,
const idVec3 start,
const idVec3 end,
const idClipModel mdl,
const idMat3 trmAxis,
int  contentMask,
cmHandle_t  model,
const idVec3 modelOrigin,
const idMat3 modelAxis 
)

Definition at line 1493 of file Clip.cpp.

Friends And Related Function Documentation

friend class idClipModel
friend

Definition at line 250 of file Clip.h.

Member Data Documentation

struct clipSector_s* idClip::clipSectors
private

Definition at line 311 of file Clip.h.

idClipModel idClip::defaultClipModel
private

Definition at line 314 of file Clip.h.

int idClip::numClipSectors
private

Definition at line 310 of file Clip.h.

int idClip::numContacts
private

Definition at line 322 of file Clip.h.

int idClip::numContents
private

Definition at line 321 of file Clip.h.

int idClip::numMotions
private

Definition at line 319 of file Clip.h.

int idClip::numRenderModelTraces
private

Definition at line 320 of file Clip.h.

int idClip::numRotations
private

Definition at line 318 of file Clip.h.

int idClip::numTranslations
private

Definition at line 317 of file Clip.h.

idClipModel idClip::temporaryClipModel
private

Definition at line 313 of file Clip.h.

int idClip::touchCount
mutableprivate

Definition at line 315 of file Clip.h.

idBounds idClip::worldBounds
private

Definition at line 312 of file Clip.h.


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