Tilt Five Unity API  1.3.0
Public Member Functions | Public Attributes | Properties | Private Attributes | List of all members
TiltFive.T5_CamImage Struct Reference

Represents a wrapper on a buffer comtaining a camera image. More...

Public Member Functions

 T5_CamImage (UInt16 bufferWidth, UInt16 bufferHeight, UInt16 bufferStride, UInt32 bufferSize)
 

Public Attributes

UInt16 ImageBufferWidth_PIX
 
UInt16 ImageBufferHeight_PIX
 
UInt16 ImageBufferStride_PIX
 
UInt32 ImageBufferSize_PIX
 
IntPtr ImageBuffer
 

Properties

Vector3 PosOfCAM_GBD [get, set]
 
Quaternion RotToCAM_GBD [get, set]
 

Private Attributes

T5_Position posOfCAM_GBD
 
T5_Rotation rotToCAM_GBD
 

Detailed Description

Represents a wrapper on a buffer comtaining a camera image.

This struct exists primarily to guarantee a common memory layout when marshaling an image buffer to/from the native plugin. Note that it implements IDisposable, and that it should be wrapped in a "using" statement/block to avoid leaking memory.

Definition at line 237 of file NativePlugin.cs.

Constructor & Destructor Documentation

◆ T5_CamImage()

TiltFive.T5_CamImage.T5_CamImage ( UInt16  bufferWidth,
UInt16  bufferHeight,
UInt16  bufferStride,
UInt32  bufferSize 
)

Member Data Documentation

◆ ImageBuffer

IntPtr TiltFive.T5_CamImage.ImageBuffer

Definition at line 243 of file NativePlugin.cs.

Referenced by TiltFive.T5_CamImage.T5_CamImage().

◆ ImageBufferHeight_PIX

UInt16 TiltFive.T5_CamImage.ImageBufferHeight_PIX

Definition at line 240 of file NativePlugin.cs.

Referenced by TiltFive.T5_CamImage.T5_CamImage().

◆ ImageBufferSize_PIX

UInt32 TiltFive.T5_CamImage.ImageBufferSize_PIX

Definition at line 242 of file NativePlugin.cs.

Referenced by TiltFive.T5_CamImage.T5_CamImage().

◆ ImageBufferStride_PIX

UInt16 TiltFive.T5_CamImage.ImageBufferStride_PIX

Definition at line 241 of file NativePlugin.cs.

Referenced by TiltFive.T5_CamImage.T5_CamImage().

◆ ImageBufferWidth_PIX

UInt16 TiltFive.T5_CamImage.ImageBufferWidth_PIX

Definition at line 239 of file NativePlugin.cs.

Referenced by TiltFive.T5_CamImage.T5_CamImage().

◆ posOfCAM_GBD

T5_Position TiltFive.T5_CamImage.posOfCAM_GBD
private

Definition at line 244 of file NativePlugin.cs.

Referenced by TiltFive.T5_CamImage.T5_CamImage().

◆ rotToCAM_GBD

T5_Rotation TiltFive.T5_CamImage.rotToCAM_GBD
private

Definition at line 245 of file NativePlugin.cs.

Referenced by TiltFive.T5_CamImage.T5_CamImage().

Property Documentation

◆ PosOfCAM_GBD

Vector3 TiltFive.T5_CamImage.PosOfCAM_GBD
getset

Definition at line 246 of file NativePlugin.cs.

246 { get => posOfCAM_GBD; set => posOfCAM_GBD = value; }

◆ RotToCAM_GBD

Quaternion TiltFive.T5_CamImage.RotToCAM_GBD
getset

Definition at line 247 of file NativePlugin.cs.

247 { get => rotToCAM_GBD; set => rotToCAM_GBD = value; }

The documentation for this struct was generated from the following file: