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 | Protected Attributes | List of all members
idMapPatch Class Reference

#include <MapFile.h>

Inheritance diagram for idMapPatch:
idMapPrimitive idSurface_Patch idSurface

Public Member Functions

 idMapPatch (void)
 
 idMapPatch (int maxPatchWidth, int maxPatchHeight)
 
 ~idMapPatch (void)
 
bool Write (idFile *fp, int primitiveNum, const idVec3 &origin) const
 
const char * GetMaterial (void) const
 
void SetMaterial (const char *p)
 
int GetHorzSubdivisions (void) const
 
int GetVertSubdivisions (void) const
 
bool GetExplicitlySubdivided (void) const
 
void SetHorzSubdivisions (int n)
 
void SetVertSubdivisions (int n)
 
void SetExplicitlySubdivided (bool b)
 
unsigned int GetGeometryCRC (void) const
 
- Public Member Functions inherited from idMapPrimitive
 idMapPrimitive (void)
 
virtual ~idMapPrimitive (void)
 
int GetType (void) const
 
- Public Member Functions inherited from idSurface_Patch
 idSurface_Patch (void)
 
 idSurface_Patch (int maxPatchWidth, int maxPatchHeight)
 
 idSurface_Patch (const idSurface_Patch &patch)
 
 ~idSurface_Patch (void)
 
void SetSize (int patchWidth, int patchHeight)
 
int GetWidth (void) const
 
int GetHeight (void) const
 
void Subdivide (float maxHorizontalError, float maxVerticalError, float maxLength, bool genNormals=false)
 
void SubdivideExplicit (int horzSubdivisions, int vertSubdivisions, bool genNormals, bool removeLinear=false)
 
- Public Member Functions inherited from idSurface
 idSurface (void)
 
 idSurface (const idSurface &surf)
 
 idSurface (const idDrawVert *verts, const int numVerts, const int *indexes, const int numIndexes)
 
 ~idSurface (void)
 
const idDrawVertoperator[] (const int index) const
 
idDrawVertoperator[] (const int index)
 
idSurfaceoperator+= (const idSurface &surf)
 
int GetNumIndexes (void) const
 
const intGetIndexes (void) const
 
int GetNumVertices (void) const
 
const idDrawVertGetVertices (void) const
 
const intGetEdgeIndexes (void) const
 
const surfaceEdge_tGetEdges (void) const
 
void Clear (void)
 
void SwapTriangles (idSurface &surf)
 
void TranslateSelf (const idVec3 &translation)
 
void RotateSelf (const idMat3 &rotation)
 
int Split (const idPlane &plane, const float epsilon, idSurface **front, idSurface **back, int *frontOnPlaneEdges=NULL, int *backOnPlaneEdges=NULL) const
 
bool ClipInPlace (const idPlane &plane, const float epsilon=ON_EPSILON, const bool keepOn=false)
 
bool IsConnected (void) const
 
bool IsClosed (void) const
 
bool IsPolytope (const float epsilon=0.1f) const
 
float PlaneDistance (const idPlane &plane) const
 
int PlaneSide (const idPlane &plane, const float epsilon=ON_EPSILON) const
 
bool LineIntersection (const idVec3 &start, const idVec3 &end, bool backFaceCull=false) const
 
bool RayIntersection (const idVec3 &start, const idVec3 &dir, float &scale, bool backFaceCull=false) const
 

Static Public Member Functions

static idMapPatchParse (idLexer &src, const idVec3 &origin, bool patchDef3=true, float version=CURRENT_MAP_VERSION)
 

Protected Attributes

idStr material
 
int horzSubdivisions
 
int vertSubdivisions
 
bool explicitSubdivisions
 
- Protected Attributes inherited from idMapPrimitive
int type
 
- Protected Attributes inherited from idSurface_Patch
int width
 
int height
 
int maxWidth
 
int maxHeight
 
bool expanded
 
- Protected Attributes inherited from idSurface
idList< idDrawVertverts
 
idList< intindexes
 
idList< surfaceEdge_tedges
 
idList< intedgeIndexes
 

Additional Inherited Members

- Public Types inherited from idMapPrimitive
enum  { TYPE_INVALID = -1, TYPE_BRUSH, TYPE_PATCH }
 
- Public Attributes inherited from idMapPrimitive
idDict epairs
 
- Protected Member Functions inherited from idSurface
void GenerateEdgeIndexes (void)
 
int FindEdge (int v1, int v2) const
 

Detailed Description

Definition at line 117 of file MapFile.h.

Constructor & Destructor Documentation

ID_INLINE idMapPatch::idMapPatch ( void  )

Definition at line 141 of file MapFile.h.

ID_INLINE idMapPatch::idMapPatch ( int  maxPatchWidth,
int  maxPatchHeight 
)

Definition at line 150 of file MapFile.h.

idMapPatch::~idMapPatch ( void  )
inline

Definition at line 121 of file MapFile.h.

Member Function Documentation

bool idMapPatch::GetExplicitlySubdivided ( void  ) const
inline

Definition at line 128 of file MapFile.h.

unsigned int idMapPatch::GetGeometryCRC ( void  ) const

Definition at line 253 of file MapFile.cpp.

int idMapPatch::GetHorzSubdivisions ( void  ) const
inline

Definition at line 126 of file MapFile.h.

const char* idMapPatch::GetMaterial ( void  ) const
inline

Definition at line 124 of file MapFile.h.

int idMapPatch::GetVertSubdivisions ( void  ) const
inline

Definition at line 127 of file MapFile.h.

idMapPatch * idMapPatch::Parse ( idLexer src,
const idVec3 origin,
bool  patchDef3 = true,
float  version = CURRENT_MAP_VERSION 
)
static

Definition at line 111 of file MapFile.cpp.

void idMapPatch::SetExplicitlySubdivided ( bool  b)
inline

Definition at line 131 of file MapFile.h.

void idMapPatch::SetHorzSubdivisions ( int  n)
inline

Definition at line 129 of file MapFile.h.

void idMapPatch::SetMaterial ( const char *  p)
inline

Definition at line 125 of file MapFile.h.

void idMapPatch::SetVertSubdivisions ( int  n)
inline

Definition at line 130 of file MapFile.h.

bool idMapPatch::Write ( idFile fp,
int  primitiveNum,
const idVec3 origin 
) const

Definition at line 221 of file MapFile.cpp.

Member Data Documentation

bool idMapPatch::explicitSubdivisions
protected

Definition at line 138 of file MapFile.h.

int idMapPatch::horzSubdivisions
protected

Definition at line 136 of file MapFile.h.

idStr idMapPatch::material
protected

Definition at line 135 of file MapFile.h.

int idMapPatch::vertSubdivisions
protected

Definition at line 137 of file MapFile.h.


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