Functions for managing SimilarityTransformWrapper objects. More...
Functions | |
VL_SDK_API void VL_CALLINGCONVENTION | vlDelete_SimilarityTransformWrapper (vlSimilarityTransformWrapper_t *similarityTransformWrapper) |
Deletes a SimilarityTransformWrapper object. More... | |
VL_SDK_API vlSimilarityTransformWrapper_t *VL_CALLINGCONVENTION | vlNew_SimilarityTransformWrapper () |
Creates a new SimilarityTransformWrapper object and returns a pointer to it. More... | |
VL_SDK_API vlSimilarityTransformWrapper_t *VL_CALLINGCONVENTION | vlSimilarityTransformWrapper_Clone (vlSimilarityTransformWrapper_t *similarityTransformWrapper) |
Creates a copy of the SimilarityTransformWrapper object and returns a pointer to it. More... | |
VL_SDK_API bool VL_CALLINGCONVENTION | vlSimilarityTransformWrapper_GetR (vlSimilarityTransformWrapper_t *similarityTransformWrapper, float q[], unsigned int elementCount) |
Returns the rotation of the contained transform. More... | |
VL_SDK_API float VL_CALLINGCONVENTION | vlSimilarityTransformWrapper_GetS (vlSimilarityTransformWrapper_t *similarityTransformWrapper) |
Returns the scale factor of the given SimilarityTransform. More... | |
VL_SDK_API bool VL_CALLINGCONVENTION | vlSimilarityTransformWrapper_GetT (vlSimilarityTransformWrapper_t *similarityTransformWrapper, float t[], unsigned int elementCount) |
Returns the translational part of the contained transform. More... | |
VL_SDK_API bool VL_CALLINGCONVENTION | vlSimilarityTransformWrapper_GetValid (vlSimilarityTransformWrapper_t *similarityTransformWrapper) |
Returns whether the contained transform is valid (the tracking was successful). More... | |
VL_SDK_API bool VL_CALLINGCONVENTION | vlSimilarityTransformWrapper_SetR (vlSimilarityTransformWrapper_t *similarityTransformWrapper, const float q[], unsigned int elementCount) |
Sets the rotation of the contained transform. More... | |
VL_SDK_API bool VL_CALLINGCONVENTION | vlSimilarityTransformWrapper_SetS (vlSimilarityTransformWrapper_t *similarityTransformWrapper, float s) |
Sets the scale factor of the given SimilarityTransform. More... | |
VL_SDK_API bool VL_CALLINGCONVENTION | vlSimilarityTransformWrapper_SetT (vlSimilarityTransformWrapper_t *similarityTransformWrapper, const float t[], unsigned int elementCount) |
Sets the translational part of the contained transform. More... | |
VL_SDK_API bool VL_CALLINGCONVENTION | vlSimilarityTransformWrapper_SetValid (vlSimilarityTransformWrapper_t *similarityTransformWrapper, bool value) |
Sets the valid flag of the given SimilarityTransform. More... | |
Functions for managing SimilarityTransformWrapper objects.
The SimilarityTransformWrapper is a wrapper for a SimilarityTransform object. SimilarityTransform objects represent a transform that scales in addition to rotation and translation.
VL_SDK_API void VL_CALLINGCONVENTION vlDelete_SimilarityTransformWrapper | ( | vlSimilarityTransformWrapper_t * | similarityTransformWrapper | ) |
Deletes a SimilarityTransformWrapper object.
Call this function if you used the vlNew_SimilarityTransformWrapper function to create the object and you are now done using it.
similarityTransformWrapper | Pointer to a SimilarityTransformWrapper object. |
VL_SDK_API vlSimilarityTransformWrapper_t *VL_CALLINGCONVENTION vlNew_SimilarityTransformWrapper | ( | ) |
Creates a new SimilarityTransformWrapper object and returns a pointer to it.
This pointer must be released using vlDelete_SimilarityTransformWrapper.
VL_SDK_API vlSimilarityTransformWrapper_t *VL_CALLINGCONVENTION vlSimilarityTransformWrapper_Clone | ( | vlSimilarityTransformWrapper_t * | similarityTransformWrapper | ) |
Creates a copy of the SimilarityTransformWrapper object and returns a pointer to it.
This pointer must be released using vlDelete_SimilarityTransformWrapper.
similarityTransformWrapper | Pointer to a SimilarityTransformWrapper object. |
VL_SDK_API bool VL_CALLINGCONVENTION vlSimilarityTransformWrapper_GetR | ( | vlSimilarityTransformWrapper_t * | similarityTransformWrapper, |
float | q[], | ||
unsigned int | elementCount | ||
) |
Returns the rotation of the contained transform.
Please notice, that represents the transformation of a 3D point as follows: .
similarityTransformWrapper | Pointer to a SimilarityTransformWrapper object. |
q | Float array with 4 elements for storing the rotation as quaternion. |
elementCount | Number of elements in the given array. This should be 4. |
true
, on success; false
otherwise. VL_SDK_API float VL_CALLINGCONVENTION vlSimilarityTransformWrapper_GetS | ( | vlSimilarityTransformWrapper_t * | similarityTransformWrapper | ) |
Returns the scale factor of the given SimilarityTransform.
Please notice, that represents the transformation of a 3D point as follows: .
similarityTransformWrapper | Pointer to a SimilarityTransformWrapper object. |
-1
otherwise VL_SDK_API bool VL_CALLINGCONVENTION vlSimilarityTransformWrapper_GetT | ( | vlSimilarityTransformWrapper_t * | similarityTransformWrapper, |
float | t[], | ||
unsigned int | elementCount | ||
) |
Returns the translational part of the contained transform.
Please notice, that represents the transformation of a 3D point as follows: .
similarityTransformWrapper | Pointer to a SimilarityTransformWrapper object. |
t | Float array with 3 elements for storing the translation. |
elementCount | Number of elements in the given array. This should be 3. |
true
, on success; false
otherwise. VL_SDK_API bool VL_CALLINGCONVENTION vlSimilarityTransformWrapper_GetValid | ( | vlSimilarityTransformWrapper_t * | similarityTransformWrapper | ) |
Returns whether the contained transform is valid (the tracking was successful).
similarityTransformWrapper | Pointer to a SimilarityTransformWrapper object. |
true
, if the contained transform is valid; false
otherwise. VL_SDK_API bool VL_CALLINGCONVENTION vlSimilarityTransformWrapper_SetR | ( | vlSimilarityTransformWrapper_t * | similarityTransformWrapper, |
const float | q[], | ||
unsigned int | elementCount | ||
) |
Sets the rotation of the contained transform.
Please notice, that represents the transformation of a 3D point as follows: .
similarityTransformWrapper | Pointer to a SimilarityTransformWrapper object. |
q | Float array with 4 elements , which contains the rotation as quaternion. |
elementCount | Number of elements in the given array. This should be 4. |
true
, on success; false
otherwise. VL_SDK_API bool VL_CALLINGCONVENTION vlSimilarityTransformWrapper_SetS | ( | vlSimilarityTransformWrapper_t * | similarityTransformWrapper, |
float | s | ||
) |
Sets the scale factor of the given SimilarityTransform.
Please notice, that represents the transformation of a 3D point as follows: .
similarityTransformWrapper | Pointer to a SimilarityTransformWrapper object. |
s | The scale factor |
true
, on success; false
otherwise. VL_SDK_API bool VL_CALLINGCONVENTION vlSimilarityTransformWrapper_SetT | ( | vlSimilarityTransformWrapper_t * | similarityTransformWrapper, |
const float | t[], | ||
unsigned int | elementCount | ||
) |
Sets the translational part of the contained transform.
Please notice, that represents the transformation of a 3D point as follows: .
similarityTransformWrapper | Pointer to a SimilarityTransformWrapper object. |
t | Float array with 3 elements , which contain the translation. |
elementCount | Number of elements in the given array. This should be 3. |
true
, on success; false
otherwise. VL_SDK_API bool VL_CALLINGCONVENTION vlSimilarityTransformWrapper_SetValid | ( | vlSimilarityTransformWrapper_t * | similarityTransformWrapper, |
bool | value | ||
) |
Sets the valid flag of the given SimilarityTransform.
similarityTransformWrapper | Pointer to a SimilarityTransformWrapper object. |
value | The new value of the valid flag. |
true
, if setting worked; false
otherwise