Stg::BlockGroup Class Reference

#include <stage.hh>

List of all members.

Public Member Functions

void AppendBlock (Block *block)
void AppendTouchingModels (ModelPtrSet &touchers)
 BlockGroup ()
void CalcSize ()
void CallDisplayList (Model *mod)
void Clear ()
void DrawFootPrint (const Geom &geom)
void DrawSolid (const Geom &geom)
uint32_t GetCount ()
const stg_point3_tGetOffset ()
const SizeGetSize ()
void InvalidateModelPointCache ()
void LoadBitmap (Model *mod, const std::string &bitmapfile, Worldfile *wf)
void LoadBlock (Model *mod, Worldfile *wf, int entity)
void Map ()
void Rasterize (uint8_t *data, unsigned int width, unsigned int height, stg_meters_t cellwidth, stg_meters_t cellheight)
void SwitchToTestedCells ()
ModelTestCollision ()
void UnMap ()
 ~BlockGroup ()

Private Member Functions

void BuildDisplayList (Model *mod)

Private Attributes

BlockPtrSet blocks
int displaylist
stg_meters_t maxx
stg_meters_t maxy
stg_meters_t minx
stg_meters_t miny
stg_point3_t offset
Size size

Friends

class Block
class Model

Detailed Description

Definition at line 1163 of file stage.hh.


Constructor & Destructor Documentation

Stg::BlockGroup::BlockGroup (  ) 
Stg::BlockGroup::~BlockGroup (  ) 

Member Function Documentation

void Stg::BlockGroup::AppendBlock ( Block block  ) 
void Stg::BlockGroup::AppendTouchingModels ( ModelPtrSet touchers  ) 

deletes all blocks from the group

void Stg::BlockGroup::BuildDisplayList ( Model mod  )  [private]
void Stg::BlockGroup::CalcSize (  ) 

Establish the min and max of all the blocks, so we can scale this group later.

void Stg::BlockGroup::CallDisplayList ( Model mod  ) 
void Stg::BlockGroup::Clear (  ) 
void Stg::BlockGroup::DrawFootPrint ( const Geom geom  ) 

Draw the projection of the block onto the z=0 plane.

void Stg::BlockGroup::DrawSolid ( const Geom geom  ) 

Draw the block in OpenGL as a solid single color.

uint32_t Stg::BlockGroup::GetCount (  )  [inline]

Definition at line 1182 of file stage.hh.

const stg_point3_t& Stg::BlockGroup::GetOffset (  )  [inline]

Definition at line 1184 of file stage.hh.

const Size& Stg::BlockGroup::GetSize (  )  [inline]

Definition at line 1183 of file stage.hh.

void Stg::BlockGroup::InvalidateModelPointCache (  )  [inline]

Definition at line 1218 of file stage.hh.

void Stg::BlockGroup::LoadBitmap ( Model mod,
const std::string &  bitmapfile,
Worldfile *  wf 
)
void Stg::BlockGroup::LoadBlock ( Model mod,
Worldfile *  wf,
int  entity 
)
void Stg::BlockGroup::Map (  ) 
void Stg::BlockGroup::Rasterize ( uint8_t *  data,
unsigned int  width,
unsigned int  height,
stg_meters_t  cellwidth,
stg_meters_t  cellheight 
)
void Stg::BlockGroup::SwitchToTestedCells (  ) 
Model* Stg::BlockGroup::TestCollision (  ) 

Returns a pointer to the first model detected to be colliding with a block in this group, or NULL, if none are detected.

void Stg::BlockGroup::UnMap (  ) 

Friends And Related Function Documentation

friend class Block [friend]

Definition at line 1166 of file stage.hh.

friend class Model [friend]

Definition at line 1165 of file stage.hh.


Member Data Documentation

Definition at line 1173 of file stage.hh.

Definition at line 1169 of file stage.hh.

Definition at line 1176 of file stage.hh.

Definition at line 1176 of file stage.hh.

Definition at line 1176 of file stage.hh.

Definition at line 1176 of file stage.hh.

Definition at line 1175 of file stage.hh.

Definition at line 1174 of file stage.hh.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines


stage
Author(s): Richard Vaughan, with contributions from many others. See web page for a full credits list.
autogenerated on Fri Jan 11 10:03:39 2013