#include <stage.hh>
Definition at line 1205 of file stage.hh.
◆ BlockGroup()
BlockGroup::BlockGroup |
( |
Model & |
mod | ) |
|
|
explicit |
◆ ~BlockGroup()
BlockGroup::~BlockGroup |
( |
| ) |
|
◆ AppendBlock()
void BlockGroup::AppendBlock |
( |
const Block & |
block | ) |
|
|
private |
◆ AppendTouchingModels()
void BlockGroup::AppendTouchingModels |
( |
std::set< Model *> & |
touchers | ) |
|
|
private |
deletes all blocks from the group
Definition at line 35 of file blockgroup.cc.
◆ BoundingBox()
Return the extremal points of all member blocks in all three axes.
find the 3d bounding box of all the blocks in the group
Definition at line 53 of file blockgroup.cc.
◆ BuildDisplayList()
void BlockGroup::BuildDisplayList |
( |
| ) |
|
|
private |
Re-create the display list for drawing this blockgroup. This is required whenever a member block or the owning model changes its appearance.
Definition at line 176 of file blockgroup.cc.
◆ CalcSize()
void BlockGroup::CalcSize |
( |
| ) |
|
|
private |
◆ CallDisplayList()
void BlockGroup::CallDisplayList |
( |
| ) |
|
|
private |
Draw the blockgroup from the cached displaylist.
Definition at line 278 of file blockgroup.cc.
◆ Clear()
void BlockGroup::Clear |
( |
| ) |
|
|
private |
◆ DrawFootPrint()
void BlockGroup::DrawFootPrint |
( |
const Geom & |
geom | ) |
|
Draw the projection of the block group onto the z=0 plane.
Definition at line 146 of file blockgroup.cc.
◆ DrawSolid()
void BlockGroup::DrawSolid |
( |
const Geom & |
geom | ) |
|
|
private |
Draw the block in OpenGL as a solid single color.
Definition at line 134 of file blockgroup.cc.
◆ GetBlock()
const Block& Stg::BlockGroup::GetBlock |
( |
unsigned int |
index | ) |
const |
|
inline |
◆ GetBlockMutable()
Block& Stg::BlockGroup::GetBlockMutable |
( |
unsigned int |
index | ) |
|
|
inline |
◆ GetCount()
uint32_t Stg::BlockGroup::GetCount |
( |
| ) |
const |
|
inline |
◆ LoadBitmap()
void BlockGroup::LoadBitmap |
( |
const std::string & |
bitmapfile, |
|
|
Worldfile * |
wf |
|
) |
| |
|
private |
Interpret the bitmap file as a set of rectangles and add them as blocks to this group.
Definition at line 294 of file blockgroup.cc.
◆ LoadBlock()
void BlockGroup::LoadBlock |
( |
Worldfile * |
wf, |
|
|
int |
entity |
|
) |
| |
|
private |
Add a new block decribed by a worldfile entry.
Definition at line 288 of file blockgroup.cc.
◆ Map()
void BlockGroup::Map |
( |
unsigned int |
layer | ) |
|
|
private |
Renders all blocks into the bitmap at the indicated layer.
Definition at line 114 of file blockgroup.cc.
◆ Rasterize()
void BlockGroup::Rasterize |
( |
uint8_t * |
data, |
|
|
unsigned int |
width, |
|
|
unsigned int |
height, |
|
|
meters_t |
cellwidth, |
|
|
meters_t |
cellheight |
|
) |
| |
|
private |
Render the blockgroup as a bitmap image.
Definition at line 332 of file blockgroup.cc.
◆ TestCollision()
Model * BlockGroup::TestCollision |
( |
| ) |
|
|
private |
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 41 of file blockgroup.cc.
◆ UnMap()
void BlockGroup::UnMap |
( |
unsigned int |
layer | ) |
|
|
private |
Removes all blocks from the bitmap at the indicated layer.
Definition at line 123 of file blockgroup.cc.
◆ Block
◆ Model
◆ SuperRegion
◆ World
◆ blocks
std::vector<Block> Stg::BlockGroup::blocks |
|
private |
Contains the blocks in this group.
Definition at line 1212 of file stage.hh.
◆ displaylist
int Stg::BlockGroup::displaylist |
|
private |
OpenGL displaylist that renders this blockgroup.
Definition at line 1213 of file stage.hh.
◆ mod
Model& Stg::BlockGroup::mod |
The documentation for this class was generated from the following files: