#include <stage.hh>
List of all members.
Public Member Functions |
void | AppendTouchingModels (std::set< Model * > &touchers) |
| Block (Model *mod, const std::vector< point_t > &pts, meters_t zmin, meters_t zmax, Color color, bool inherit_color, bool wheel) |
| Block (Model *mod, Worldfile *wf, int entity) |
double | CenterX () |
double | CenterY () |
void | DrawFootPrint () |
void | DrawSolid (bool topview) |
const Color & | GetColor () |
Model * | GetModel () |
void | Load (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) |
void | SetCenter (double x, double y) |
void | SetCenterX (double y) |
void | SetCenterY (double y) |
void | SetZ (double min, double max) |
Model * | TestCollision () |
void | Translate (double x, double y) |
void | UnMap (unsigned int layer) |
| ~Block () |
Private Member Functions |
point_t | BlockPointToModelMeters (const point_t &bpt) |
void | DrawSides () |
void | DrawTop () |
void | InvalidateModelPointCache () |
Private Attributes |
Color | color |
Bounds | global_z |
bool | inherit_color |
std::vector< std::list< Block * >
::iterator > | list_entries |
Bounds | local_z |
| z extent in local coords
|
bool | mapped |
Model * | mod |
| model to which this block belongs
|
std::vector< point_t > | mpts |
| cache of this->pts in model coordindates
|
size_t | pt_count |
| the number of points
|
std::vector< point_t > | pts |
| points defining a polygonx
|
std::vector< Cell * > | rendered_cells [2] |
Size | size |
bool | wheel |
Friends |
class | BlockGroup |
class | Canvas |
class | Cell |
class | Model |
class | SuperRegion |
class | World |
Detailed Description
Definition at line 1197 of file stage.hh.
Constructor & Destructor Documentation
Block Constructor. A model's body is a list of these blocks. The point data is copied, so pts can safely be freed after constructing the block.
Create a new block. A model's body is a list of these blocks. The point data is copied, so pts can safely be freed after calling this.
Definition at line 13 of file block.cc.
A from-file constructor
Definition at line 34 of file block.cc.
Member Function Documentation
find the position of a block's point in model coordinates (m)
Definition at line 240 of file block.cc.
Return the center of the block on the X axis
Definition at line 89 of file block.cc.
Return the center of the block on the Y axis
Definition at line 74 of file block.cc.
draw the projection of the block onto the z=0 plane
Definition at line 360 of file block.cc.
draw the block in OpenGL as a solid single color
Definition at line 368 of file block.cc.
invalidate the cache of points in model coordinates
Definition at line 249 of file block.cc.
render the block into the world's raytrace data structure
Definition at line 197 of file block.cc.
Set the center of the block
Definition at line 104 of file block.cc.
Set the center of the block on the X axis
Definition at line 118 of file block.cc.
Set the center of the block on the Y axis
Definition at line 111 of file block.cc.
Set the extent in Z of the block
Definition at line 125 of file block.cc.
Returns the first model that shares a bitmap cell with this model
Definition at line 153 of file block.cc.
Translate all points in the block by the indicated amounts
Definition at line 63 of file block.cc.
remove the block from the world's raytracing data structure
Definition at line 231 of file block.cc.
Friends And Related Function Documentation
friend class Cell [friend] |
friend class Model [friend] |
friend class World [friend] |
Member Data Documentation
z extent in global coordinates
Definition at line 1283 of file stage.hh.
record the list entries for the cells where this block is rendered
Definition at line 1287 of file stage.hh.
z extent in local coords
Definition at line 1274 of file stage.hh.
model to which this block belongs
Definition at line 1269 of file stage.hh.
cache of this->pts in model coordindates
Definition at line 1270 of file stage.hh.
the number of points
Definition at line 1271 of file stage.hh.
points defining a polygonx
Definition at line 1272 of file stage.hh.
record the cells into which this block has been rendered so we can remove them very quickly.
Definition at line 1291 of file stage.hh.
The documentation for this class was generated from the following files: