Candy
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Public Member Functions | Public Attributes | List of all members
HVR::DepthCamera::ExtremesMap Struct Reference

A map of extremes. More...

Public Member Functions

 ExtremesMap (int width, int height)
 Initializes the map size, but not the values of the cells. More...
 
const H3D::Vec2f & operator() (int x, int y) const
 Get the extremes of a specific cell. More...
 
H3D::Vec2f & operator() (int x, int y)
 Get the extremes of a specific cell. More...
 

Public Attributes

int width
 The width of the map, i e the number of cells in X-direction. More...
 
int height
 The height of the map, i e the number of cells in Y-direction. More...
 
int cell_width
 The width of a cell of the map. More...
 
int cell_height
 The height of a cell of the map. More...
 
std::vector< H3D::Vec2f > extremes
 

Detailed Description

A map of extremes.

This is a flat hierarchical structure that allows smart algorithms to throw away unnecessary work.

Constructor & Destructor Documentation

HVR::DepthCamera::ExtremesMap::ExtremesMap ( int  width,
int  height 
)

Initializes the map size, but not the values of the cells.

Member Function Documentation

const H3D::Vec2f& HVR::DepthCamera::ExtremesMap::operator() ( int  x,
int  y 
) const
inline

Get the extremes of a specific cell.

H3D::Vec2f& HVR::DepthCamera::ExtremesMap::operator() ( int  x,
int  y 
)
inline

Get the extremes of a specific cell.

Member Data Documentation

int HVR::DepthCamera::ExtremesMap::cell_height

The height of a cell of the map.

Observe that the last cell of each column may be lower to fit the image.

int HVR::DepthCamera::ExtremesMap::cell_width

The width of a cell of the map.

Observe that the last cell of each row may be narrower to fit the image.

int HVR::DepthCamera::ExtremesMap::height

The height of the map, i e the number of cells in Y-direction.

int HVR::DepthCamera::ExtremesMap::width

The width of the map, i e the number of cells in X-direction.