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 | List of all members
idAASBuild Class Reference

#include <AASBuild_local.h>

Public Member Functions

 idAASBuild (void)
 
 ~idAASBuild (void)
 
bool Build (const idStr &fileName, const idAASSettings *settings)
 
bool BuildReachability (const idStr &fileName, const idAASSettings *settings)
 
void Shutdown (void)
 

Private Member Functions

void ParseProcNodes (idLexer *src)
 
bool LoadProcBSP (const char *name, ID_TIME_T minFileTime)
 
void DeleteProcBSP (void)
 
bool ChoppedAwayByProcBSP (int nodeNum, idFixedWinding *w, const idVec3 &normal, const idVec3 &origin, const float radius)
 
void ClipBrushSidesWithProcBSP (idBrushList &brushList)
 
int ContentsForAAS (int contents)
 
idBrushList AddBrushesForMapBrush (const idMapBrush *mapBrush, const idVec3 &origin, const idMat3 &axis, int entityNum, int primitiveNum, idBrushList brushList)
 
idBrushList AddBrushesForMapPatch (const idMapPatch *mapPatch, const idVec3 &origin, const idMat3 &axis, int entityNum, int primitiveNum, idBrushList brushList)
 
idBrushList AddBrushesForMapEntity (const idMapEntity *mapEnt, int entityNum, idBrushList brushList)
 
idBrushList AddBrushesForMapFile (const idMapFile *mapFile, idBrushList brushList)
 
bool CheckForEntities (const idMapFile *mapFile, idStrList &entityClassNames) const
 
void ChangeMultipleBoundingBoxContents_r (idBrushBSPNode *node, int mask)
 
void SetPortalFlags_r (idBrushBSPNode *node)
 
bool PortalIsGap (idBrushBSPPortal *portal, int side)
 
void GravSubdivLeafNode (idBrushBSPNode *node)
 
void GravSubdiv_r (idBrushBSPNode *node)
 
void GravitationalSubdivision (idBrushBSP &bsp)
 
void LedgeSubdivFlood_r (idBrushBSPNode *node, const idLedge *ledge)
 
void LedgeSubdivLeafNodes_r (idBrushBSPNode *node, const idLedge *ledge)
 
void LedgeSubdiv (idBrushBSPNode *root)
 
bool IsLedgeSide_r (idBrushBSPNode *node, idFixedWinding *w, const idPlane &plane, const idVec3 &normal, const idVec3 &origin, const float radius)
 
void AddLedge (const idVec3 &v1, const idVec3 &v2, idBrushBSPNode *node)
 
void FindLeafNodeLedges (idBrushBSPNode *root, idBrushBSPNode *node)
 
void FindLedges_r (idBrushBSPNode *root, idBrushBSPNode *node)
 
void LedgeSubdivision (idBrushBSP &bsp)
 
void WriteLedgeMap (const idStr &fileName, const idStr &ext)
 
bool AllGapsLeadToOtherNode (idBrushBSPNode *nodeWithGaps, idBrushBSPNode *otherNode)
 
bool MergeWithAdjacentLeafNodes (idBrushBSP &bsp, idBrushBSPNode *node)
 
void MergeLeafNodes_r (idBrushBSP &bsp, idBrushBSPNode *node)
 
void MergeLeafNodes (idBrushBSP &bsp)
 
void SetupHash (void)
 
void ShutdownHash (void)
 
void ClearHash (const idBounds &bounds)
 
int HashVec (const idVec3 &vec)
 
bool GetVertex (const idVec3 &v, int *vertexNum)
 
bool GetEdge (const idVec3 &v1, const idVec3 &v2, int *edgeNum, int v1num)
 
bool GetFaceForPortal (idBrushBSPPortal *portal, int side, int *faceNum)
 
bool GetAreaForLeafNode (idBrushBSPNode *node, int *areaNum)
 
int StoreTree_r (idBrushBSPNode *node)
 
void GetSizeEstimate_r (idBrushBSPNode *parent, idBrushBSPNode *node, struct sizeEstimate_s &size)
 
void SetSizeEstimate (const idBrushBSP &bsp, idAASFileLocal *file)
 
bool StoreFile (const idBrushBSP &bsp)
 

Private Attributes

const idAASSettingsaasSettings
 
idAASFileLocalfile
 
aasProcNode_tprocNodes
 
int numProcNodes
 
int numGravitationalSubdivisions
 
int numMergedLeafNodes
 
int numLedgeSubdivisions
 
idList< idLedgeledgeList
 
