Public Member Functions | Protected Member Functions | Protected Attributes

GridSectorizer Class Reference

#include <GridSectorizer.h>

Collaboration diagram for GridSectorizer:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 GridSectorizer ()
 ~GridSectorizer ()
void Init (const float _maxCellWidth, const float _maxCellHeight, const float minX, const float minY, const float maxX, const float maxY)
void AddEntry (void *entry, const float minX, const float minY, const float maxX, const float maxY)
void GetEntries (DataStructures::List< void * > &intersectionList, const float minX, const float minY, const float maxX, const float maxY)
void Clear (void)

Protected Member Functions

int WorldToCellX (const float input) const
int WorldToCellY (const float input) const
int WorldToCellXOffsetAndClamped (const float input) const
int WorldToCellYOffsetAndClamped (const float input) const
bool PositionCrossesCells (const float originX, const float originY, const float destinationX, const float destinationY) const

Protected Attributes

float cellOriginX
float cellOriginY
float cellWidth
float cellHeight
float invCellWidth
float invCellHeight
float gridWidth
float gridHeight
int gridCellWidthCount
int gridCellHeightCount
DataStructures::List< void * > * grid

Detailed Description

Definition at line 14 of file GridSectorizer.h.


Constructor & Destructor Documentation

GridSectorizer::GridSectorizer (  ) 

Definition at line 6 of file GridSectorizer.cpp.

GridSectorizer::~GridSectorizer (  ) 

Definition at line 10 of file GridSectorizer.cpp.

Here is the call graph for this function:


Member Function Documentation

void GridSectorizer::AddEntry ( void *  entry,
const float  minX,
const float  minY,
const float  maxX,
const float  maxY 
)

Definition at line 40 of file GridSectorizer.cpp.

Here is the call graph for this function:

void GridSectorizer::Clear ( void   ) 

Definition at line 185 of file GridSectorizer.cpp.

void GridSectorizer::GetEntries ( DataStructures::List< void * > &  intersectionList,
const float  minX,
const float  minY,
const float  maxX,
const float  maxY 
)

Definition at line 134 of file GridSectorizer.cpp.

Here is the call graph for this function:

void GridSectorizer::Init ( const float  _maxCellWidth,
const float  _maxCellHeight,
const float  minX,
const float  minY,
const float  maxX,
const float  maxY 
)

Definition at line 15 of file GridSectorizer.cpp.

Here is the call graph for this function:

bool GridSectorizer::PositionCrossesCells ( const float  originX,
const float  originY,
const float  destinationX,
const float  destinationY 
) const [protected]

Definition at line 159 of file GridSectorizer.cpp.

int GridSectorizer::WorldToCellX ( const float  input  )  const [protected]

Definition at line 163 of file GridSectorizer.cpp.

Here is the caller graph for this function:

int GridSectorizer::WorldToCellXOffsetAndClamped ( const float  input  )  const [protected]

Definition at line 171 of file GridSectorizer.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

int GridSectorizer::WorldToCellY ( const float  input  )  const [protected]

Definition at line 167 of file GridSectorizer.cpp.

Here is the caller graph for this function:

int GridSectorizer::WorldToCellYOffsetAndClamped ( const float  input  )  const [protected]

Definition at line 178 of file GridSectorizer.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

float GridSectorizer::cellHeight [protected]

Definition at line 53 of file GridSectorizer.h.

float GridSectorizer::cellOriginX [protected]

Definition at line 52 of file GridSectorizer.h.

float GridSectorizer::cellOriginY [protected]

Definition at line 52 of file GridSectorizer.h.

float GridSectorizer::cellWidth [protected]

Definition at line 53 of file GridSectorizer.h.

Definition at line 64 of file GridSectorizer.h.

Definition at line 56 of file GridSectorizer.h.

Definition at line 56 of file GridSectorizer.h.

float GridSectorizer::gridHeight [protected]

Definition at line 55 of file GridSectorizer.h.

float GridSectorizer::gridWidth [protected]

Definition at line 55 of file GridSectorizer.h.

float GridSectorizer::invCellHeight [protected]

Definition at line 54 of file GridSectorizer.h.

float GridSectorizer::invCellWidth [protected]

Definition at line 54 of file GridSectorizer.h.


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