Abstract Base Class for Irregular Grid. More...
Classes | |
class | Axis |
Graduations on a BaseGrid Axis (H or V). More... | |
Public Member Functions | |
void | destroy () |
const Box & | getBoundingBox () const |
unsigned int | getColumns () const |
unsigned int | getRows () const |
unsigned int | getRawSize () const |
unsigned int | getIndex (unsigned int c, unsigned int r) const |
unsigned int | getRow (unsigned int) const |
unsigned int | getColumn (unsigned int) const |
const Axis & | getXGrads () const |
const Axis & | getYGrads () const |
Protected Member Functions | |
BaseGrid (const Box &) | |
Abstract Base Class for Irregular Grid.
An abstract class for a 2-D matrix of objects. The grid is irregular in the sense that the horizontal and vertical cut lines may not be evenly spaced.
The coordinates of cut lines in horizontal and vertical direction are stored BaseGrid::Axis structure.
The BaseGrid contains all the non-template methods of the Grid, that is that do not depend of the matrix element type.
The internal storage implemented in derived classes is expected to store "row by row" (rows are put one after another in the vector).
Construct a new BaseGrid on area bb
. Graduations, rows & columns are sets to zero.
|
inline |
The user-level destructor.
|
inline |
Returns: The grid bounding box.
|
inline |
Returns: The numbers of columns in the grid.
Referenced by GCellGrid::_postCreate(), KatabaticEngine::createDetailedGrid(), BaseGrid::getColumn(), BaseGrid::getIndex(), BaseGrid::getRawSize(), and BaseGrid::getRow().
|
inline |
Returns: The numbers of rows in the grid.
Referenced by GCellGrid::_postCreate(), KatabaticEngine::createDetailedGrid(), and BaseGrid::getRawSize().
|
inline |
Returns: The total number of elements in the grid (i.e. )
References BaseGrid::getColumns(), and BaseGrid::getRows().
|
inline |
An helper function that compute the linear index in the element vector from a (c,r) coordinate pair:
References BaseGrid::getColumns().
Referenced by Grid< GCell >::getGCellDown(), Grid< GCell >::getGCellLeft(), Grid< GCell >::getGCellRight(), and Grid< GCell >::getGCellUp().
|
inline |
An helper function that compute the row number from the linear index in the vector:
References BaseGrid::getColumns().
Referenced by GCell::getRow().
|
inline |
An helper function that compute the column number from the linear index in the vector:
References BaseGrid::getColumns().
Referenced by GCell::getColumn().
|
inline |
Returns: The graduations on the X axis.
|
inline |
Returns: The graduations on the Y axis.
Generated by doxygen 1.8.14 on Sun May 26 2019 | Return to top of page |
Katabatic - Routing Toolbox | Copyright © 2008-2016 UPMC. All rights reserved |