The VLExtrinsicDataWrapper is a wrapper for an ExtrinsicData object. ExtrinsicData objects represent the extrinsic camera parameters (position and orientation). More...
Inherits IDisposable.
Public Member Functions | |
VLExtrinsicDataWrapper (IntPtr handle, bool owner) | |
Constructor of VLExtrinsicDataWrapper. More... | |
VLExtrinsicDataWrapper (Quaternion q, Vector3 t) | |
VLExtrinsicDataWrapper | Clone () |
Creates a copy of this object and returns a Wrapper of it. More... | |
IntPtr | getHandle () |
void | Dispose () |
Explicitly releases references to unmanaged resources. More... | |
bool | GetValid () |
Returns whether the current tracking pose is valid (the tracking was successful). More... | |
bool | SetValid (bool value) |
Matrix4x4 | GetModelViewMatrix () |
Returns the current camera pose as model-view matrix. More... | |
bool | GetT (float[] t) |
Returns the translation from the world coordinate system to the camera coordinate system. More... | |
bool | SetT (float[] t) |
Sets the translation from the world coordinate system to the camera coordinate system. More... | |
bool | GetR (float[] q) |
Returns the rotation from the world coordinate system to the camera coordinate system. More... | |
bool | SetR (float[] q) |
Sets the rotation from the world coordinate system to the camera coordinate system. More... | |
bool | GetCamPosWorld (float[] pos) |
Returns the position of the camera in world coordinates. More... | |
bool | SetCamPosWorld (float[] pos) |
Sets the position of the camera in world coordinates. More... | |
bool | SetFromCamera (Camera camera) |
The VLExtrinsicDataWrapper is a wrapper for an ExtrinsicData object. ExtrinsicData objects represent the extrinsic camera parameters (position and orientation).
|
inline |
Constructor of VLExtrinsicDataWrapper.
Don't call this constructor directly. Use the VLAbstractApplicationWrapper.GetDataSet and VLDataSetWrapper.GetIntrinsicData methods instead.
handle | Handle to the native object. |
owner | true , if the VLExtrinsicDataWrapper is the owner of the native object; false , otherwise. |
|
inline |
|
inline |
Creates a copy of this object and returns a Wrapper of it.
|
inline |
Explicitly releases references to unmanaged resources.
Call Dispose when you are finished using the VLExtrinsicDataWrapper. The Dispose method leaves the VLExtrinsicDataWrapper in an unusable state. After calling Dispose, you must release all references to the VLExtrinsicDataWrapper so the garbage collector can reclaim the memory that the VLExtrinsicDataWrapper was occupying.
|
inline |
Returns the position of the camera in world coordinates.
Internally the position will be computed from the transformation which transforms a 3D point from world coordinates into camera coordinates ( ).
true
, if the position was acquired successfully; false
otherwise. pos | Float array with 3 elements for storing the position. |
|
inline |
|
inline |
Returns the current camera pose as model-view matrix.
The returned matrix assumes a right-handed coordinate system. Throws an InvalidOperationExcception, if the ModelViewMatrix is invalid or can not be retrieved.
|
inline |
Returns the rotation from the world coordinate system to the camera coordinate system.
Please notice, that represents the transformation of a 3D point from world coordinates into a 3D point in camera coordinates: .
true
, if the rotation was acquired successfully; false
otherwise. q | Float array with 4 elements for storing the rotation as quaternion. |
|
inline |
Returns the translation from the world coordinate system to the camera coordinate system.
Please notice, that represents the transformation of a 3D point from world coordinates into a 3D point in camera coordinates: .
true
, if the translation was acquired successfully; false
otherwise. t | Float array with 3 elements for storing the translation. |
|
inline |
Returns whether the current tracking pose is valid (the tracking was successful).
true
, if the current tracking pose is valid; false
otherwise.
|
inline |
Sets the position of the camera in world coordinates.
Internally this will be stored as a transformation of a 3D point from world coordinates into camera coordinates ( ).
true
, if the position was acquired successfully; false
otherwise. pos | Float array with 3 elements , which contains the position. |
|
inline |
|
inline |
Sets the rotation from the world coordinate system to the camera coordinate system.
Please notice, that represents the transformation of a 3D point from world coordinates into a 3D point in camera coordinates: .
true
, if the rotation was set successfully; false
otherwise. q | Float array with 4 elements , which contains the rotation as quaternion. |
|
inline |
Sets the translation from the world coordinate system to the camera coordinate system.
Please notice, that represents the transformation of a 3D point from world coordinates into a 3D point in camera coordinates: .
true
, if the translation was set successfully; false
otherwise. t | Float array with 3 elements , which contain the translation. |
|
inline |