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
idBrush Class Reference

#include <Brush.h>

Public Member Functions

 idBrush (void)
 
 ~idBrush (void)
 
int GetFlags (void) const
 
void SetFlag (int flag)
 
void RemoveFlag (int flag)
 
void SetEntityNum (int num)
 
void SetPrimitiveNum (int num)
 
void SetContents (int contents)
 
int GetContents (void) const
 
const idBoundsGetBounds (void) const
 
float GetVolume (void) const
 
int GetNumSides (void) const
 
idBrushSideGetSide (int i) const
 
void SetPlaneSide (int s)
 
void SavePlaneSide (void)
 
int GetSavedPlaneSide (void) const
 
bool FromSides (idList< idBrushSide * > &sideList)
 
bool FromWinding (const idWinding &w, const idPlane &windingPlane)
 
bool FromBounds (const idBounds &bounds)
 
void Transform (const idVec3 &origin, const idMat3 &axis)
 
idBrushCopy (void) const
 
bool TryMerge (const idBrush *brush, const idPlaneSet &planeList)
 
bool Subtract (const idBrush *b, idBrushList &list) const
 
int Split (const idPlane &plane, int planeNum, idBrush **front, idBrush **back) const
 
void ExpandForAxialBox (const idBounds &bounds)
 
idBrushNext (void) const
 

Private Member Functions

bool CreateWindings (void)
 
void BoundBrush (const idBrush *original=NULL)
 
void AddBevelsForAxialBox (void)
 
bool RemoveSidesWithoutWinding (void)
 

Private Attributes

idBrushnext
 
int entityNum
 
int primitiveNum
 
int flags
 
bool windingsValid
 
int contents
 
int planeSide
 
int savedPlaneSide
 
idBounds bounds
 
idList< idBrushSide * > sides
 

Friends

class idBrushList
 

Detailed Description

Definition at line 98 of file Brush.h.

Constructor & Destructor Documentation

idBrush::idBrush ( void  )

Definition at line 172 of file Brush.cpp.

idBrush::~idBrush ( void  )

Definition at line 185 of file Brush.cpp.

Member Function Documentation

void idBrush::AddBevelsForAxialBox ( void  )
private

Definition at line 812 of file Brush.cpp.

void idBrush::BoundBrush ( const idBrush original = NULL)
private

Definition at line 265 of file Brush.cpp.

idBrush * idBrush::Copy ( void  ) const

Definition at line 993 of file Brush.cpp.

bool idBrush::CreateWindings ( void  )
private

Definition at line 217 of file Brush.cpp.

void idBrush::ExpandForAxialBox ( const idBounds bounds)

Definition at line 949 of file Brush.cpp.

bool idBrush::FromBounds ( const idBounds bounds)

Definition at line 383 of file Brush.cpp.

bool idBrush::FromSides ( idList< idBrushSide * > &  sideList)

Definition at line 313 of file Brush.cpp.

bool idBrush::FromWinding ( const idWinding w,
const idPlane windingPlane 
)

Definition at line 330 of file Brush.cpp.

const idBounds& idBrush::GetBounds ( void  ) const
inline

Definition at line 113 of file Brush.h.

int idBrush::GetContents ( void  ) const
inline

Definition at line 112 of file Brush.h.

int idBrush::GetFlags ( void  ) const
inline

Definition at line 106 of file Brush.h.

int idBrush::GetNumSides ( void  ) const
inline

Definition at line 115 of file Brush.h.

int idBrush::GetSavedPlaneSide ( void  ) const
inline

Definition at line 119 of file Brush.h.

idBrushSide* idBrush::GetSide ( int  i) const
inline

Definition at line 116 of file Brush.h.

float idBrush::GetVolume ( void  ) const

Definition at line 432 of file Brush.cpp.

idBrush* idBrush::Next ( void  ) const
inline

Definition at line 133 of file Brush.h.

void idBrush::RemoveFlag ( int  flag)
inline

Definition at line 108 of file Brush.h.

bool idBrush::RemoveSidesWithoutWinding ( void  )
private

Definition at line 196 of file Brush.cpp.

void idBrush::SavePlaneSide ( void  )
inline

Definition at line 118 of file Brush.h.

void idBrush::SetContents ( int  contents)
inline

Definition at line 111 of file Brush.h.

void idBrush::SetEntityNum ( int  num)
inline

Definition at line 109 of file Brush.h.

void idBrush::SetFlag ( int  flag)
inline

Definition at line 107 of file Brush.h.

void idBrush::SetPlaneSide ( int  s)
inline

Definition at line 117 of file Brush.h.

void idBrush::SetPrimitiveNum ( int  num)
inline

Definition at line 110 of file Brush.h.

int idBrush::Split ( const idPlane plane,
int  planeNum,
idBrush **  front,
idBrush **  back 
) const

Definition at line 618 of file Brush.cpp.

bool idBrush::Subtract ( const idBrush b,
idBrushList list 
) const

Definition at line 471 of file Brush.cpp.

void idBrush::Transform ( const idVec3 origin,
const idMat3 axis 
)

Definition at line 406 of file Brush.cpp.

bool idBrush::TryMerge ( const idBrush brush,
const idPlaneSet planeList 
)

Definition at line 505 of file Brush.cpp.

Friends And Related Function Documentation

friend class idBrushList
friend

Definition at line 100 of file Brush.h.

Member Data Documentation

idBounds idBrush::bounds
private

Definition at line 144 of file Brush.h.

int idBrush::contents
private

Definition at line 141 of file Brush.h.

int idBrush::entityNum
private

Definition at line 137 of file Brush.h.

int idBrush::flags
private

Definition at line 139 of file Brush.h.

idBrush* idBrush::next
mutableprivate

Definition at line 136 of file Brush.h.

int idBrush::planeSide
private

Definition at line 142 of file Brush.h.

int idBrush::primitiveNum
private

Definition at line 138 of file Brush.h.

int idBrush::savedPlaneSide
private

Definition at line 143 of file Brush.h.

idList<idBrushSide *> idBrush::sides
private

Definition at line 145 of file Brush.h.

bool idBrush::windingsValid
private

Definition at line 140 of file Brush.h.


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