idBrushMapledgeMap
 

Detailed Description

Definition at line 75 of file AASBuild_local.h.

Constructor & Destructor Documentation

idAASBuild::idAASBuild ( void  )

Definition at line 47 of file AASBuild.cpp.

idAASBuild::~idAASBuild ( void  )

Definition at line 62 of file AASBuild.cpp.

Member Function Documentation

idBrushList idAASBuild::AddBrushesForMapBrush ( const idMapBrush mapBrush,
const idVec3 origin,
const idMat3 axis,
int  entityNum,
int  primitiveNum,
idBrushList  brushList 
)
private

Definition at line 326 of file AASBuild.cpp.

idBrushList idAASBuild::AddBrushesForMapEntity ( const idMapEntity mapEnt,
int  entityNum,
idBrushList  brushList 
)
private

Definition at line 503 of file AASBuild.cpp.

idBrushList idAASBuild::AddBrushesForMapFile ( const idMapFile mapFile,
idBrushList  brushList 
)
private

Definition at line 546 of file AASBuild.cpp.

idBrushList idAASBuild::AddBrushesForMapPatch ( const idMapPatch mapPatch,
const idVec3 origin,
const idMat3 axis,
int  entityNum,
int  primitiveNum,
idBrushList  brushList 
)
private

Definition at line 374 of file AASBuild.cpp.

void idAASBuild::AddLedge ( const idVec3 v1,
const idVec3 v2,
idBrushBSPNode node 
)
private

Definition at line 406 of file AASBuild_ledge.cpp.

bool idAASBuild::AllGapsLeadToOtherNode ( idBrushBSPNode nodeWithGaps,
idBrushBSPNode otherNode 
)
private

Definition at line 39 of file AASBuild_merge.cpp.

bool idAASBuild::Build ( const idStr fileName,
const idAASSettings settings 
)

Definition at line 639 of file AASBuild.cpp.

bool idAASBuild::BuildReachability ( const idStr fileName,
const idAASSettings settings 
)

Definition at line 794 of file AASBuild.cpp.

void idAASBuild::ChangeMultipleBoundingBoxContents_r ( idBrushBSPNode node,
int  mask 
)
private

Definition at line 624 of file AASBuild.cpp.

bool idAASBuild::CheckForEntities ( const idMapFile mapFile,
idStrList entityClassNames 
) const
private

Definition at line 571 of file AASBuild.cpp.

bool idAASBuild::ChoppedAwayByProcBSP ( int  nodeNum,
idFixedWinding w,
const idVec3 normal,
const idVec3 origin,
const float  radius 
)
private

Definition at line 201 of file AASBuild.cpp.

void idAASBuild::ClearHash ( const idBounds bounds)
private

Definition at line 75 of file AASBuild_file.cpp.

void idAASBuild::ClipBrushSidesWithProcBSP ( idBrushList brushList)
private

Definition at line 259 of file AASBuild.cpp.

int idAASBuild::ContentsForAAS ( int  contents)
private

Definition at line 302 of file AASBuild.cpp.

void idAASBuild::DeleteProcBSP ( void  )
private

Definition at line 188 of file AASBuild.cpp.

void idAASBuild::FindLeafNodeLedges ( idBrushBSPNode root,
idBrushBSPNode node 
)
private

Definition at line 454 of file AASBuild_ledge.cpp.

void idAASBuild::FindLedges_r ( idBrushBSPNode root,
idBrushBSPNode node 
)
private

Definition at line 520 of file AASBuild_ledge.cpp.

bool idAASBuild::GetAreaForLeafNode ( idBrushBSPNode node,
int areaNum 
)
private

Definition at line 289 of file AASBuild_file.cpp.

bool idAASBuild::GetEdge ( const idVec3 v1,
const idVec3 v2,
int edgeNum,
int  v1num 
)
private

Definition at line 156 of file AASBuild_file.cpp.

bool idAASBuild::GetFaceForPortal ( idBrushBSPPortal portal,
int  side,
int faceNum 
)
private

Definition at line 216 of file AASBuild_file.cpp.

void idAASBuild::GetSizeEstimate_r ( idBrushBSPNode parent,
idBrushBSPNode node,
struct sizeEstimate_s size 
)
private

Definition at line 394 of file AASBuild_file.cpp.

bool idAASBuild::GetVertex ( const idVec3 v,
int vertexNum 
)
private

Definition at line 117 of file AASBuild_file.cpp.

void idAASBuild::GravitationalSubdivision ( idBrushBSP bsp)
private

