Pyrogenesis  trunk
Classes | Namespaces | Typedefs | Functions
Rasterize.h File Reference

Helper functions related to rasterizing geometric shapes to grids. More...

#include "simulation2/components/ICmpObstructionManager.h"
Include dependency graph for Rasterize.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  SimRasterize::Span
 Represents the set of cells (i,j) where i0 <= i < i1. More...
 

Namespaces

 SimRasterize
 

Typedefs

typedef std::vector< Span > SimRasterize::Spans
 

Functions

void SimRasterize::RasterizeRectWithClearance (Spans &spans, const ICmpObstructionManager::ObstructionSquare &shape, entity_pos_t clearance, entity_pos_t cellSize)
 Converts an ObstructionSquare shape (a rotated rectangle), expanded by the given clearance, into a list of spans of cells that are strictly inside the shape. More...
 

Detailed Description

Helper functions related to rasterizing geometric shapes to grids.