Raytrix Light Field SDK
5.0
|
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.
Public Member Functions | |
CRxOctree () | |
Default constructor. Creates an invalid mapping without using any memory. More... | |
CRxOctree (const CRxOctree &xOctree) | |
Copy constructor. Creates a copy of the given image. More... | |
CRxOctree (CRxOctree &&xOctree) | |
Move constructor. More... | |
virtual | ~CRxOctree () |
Destructor. All used memory is freed. More... | |
bool | Contains (float fPointX, float fPointY, float fPointZ) |
Query if this object contains the given fPointX. More... | |
void | Create (const CRxOctree &xOctree) |
Creates a copy of the given mapping. Only (re)allocates memory if required. More... | |
void | Create (CRxOctree &&xOctree) |
Creates this mapping by moving the data of the given mapping into this mapping. More... | |
bool | Create (float fMinPositionX, float fMinPositionY, float fMinPositionZ, float fMaxPositionX, float fMaxPositionY, float fMaxPositionZ, int iDimensionX, int iDimensionY, int iDimensionZ, const float *pfData) |
Create a mapping of given size and reserve the appropriate amount of memory. More... | |
virtual bool | Destroy () |
Destroys this mapping volume if one has been created. Resets all internal variables. More... | |
virtual unsigned | GetByteCount () const |
Gets the number of bytes of the mapping volume. More... | |
virtual float * | GetDataPtr () |
Return the pointer to the mapping data. More... | |
virtual const float * | GetDataPtr () const |
Return the constant pointer to the mapping data. More... | |
virtual bool | IsValid () const |
Query if this mapping volume is valid. More... | |
float & | operator() (float fPointX, float fPointY, float fPointZ) |
Function call operator. More... | |
CRxOctree & | operator= (const CRxOctree &xOctree) |
Assignment operator. Copies the contents of the given mapping. More... | |
CRxOctree & | operator= (CRxOctree &&xOctree) |
Move assignment operator. More... | |
bool | Set (const float *pfData) |
Copies the content of the given mapping data into this mapping. More... | |
void | SetZero () |
Sets the mapping to zero zero. More... | |
Public Attributes | |
float | m_fCellSizeX |
The cell size in x direction. More... | |
float | m_fCellSizeY |
The cell size in y direction. More... | |
float | m_fCellSizeZ |
The cell size in z direction. More... | |
float | m_fMaxPositionX |
The max position x component. More... | |
float | m_fMaxPositionY |
The max position y component. More... | |
float | m_fMaxPositionZ |
The max position z component. More... | |
float | m_fMinPositionX |
The min position x component. More... | |
float | m_fMinPositionY |
The min position y component. More... | |
float | m_fMinPositionZ |
The min position z component. More... | |
int | m_iDimensionX |
The dimension x component. More... | |
int | m_iDimensionY |
The dimension y component. More... | |
int | m_iDimensionZ |
The dimension z component. More... | |
float * | m_pfData |
The depth correction volume data. More... | |
Rx::CRxOctree::CRxOctree | ( | ) |
Default constructor. Creates an invalid mapping without using any memory.
Rx::CRxOctree::CRxOctree | ( | const CRxOctree & | xOctree | ) |
Copy constructor. Creates a copy of the given image.
xMapping | The mapping to copy. |
Rx::CRxOctree::CRxOctree | ( | CRxOctree && | xOctree | ) |
Move constructor.
xMapping | [in] The mapping to move. This is invalid after the call. |
|
virtual |
Destructor. All used memory is freed.
bool Rx::CRxOctree::Contains | ( | float | fPointX, |
float | fPointY, | ||
float | fPointZ | ||
) |
Query if this object contains the given fPointX.
fPointX | The point x coordinate. |
fPointY | The point y coordinate. |
fPointZ | The point z coordinate. |
void Rx::CRxOctree::Create | ( | const CRxOctree & | xOctree | ) |
Creates a copy of the given mapping. Only (re)allocates memory if required.
xMapping | The mapping to copy. |
void Rx::CRxOctree::Create | ( | CRxOctree && | xOctree | ) |
Creates this mapping by moving the data of the given mapping into this mapping.
xMapping | [in,out] The mapping to move. Is invalid after this call. |
bool Rx::CRxOctree::Create | ( | float | fMinPositionX, |
float | fMinPositionY, | ||
float | fMinPositionZ, | ||
float | fMaxPositionX, | ||
float | fMaxPositionY, | ||
float | fMaxPositionZ, | ||
int | iDimensionX, | ||
int | iDimensionY, | ||
int | iDimensionZ, | ||
const float * | pfData | ||
) |
Create a mapping of given size and reserve the appropriate amount of memory.
fMinPositionX | The min position X. |
fMinPositionY | The min position Y. |
fMinPositionZ | The min position Z. |
fMaxPositionX | The max position X. |
fMaxPositionY | The max position Y. |
fMaxPositionZ | The max position Z. |
iDimensionX | The X dimension. |
iDimensionY | The Y dimension. |
iDimensionZ | The Z dimension. |
pfData | Information describing the mapping volume. |
|
virtual |
Destroys this mapping volume if one has been created. Resets all internal variables.
|
inlinevirtual |
Gets the number of bytes of the mapping volume.
|
inlinevirtual |
Return the pointer to the mapping data.
|
inlinevirtual |
Return the constant pointer to the mapping data.
|
inlinevirtual |
Query if this mapping volume is valid.
|
inline |
Function call operator.
fPointX | The position of the x cell. |
fPointY | The position of the y cell. |
fPointZ | The position of the z cell. |
Assignment operator. Copies the contents of the given mapping.
xMapping | The mapping. |
Move assignment operator.
xMapping | [in] The mapping to move. This is invalid after the call. |
bool Rx::CRxOctree::Set | ( | const float * | pfData | ) |
Copies the content of the given mapping data into this mapping.
pfData | The mapping volume data to copy. |
void Rx::CRxOctree::SetZero | ( | ) |
Sets the mapping to zero zero.
float Rx::CRxOctree::m_fCellSizeX |
The cell size in x direction.
float Rx::CRxOctree::m_fCellSizeY |
The cell size in y direction.
float Rx::CRxOctree::m_fCellSizeZ |
The cell size in z direction.
float Rx::CRxOctree::m_fMaxPositionX |
The max position x component.
float Rx::CRxOctree::m_fMaxPositionY |
The max position y component.
float Rx::CRxOctree::m_fMaxPositionZ |
The max position z component.
float Rx::CRxOctree::m_fMinPositionX |
The min position x component.
float Rx::CRxOctree::m_fMinPositionY |
The min position y component.
float Rx::CRxOctree::m_fMinPositionZ |
The min position z component.
int Rx::CRxOctree::m_iDimensionX |
The dimension x component.
int Rx::CRxOctree::m_iDimensionY |
The dimension y component.
int Rx::CRxOctree::m_iDimensionZ |
The dimension z component.
float* Rx::CRxOctree::m_pfData |
The depth correction volume data.