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

#include <BrushBSP.h>

Public Member Functions

 idBrushBSPNode (void)
 
 ~idBrushBSPNode (void)
 
void SetContentsFromBrushes (void)
 
idBounds GetPortalBounds (void)
 
idBrushBSPNodeGetChild (int index) const
 
idBrushBSPNodeGetParent (void) const
 
void SetContents (int contents)
 
int GetContents (void) const
 
const idPlaneGetPlane (void) const
 
idBrushBSPPortalGetPortals (void) const
 
void SetAreaNum (int num)
 
int GetAreaNum (void) const
 
int GetFlags (void) const
 
void SetFlag (int flag)
 
void RemoveFlag (int flag)
 
bool TestLeafNode (void)
 
void RemoveFlagFlood (int flag)
 
void RemoveFlagRecurse (int flag)
 
void RemoveFlagRecurseFlood (int flag)
 
int PlaneSide (const idPlane &plane, float epsilon=ON_EPSILON) const
 
bool Split (const idPlane &splitPlane, int splitPlaneNum)
 

Private Attributes

idPlane plane
 
idBrushvolume
 
int contents
 
idBrushList brushList
 
idBrushBSPNodeparent
 
idBrushBSPNodechildren [2]
 
idBrushBSPPortalportals
 
int flags
 
int areaNum
 
int occupied
 

Friends

class idBrushBSP
 
class idBrushBSPPortal
 

Detailed Description

Definition at line 93 of file BrushBSP.h.

Constructor & Destructor Documentation

idBrushBSPNode::idBrushBSPNode ( void  )

Definition at line 216 of file BrushBSP.cpp.

idBrushBSPNode::~idBrushBSPNode ( void  )

Definition at line 232 of file BrushBSP.cpp.

Member Function Documentation

int idBrushBSPNode::GetAreaNum ( void  ) const
inline

Definition at line 110 of file BrushBSP.h.

idBrushBSPNode* idBrushBSPNode::GetChild ( int  index) const
inline

Definition at line 103 of file BrushBSP.h.

int idBrushBSPNode::GetContents ( void  ) const
inline

Definition at line 106 of file BrushBSP.h.

int idBrushBSPNode::GetFlags ( void  ) const
inline

Definition at line 111 of file BrushBSP.h.

idBrushBSPNode* idBrushBSPNode::GetParent ( void  ) const
inline

Definition at line 104 of file BrushBSP.h.

const idPlane& idBrushBSPNode::GetPlane ( void  ) const
inline

Definition at line 107 of file BrushBSP.h.

idBounds idBrushBSPNode::GetPortalBounds ( void  )

Definition at line 271 of file BrushBSP.cpp.

idBrushBSPPortal* idBrushBSPNode::GetPortals ( void  ) const
inline

Definition at line 108 of file BrushBSP.h.

int idBrushBSPNode::PlaneSide ( const idPlane plane,
float  epsilon = ON_EPSILON 
) const

Definition at line 399 of file BrushBSP.cpp.

void idBrushBSPNode::RemoveFlag ( int  flag)
inline

Definition at line 113 of file BrushBSP.h.

void idBrushBSPNode::RemoveFlagFlood ( int  flag)

Definition at line 437 of file BrushBSP.cpp.

void idBrushBSPNode::RemoveFlagRecurse ( int  flag)

Definition at line 459 of file BrushBSP.cpp.

void idBrushBSPNode::RemoveFlagRecurseFlood ( int  flag)

Definition at line 474 of file BrushBSP.cpp.

void idBrushBSPNode::SetAreaNum ( int  num)
inline

Definition at line 109 of file BrushBSP.h.

void idBrushBSPNode::SetContents ( int  contents)
inline

Definition at line 105 of file BrushBSP.h.

void idBrushBSPNode::SetContentsFromBrushes ( void  )

Definition at line 257 of file BrushBSP.cpp.

void idBrushBSPNode::SetFlag ( int  flag)
inline

Definition at line 112 of file BrushBSP.h.

bool idBrushBSPNode::Split ( const idPlane splitPlane,
int  splitPlaneNum 
)

Definition at line 330 of file BrushBSP.cpp.

bool idBrushBSPNode::TestLeafNode ( void  )

Definition at line 292 of file BrushBSP.cpp.

Friends And Related Function Documentation

friend class idBrushBSP
friend

Definition at line 95 of file BrushBSP.h.

friend class idBrushBSPPortal
friend

Definition at line 96 of file BrushBSP.h.

Member Data Documentation

int idBrushBSPNode::areaNum
private

Definition at line 136 of file BrushBSP.h.

idBrushList idBrushBSPNode::brushList
private

Definition at line 131 of file BrushBSP.h.

idBrushBSPNode* idBrushBSPNode::children[2]
private

Definition at line 133 of file BrushBSP.h.

int idBrushBSPNode::contents
private

Definition at line 130 of file BrushBSP.h.

int idBrushBSPNode::flags
private

Definition at line 135 of file BrushBSP.h.

int idBrushBSPNode::occupied
private

Definition at line 137 of file BrushBSP.h.

idBrushBSPNode* idBrushBSPNode::parent
private

Definition at line 132 of file BrushBSP.h.

idPlane idBrushBSPNode::plane
private

Definition at line 128 of file BrushBSP.h.

idBrushBSPPortal* idBrushBSPNode::portals
private

Definition at line 134 of file BrushBSP.h.

idBrush* idBrushBSPNode::volume
private

Definition at line 129 of file BrushBSP.h.


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