Functions for managing ExtrinsicDataWrapper objects. More...
Functions | |
| VL_SDK_API void VL_CALLINGCONVENTION | vlDelete_ExtrinsicDataWrapper (vlExtrinsicDataWrapper_t *extrinsicDataWrapper) |
| Deletes an ExtrinsicDataWrapper object. More... | |
| VL_SDK_API vlExtrinsicDataWrapper_t *VL_CALLINGCONVENTION | vlExtrinsicDataWrapper_Clone (vlExtrinsicDataWrapper_t *extrinsicDataWrapper) |
| Creates a copy of the ExtrinsicDataWrapper object and returns a pointer to it. More... | |
| VL_SDK_API bool VL_CALLINGCONVENTION | vlExtrinsicDataWrapper_GetCamPosWorld (vlExtrinsicDataWrapper_t *extrinsicDataWrapper, float *t, unsigned int elementCount) |
Returns the position ![]() | |
| VL_SDK_API bool VL_CALLINGCONVENTION | vlExtrinsicDataWrapper_GetModelViewMatrix (vlExtrinsicDataWrapper_t *extrinsicDataWrapper, float *matrix, unsigned int matrixElementCount) |
| Returns the current camera pose as model-view matrix. More... | |
| VL_SDK_API bool VL_CALLINGCONVENTION | vlExtrinsicDataWrapper_GetR (vlExtrinsicDataWrapper_t *extrinsicDataWrapper, float *q, unsigned int elementCount) |
Returns the rotation ![]() | |
| VL_SDK_API bool VL_CALLINGCONVENTION | vlExtrinsicDataWrapper_GetT (vlExtrinsicDataWrapper_t *extrinsicDataWrapper, float *t, unsigned int elementCount) |
Returns the translation ![]() | |
| VL_SDK_API bool VL_CALLINGCONVENTION | vlExtrinsicDataWrapper_GetValid (vlExtrinsicDataWrapper_t *extrinsicDataWrapper) |
| Returns whether the current tracking pose is valid (the tracking was successful). More... | |
| VL_SDK_API bool VL_CALLINGCONVENTION | vlExtrinsicDataWrapper_SetCamPosWorld (vlExtrinsicDataWrapper_t *extrinsicDataWrapper, const float *t, unsigned int elementCount) |
Sets the position ![]() | |
| VL_SDK_API bool VL_CALLINGCONVENTION | vlExtrinsicDataWrapper_SetR (vlExtrinsicDataWrapper_t *extrinsicDataWrapper, const float *q, unsigned int elementCount) |
Sets the rotation ![]() | |
| VL_SDK_API bool VL_CALLINGCONVENTION | vlExtrinsicDataWrapper_SetT (vlExtrinsicDataWrapper_t *extrinsicDataWrapper, const float *t, unsigned int elementCount) |
Sets the translation ![]() | |
| VL_SDK_API bool VL_CALLINGCONVENTION | vlExtrinsicDataWrapper_SetValid (vlExtrinsicDataWrapper_t *extrinsicDataWrapper, bool value) |
| Sets the valid flag of the given ExtrinsicData. More... | |
| VL_SDK_API vlExtrinsicDataWrapper_t *VL_CALLINGCONVENTION | vlNew_ExtrinsicDataWrapper () |
| Creates a new ExtrinsicDataWrapper object and returns a pointer to it. More... | |
Functions for managing ExtrinsicDataWrapper objects.
The ExtrinsicDataWrapper is a wrapper for an ExtrinsicData object. ExtrinsicData objects represent the extrinsic camera parameters (position and orientation).
| VL_SDK_API void VL_CALLINGCONVENTION vlDelete_ExtrinsicDataWrapper | ( | vlExtrinsicDataWrapper_t * | extrinsicDataWrapper | ) |
Deletes an ExtrinsicDataWrapper object.
Call this function if you used the vlNew_ExtrinsicDataWrapper function to create the object and you are now done using it.
| extrinsicDataWrapper | Pointer to an ExtrinsicDataWrapper object. |
| VL_SDK_API vlExtrinsicDataWrapper_t *VL_CALLINGCONVENTION vlExtrinsicDataWrapper_Clone | ( | vlExtrinsicDataWrapper_t * | extrinsicDataWrapper | ) |
Creates a copy of the ExtrinsicDataWrapper object and returns a pointer to it.
This pointer must be released using vlDelete_ExtrinsicDataWrapper.
| extrinsicDataWrapper | Pointer to an ExtrinsicDataWrapper object. |
| VL_SDK_API bool VL_CALLINGCONVENTION vlExtrinsicDataWrapper_GetCamPosWorld | ( | vlExtrinsicDataWrapper_t * | extrinsicDataWrapper, |
| float * | t, | ||
| unsigned int | elementCount | ||
| ) |
Returns the position 
Internally the position 


