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... | |
void | Dispose () |
Explicitly releases references to unmanaged resources. More... | |
Vector3 | GetCamPosWorld () |
Returns the position of the camera in world coordinates. More... | |
IntPtr | getHandle () |
Matrix4x4 | GetModelViewMatrix () |
Returns the current camera pose as model-view matrix. More... | |
Quaternion | GetR () |
Returns the rotation of the ExtrinsicData. More... | |
Vector3 | GetT () |
Returns the translation of the ExtrinsicData. More... | |
bool | GetValid () |
Returns whether the current tracking pose is valid (the tracking was successful). More... | |
void | SetCamPosWorld (Vector3 camPos) |
Sets the position of the camera in world coordinates. More... | |
void | SetFromCamera (Camera camera) |
void | SetR (Quaternion rotation) |
Sets the rotation of the ExtrinsicData. More... | |
void | SetT (Vector3 translation) |
Sets the translation of the ExtrinsicData. More... | |
void | SetValid (bool value) |
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 VLExtrinsicDataWrapper.VLExtrinsicDataWrapper instead.
handle | Handle to the native object. |
owner | true , if the VLExtrinsicDataWrapper is the owner of the native object; false , otherwise. |
|
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 ( ). Throws an InvalidOperationExcception, if the operation cannot be processed.
|
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 of the ExtrinsicData.
Please notice, that represents the transformation of a 3D point from world coordinates into a 3D point in camera coordinates: . Throws an InvalidOperationExcception, if the Rotation is invalid or can not be retrieved.
|
inline |
Returns the translation of the ExtrinsicData.
Please notice, that represents the transformation of a 3D point from world coordinates into a 3D point in camera coordinates: . Throws an InvalidOperationExcception, if the Translation is invalid or can not be set.
|
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 ( ). Throws an InvalidOperationExcception, if the operation cannot be processed.
|
inline |
Sets the rotation of the ExtrinsicData.
Please notice, that represents the transformation of a 3D point from world coordinates into a 3D point in camera coordinates: . Throws an InvalidOperationExcception, if the Rotation is invalid or can not be set.
|
inline |
Sets the translation of the ExtrinsicData.
Please notice, that represents the transformation of a 3D point from world coordinates into a 3D point in camera coordinates: . Throws an InvalidOperationExcception, if the Translation is invalid or can not be changed.