Namespace: Rx – Class: CRxMapping3D – Header: Rx.Core.Ex/RxMapping3D.h

CRxMapping3D Class

C++
#include "Rx.Core.Ex/RxMapping3D.h"
class CRxMapping3D

The mapping 3D. Uses a 3D volume to map a 3d Point to another 3d Point.

Dimension X Min Position *_________________ /| / / | /| /__|______________/ |Dimension Y | | | | | |______________|_| | / | / Dimension Z | / |/ |/________________* MaxPosition.

Constructors

CRxMapping3D()

Default constructor. Creates an invalid mapping without using any memory.

CRxMapping3D(xMapping)

Copy constructor. Creates a copy of the given image.

CRxMapping3D(xMapping)

Move constructor.

Destructor

~CRxMapping3D()

Destructor. All used memory is freed.

Methods

Set(pfData)

Copies the content of the given mapping data into this mapping.

Create(xMapping)

Creates a copy of the given mapping. Only (re)allocates memory if required.

Create(xMapping)

Creates this mapping by moving the data of the given mapping into this mapping.

Create(fMinPositionX, fMinPositionY, fMinPositionZ, fMaxPositionX, fMaxPositionY, fMaxPositionZ, iDimensionX, iDimensionY, iDimensionZ, pfData)

Create a mapping of given size and reserve the appropriate amount of memory.

Contains(fPointX, fPointY, fPointZ)

Query if this object contains the given fPointX.

Map(fPointX, fPointY, fPointZ)

Maps the given point to another point.

Destroy()

Destroys this mapping volume if one has been created. Resets all internal variables.

IsValid()

Query if this mapping volume is valid.

GetByteCount()

Gets the number of bytes of the mapping volume.

GetDataPtr()

Return the pointer to the mapping data.

GetDataPtr()

Return the constant pointer to the mapping data.

SetZero()

Sets the mapping to zero zero.

Operators

operator=(xMapping)

Assignment operator. Copies the contents of the given mapping.

operator=(xMapping)

Move assignment operator.

operator()(fPointX, fPointY, fPointZ)

Function call operator.

Variables

m_pfData

The depth correction volume data.

m_fMinPositionX

The min position x component.

m_fMinPositionY

The min position y component.

m_fMinPositionZ

The min position z component.

m_fMaxPositionX

The max position x component.

m_fMaxPositionY

The max position y component.

m_fMaxPositionZ

The max position z component.

m_iDimensionX

The dimension x component.

m_iDimensionY

The dimension y component.

m_iDimensionZ

The dimension z component.

m_fCellSizeX

The cell size in x direction.

m_fCellSizeY

The cell size in y direction.

m_fCellSizeZ

The cell size in z direction.

m_sxFilePath

Full pathname of the file.