Public Member Functions | Private Member Functions | Private Attributes | Friends
Stg::BlockGroup Class Reference

#include <stage.hh>

List of all members.

Public Member Functions

void AppendBlock (Block *block)
void AppendTouchingModels (std::set< Model * > &touchers)
 BlockGroup ()
void CalcSize ()
void CallDisplayList (Model *mod)
void Clear ()
void DrawFootPrint (const Geom &geom)
void DrawSolid (const Geom &geom)
uint32_t GetCount ()
const 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 (unsigned int layer)
void Rasterize (uint8_t *data, unsigned int width, unsigned int height, meters_t cellwidth, meters_t cellheight)
ModelTestCollision ()
void UnMap (unsigned int layer)
 ~BlockGroup ()

Private Member Functions

void BuildDisplayList (Model *mod)

Private Attributes

std::vector< Block * > blocks
int displaylist
meters_t maxx
meters_t maxy
meters_t minx
meters_t miny
point3_t offset
Size size

Friends

class Block
class Model

Detailed Description

Definition at line 1303 of file stage.hh.


Constructor & Destructor Documentation

Definition at line 13 of file blockgroup.cc.

Definition at line 22 of file blockgroup.cc.


Member Function Documentation

void BlockGroup::AppendBlock ( Block block)

Definition at line 27 of file blockgroup.cc.

void BlockGroup::AppendTouchingModels ( std::set< Model * > &  touchers)

deletes all blocks from the group

Definition at line 40 of file blockgroup.cc.

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

Definition at line 146 of file blockgroup.cc.

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

Definition at line 60 of file blockgroup.cc.

Definition at line 239 of file blockgroup.cc.

Definition at line 32 of file blockgroup.cc.

void BlockGroup::DrawFootPrint ( const Geom geom)

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

Definition at line 130 of file blockgroup.cc.

void BlockGroup::DrawSolid ( const Geom geom)

Draw the block in OpenGL as a solid single color.

Definition at line 112 of file blockgroup.cc.

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

Definition at line 1322 of file stage.hh.

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

Definition at line 1324 of file stage.hh.

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

Definition at line 1323 of file stage.hh.

Definition at line 1356 of file stage.hh.

void BlockGroup::LoadBitmap ( Model mod,
const std::string &  bitmapfile,
Worldfile wf 
)

Definition at line 256 of file blockgroup.cc.

void BlockGroup::LoadBlock ( Model mod,
Worldfile wf,
int  entity 
)

Definition at line 250 of file blockgroup.cc.

void BlockGroup::Map ( unsigned int  layer)

Definition at line 97 of file blockgroup.cc.

void BlockGroup::Rasterize ( uint8_t *  data,
unsigned int  width,
unsigned int  height,
meters_t  cellwidth,
meters_t  cellheight 
)

Definition at line 318 of file blockgroup.cc.

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

Definition at line 46 of file blockgroup.cc.

void BlockGroup::UnMap ( unsigned int  layer)

Definition at line 106 of file blockgroup.cc.


Friends And Related Function Documentation

friend class Block [friend]

Definition at line 1306 of file stage.hh.

friend class Model [friend]

Definition at line 1305 of file stage.hh.


Member Data Documentation

std::vector<Block*> Stg::BlockGroup::blocks [private]

Definition at line 1313 of file stage.hh.

Definition at line 1309 of file stage.hh.

Definition at line 1316 of file stage.hh.

Definition at line 1316 of file stage.hh.

Definition at line 1316 of file stage.hh.

Definition at line 1316 of file stage.hh.

Definition at line 1315 of file stage.hh.

Definition at line 1314 of file stage.hh.


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


stage
Author(s): Richard Vaughan , Brian Gerkey , Reed Hedges , Andrew Howard , Toby Collett , Pooya Karimian , Jeremy Asher , Alex Couture-Beil , Geoff Biggs , Rich Mattes , Abbas Sadat
autogenerated on Thu Aug 27 2015 15:20:57