Vegastrike 0.5.1 rc1  1.0
Original sources for Vegastrike Evolved
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
TriangleList Class Reference

#include <IceTrilist.h>

Inheritance diagram for TriangleList:
Container

Public Member Functions

 TriangleList ()
 
 ~TriangleList ()
 
inline_ udword GetNbTriangles () const
 
inline_ IndexedTriangleGetTriangles () const
 
void AddTriangle (const IndexedTriangle &tri)
 
void AddTriangle (udword vref0, udword vref1, udword vref2)
 
- Public Member Functions inherited from Container
 Container ()
 
 Container (const Container &object)
 
 Container (udword size, float growth_factor)
 
 ~Container ()
 
inline_ ContainerAdd (udword entry)
 
inline_ ContainerAdd (const udword *entries, udword nb)
 
inline_ ContainerAdd (float entry)
 
inline_ ContainerAdd (const float *entries, udword nb)
 
inline_ ContainerAddUnique (udword entry)
 Add unique [slow]. More...
 
ContainerEmpty ()
 
inline_ void Reset ()
 
inline_ void ForceSize (udword size)
 
bool SetSize (udword nb)
 
bool Refit ()
 
bool Contains (udword entry, udword *location=null) const
 
bool Delete (udword entry)
 
bool DeleteKeepingOrder (udword entry)
 
inline_ void DeleteLastEntry ()
 Deletes the very last entry. More...
 
inline_ void DeleteIndex (udword index)
 Deletes the entry whose index is given. More...
 
ContainerFindNext (udword &entry, FindMode find_mode=FIND_CLAMP)
 
ContainerFindPrev (udword &entry, FindMode find_mode=FIND_CLAMP)
 
inline_ udword GetNbEntries () const
 Returns the current number of entries. More...
 
inline_ udword GetEntry (udword i) const
 Returns ith entry. More...
 
inline_ udwordGetEntries () const
 Returns the list of entries. More...
 
inline_ udword GetFirst () const
 
inline_ udword GetLast () const
 
inline_ float GetGrowthFactor () const
 Returns the growth factor. More...
 
inline_ void SetGrowthFactor (float growth)
 Sets the growth factor. More...
 
inline_ bool IsFull () const
 Checks the container is full. More...
 
inline_ BOOL IsNotEmpty () const
 Checks the container is empty. More...
 
inline_ udword operator[] (udword i) const
 Read-access as an array. More...
 
inline_ udwordoperator[] (udword i)
 Write-access as an array. More...
 
udword GetUsedRam () const
 
void operator= (const Container &object)
 Operator for "Container A = Container B". More...
 
inline_ udword GetNbContainers () const
 
inline_ udword GetTotalBytes () const
 

Detailed Description

Definition at line 40 of file IceTrilist.h.

Constructor & Destructor Documentation

TriangleList::TriangleList ( )
inline

Definition at line 44 of file IceTrilist.h.

44 {}
TriangleList::~TriangleList ( )
inline

Definition at line 45 of file IceTrilist.h.

45 {}

Member Function Documentation

void TriangleList::AddTriangle ( const IndexedTriangle tri)
inline

Definition at line 50 of file IceTrilist.h.

References Container::Add(), and IndexedTriangle::mVRef.

51  {
52  Add(tri.mVRef[0]).Add(tri.mVRef[1]).Add(tri.mVRef[2]);
53  }
void TriangleList::AddTriangle ( udword  vref0,
udword  vref1,
udword  vref2 
)
inline

Definition at line 55 of file IceTrilist.h.

References Container::Add().

56  {
57  Add(vref0).Add(vref1).Add(vref2);
58  }
inline_ udword TriangleList::GetNbTriangles ( ) const
inline

Definition at line 47 of file IceTrilist.h.

References Container::GetNbEntries().

47 { return GetNbEntries()/3; }
inline_ IndexedTriangle* TriangleList::GetTriangles ( ) const
inline

Definition at line 48 of file IceTrilist.h.

References Container::GetEntries().

48 { return (IndexedTriangle*)GetEntries();}

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