| extrinsicDataWrapper | Pointer to an ExtrinsicDataWrapper object. |
| t | Float array with 3 elements ![]() |
| elementCount | Number of elements in the given array. This should be 3. |
true, on success; false otherwise. | VL_SDK_API bool VL_CALLINGCONVENTION vlExtrinsicDataWrapper_GetModelViewMatrix | ( | vlExtrinsicDataWrapper_t * | extrinsicDataWrapper, |
| float * | matrix, | ||
| unsigned int | matrixElementCount | ||
| ) |
Returns the current camera pose as model-view matrix.
The returned matrix assumes a right-handed coordinate system and is stored in the following order (column-major order):
![\[
\begin{bmatrix}
0 & 4 & 8 & 12\\
1 & 5 & 9 & 13\\
2 & 6 & 10 & 14\\
3 & 7 & 11 & 15\\
\end{bmatrix}
\]](form_0.png)
| extrinsicDataWrapper | Pointer to an ExtrinsicDataWrapper object. |
| matrix | Float array with 16 elements for storing the model-view matrix. |
| matrixElementCount | Number of elements in the given array. This should be 16. |
true, on success; false otherwise. | VL_SDK_API bool VL_CALLINGCONVENTION vlExtrinsicDataWrapper_GetR | ( | vlExtrinsicDataWrapper_t * | extrinsicDataWrapper, |
| float * | q, | ||
| unsigned int | elementCount | ||
| ) |
Returns the rotation 
Please notice, that 



| extrinsicDataWrapper | Pointer to an ExtrinsicDataWrapper object. |
| q | Float array with 4 elements ![]() |
| elementCount | Number of elements in the given array. This should be 4. |
true, on success; false otherwise. | VL_SDK_API bool VL_CALLINGCONVENTION vlExtrinsicDataWrapper_GetT | ( | vlExtrinsicDataWrapper_t * | extrinsicDataWrapper, |
| float * | t, | ||
| unsigned int | elementCount | ||
| ) |
Returns the translation 
Please notice, that 



| extrinsicDataWrapper | Pointer to an ExtrinsicDataWrapper object. |
| t | Float array with 3 elements ![]() |
| elementCount | Number of elements in the given array. This should be 3. |
true, on success; false otherwise. | VL_SDK_API bool VL_CALLINGCONVENTION vlExtrinsicDataWrapper_GetValid | ( | vlExtrinsicDataWrapper_t * | extrinsicDataWrapper | ) |
Returns whether the current tracking pose is valid (the tracking was successful).
| extrinsicDataWrapper | Pointer to an ExtrinsicDataWrapper object. |
true, if the current tracking pose is valid; false otherwise. | VL_SDK_API bool VL_CALLINGCONVENTION vlExtrinsicDataWrapper_SetCamPosWorld | ( | vlExtrinsicDataWrapper_t * | extrinsicDataWrapper, |
| const float * | t, | ||
| unsigned int | elementCount | ||
| ) |
Sets the position 
Internally this will be stored as a transformation 

| extrinsicDataWrapper | Pointer to an ExtrinsicDataWrapper object. |
| t | Float array with 3 elements ![]() |
| elementCount | Number of elements in the given array. This should be 3. |
true, on success; false otherwise. | VL_SDK_API bool VL_CALLINGCONVENTION vlExtrinsicDataWrapper_SetR | ( | vlExtrinsicDataWrapper_t * | extrinsicDataWrapper, |
| const float * | q, | ||
| unsigned int | elementCount | ||
| ) |
Sets the rotation 
Please notice, that 



| extrinsicDataWrapper | Pointer to an ExtrinsicDataWrapper object. |
| q | Float array with 4 elements ![]() |
| elementCount | Number of elements in the given array. This should be 4. |
true, on success; false otherwise. | VL_SDK_API bool VL_CALLINGCONVENTION vlExtrinsicDataWrapper_SetT | ( | vlExtrinsicDataWrapper_t * | extrinsicDataWrapper, |
| const float * | t, | ||
| unsigned int | elementCount | ||
| ) |
Sets the translation 
Please notice, that 



| extrinsicDataWrapper | Pointer to an ExtrinsicDataWrapper object. |
| t | Float array with 3 elements ![]() |
| elementCount | Number of elements in the given array. This should be 3. |
true, on success; false otherwise. | VL_SDK_API bool VL_CALLINGCONVENTION vlExtrinsicDataWrapper_SetValid | ( | vlExtrinsicDataWrapper_t * | extrinsicDataWrapper, |
| bool | value | ||
| ) |
Sets the valid flag of the given ExtrinsicData.
| extrinsicDataWrapper | Pointer to an ExtrinsicDataWrapper object. |
| value | The new value of the valid flag. |
true, if setting worked; false otherwise | VL_SDK_API vlExtrinsicDataWrapper_t *VL_CALLINGCONVENTION vlNew_ExtrinsicDataWrapper | ( | ) |
Creates a new ExtrinsicDataWrapper object and returns a pointer to it.
This pointer must be released using vlDelete_ExtrinsicDataWrapper.