Definition at line 350 of file AASBuild_gravity.cpp.

void idAASBuild::GravSubdiv_r ( idBrushBSPNode node)
private

Definition at line 326 of file AASBuild_gravity.cpp.

void idAASBuild::GravSubdivLeafNode ( idBrushBSPNode node)
private

Definition at line 113 of file AASBuild_gravity.cpp.

ID_INLINE int idAASBuild::HashVec ( const idVec3 vec)
private

Definition at line 104 of file AASBuild_file.cpp.

bool idAASBuild::IsLedgeSide_r ( idBrushBSPNode node,
idFixedWinding w,
const idPlane plane,
const idVec3 normal,
const idVec3 origin,
const float  radius 
)
private

Definition at line 345 of file AASBuild_ledge.cpp.

void idAASBuild::LedgeSubdiv ( idBrushBSPNode root)
private

Definition at line 306 of file AASBuild_ledge.cpp.

void idAASBuild::LedgeSubdivFlood_r ( idBrushBSPNode node,
const idLedge ledge 
)
private

Definition at line 210 of file AASBuild_ledge.cpp.

void idAASBuild::LedgeSubdivision ( idBrushBSP bsp)
private

Definition at line 560 of file AASBuild_ledge.cpp.

void idAASBuild::LedgeSubdivLeafNodes_r ( idBrushBSPNode node,
const idLedge ledge 
)
private

Definition at line 289 of file AASBuild_ledge.cpp.

bool idAASBuild::LoadProcBSP ( const char *  name,
ID_TIME_T  minFileTime 
)
private

Definition at line 122 of file AASBuild.cpp.

void idAASBuild::MergeLeafNodes ( idBrushBSP bsp)
private

Definition at line 153 of file AASBuild_merge.cpp.

void idAASBuild::MergeLeafNodes_r ( idBrushBSP bsp,
idBrushBSPNode node 
)
private

Definition at line 122 of file AASBuild_merge.cpp.

bool idAASBuild::MergeWithAdjacentLeafNodes ( idBrushBSP bsp,
idBrushBSPNode node 
)
private

Definition at line 62 of file AASBuild_merge.cpp.

void idAASBuild::ParseProcNodes ( idLexer src)
private

Definition at line 93 of file AASBuild.cpp.

bool idAASBuild::PortalIsGap ( idBrushBSPPortal portal,
int  side 
)
private

Definition at line 85 of file AASBuild_gravity.cpp.

void idAASBuild::SetPortalFlags_r ( idBrushBSPNode node)
private

Definition at line 40 of file AASBuild_gravity.cpp.

void idAASBuild::SetSizeEstimate ( const idBrushBSP bsp,
idAASFileLocal file 
)
private

Definition at line 430 of file AASBuild_file.cpp.

void idAASBuild::SetupHash ( void  )
private

Definition at line 55 of file AASBuild_file.cpp.

void idAASBuild::Shutdown ( void  )

Definition at line 71 of file AASBuild.cpp.

void idAASBuild::ShutdownHash ( void  )
private

Definition at line 65 of file AASBuild_file.cpp.

bool idAASBuild::StoreFile ( const idBrushBSP bsp)
private

Definition at line 455 of file AASBuild_file.cpp.

int idAASBuild::StoreTree_r ( idBrushBSPNode node)
private

Definition at line 344 of file AASBuild_file.cpp.

void idAASBuild::WriteLedgeMap ( const idStr fileName,
const idStr ext 
)
private

Definition at line 547 of file AASBuild_ledge.cpp.

Member Data Documentation

const idAASSettings* idAASBuild::aasSettings
private

Definition at line 85 of file AASBuild_local.h.

idAASFileLocal* idAASBuild::file
private

Definition at line 86 of file AASBuild_local.h.

idList<idLedge> idAASBuild::ledgeList
private

Definition at line 92 of file AASBuild_local.h.

idBrushMap* idAASBuild::ledgeMap
private

Definition at line 93 of file AASBuild_local.h.

int idAASBuild::numGravitationalSubdivisions
private

Definition at line 89 of file AASBuild_local.h.

int idAASBuild::numLedgeSubdivisions
private

Definition at line 91 of file AASBuild_local.h.

int idAASBuild::numMergedLeafNodes
private

Definition at line 90 of file AASBuild_local.h.

int idAASBuild::numProcNodes
private

Definition at line 88 of file AASBuild_local.h.

aasProcNode_t* idAASBuild::procNodes
private

Definition at line 87 of file AASBuild_local.h.


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