PerceptionGridPar Class Reference
[Grid]

A class to control the parameters of the Grid. More...

#include <PerceptionGrid.h>

Inheritance diagram for PerceptionGridPar:

MIPObject

List of all members.

Public Member Functions

 PerceptionGridPar ()
 the default empty constructor
 PerceptionGridPar (ScanPar scanPar, Pose center, Decimal cellSize, int nCellX, int nCellY)
 The contructor.
 PerceptionGridPar (const PerceptionGridPar &g)
 Copy constructor.
PerceptionGridParoperator= (const PerceptionGridPar &g)
 Operator =.
Pose center ()
 Returns the center of the grid.
Decimal cellSize ()
 Returns the size of a cell.
int nCellX ()
 Returns the number of cells on the X axis.
int nCellY ()
 Returns the number of cells of the Y axis.
Decimal width ()
 Computes and returns the width of the grid.
Decimal height ()
 Computes and returns the height of the grid.
bool setSize (Decimal height, Decimal width, Decimal cellSize)
 Computes the new size of cell that best fits the given height, width and cellSize.
bool setSize (Decimal width, int nCellX, int nCellY)
 Computes the new size of cell that best fits the given height, width and cellSize.
string getName ()
 Gets the name.
ScanParscanPar ()
 Gets a pointer to the paramenters of the scan.


Detailed Description

A class to control the parameters of the Grid.

Author:
Arnaud Dufranne.

Constructor & Destructor Documentation

PerceptionGridPar::PerceptionGridPar (  ) 

the default empty constructor

PerceptionGridPar::PerceptionGridPar ( ScanPar  scanPar,
Pose  center,
Decimal  cellSize,
int  nCellX,
int  nCellY 
)

The contructor.

Parameters:
[in] params The scan params.
[in] currScan The current Scan.
[in] center The absolute Pose of the center of the Grid.
[in] cellSize The size of a cell in meters.
[in] nCellX The number of width cells of the Grid.
[in] nCellY The number of height cells of the Grid.

PerceptionGridPar::PerceptionGridPar ( const PerceptionGridPar g  ) 

Copy constructor.


Member Function Documentation

PerceptionGridPar & PerceptionGridPar::operator= ( const PerceptionGridPar g  ) 

Operator =.

Pose PerceptionGridPar::center (  )  [inline]

Returns the center of the grid.

Decimal PerceptionGridPar::cellSize (  )  [inline]

Returns the size of a cell.

int PerceptionGridPar::nCellX (  )  [inline]

Returns the number of cells on the X axis.

int PerceptionGridPar::nCellY (  )  [inline]

Returns the number of cells of the Y axis.

Decimal PerceptionGridPar::width (  )  [inline]

Computes and returns the width of the grid.

Decimal PerceptionGridPar::height (  )  [inline]

Computes and returns the height of the grid.

bool PerceptionGridPar::setSize ( Decimal  height,
Decimal  width,
Decimal  cellSize 
)

Computes the new size of cell that best fits the given height, width and cellSize.

Note:
The width and height of the Grid may not be the ones specified in the parameters.

bool PerceptionGridPar::setSize ( Decimal  width,
int  nCellX,
int  nCellY 
)

Computes the new size of cell that best fits the given height, width and cellSize.

Note:
The width and height of the Grid may not be the ones specified in the parameters.

string PerceptionGridPar::getName ( void   )  [inline, virtual]

Gets the name.

Implements MIPObject.

ScanPar * PerceptionGridPar::scanPar (  )  [inline]

Gets a pointer to the paramenters of the scan.


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

Generated on Tue Jun 15 07:01:09 2010 for MIP by  doxygen 1.5.6