Tilt Five™ Unity API  1.4.1
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 257 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 263 of file NativePlugin.cs.

Referenced by TiltFive.T5_CamImage.T5_CamImage().

◆ ImageBufferHeight_PIX

UInt16 TiltFive.T5_CamImage.ImageBufferHeight_PIX

Definition at line 260 of file NativePlugin.cs.

Referenced by TiltFive.T5_CamImage.T5_CamImage().

◆ ImageBufferSize_PIX

UInt32 TiltFive.T5_CamImage.ImageBufferSize_PIX

Definition at line 262 of file NativePlugin.cs.

Referenced by TiltFive.T5_CamImage.T5_CamImage().

◆ ImageBufferStride_PIX

UInt16 TiltFive.T5_CamImage.ImageBufferStride_PIX

Definition at line 261 of file NativePlugin.cs.

Referenced by TiltFive.T5_CamImage.T5_CamImage().

◆ ImageBufferWidth_PIX

UInt16 TiltFive.T5_CamImage.ImageBufferWidth_PIX

Definition at line 259 of file NativePlugin.cs.

Referenced by TiltFive.T5_CamImage.T5_CamImage().

◆ posOfCAM_GBD

T5_Position TiltFive.T5_CamImage.posOfCAM_GBD
private

Definition at line 264 of file NativePlugin.cs.

Referenced by TiltFive.T5_CamImage.T5_CamImage().

◆ rotToCAM_GBD

T5_Rotation TiltFive.T5_CamImage.rotToCAM_GBD
private

Definition at line 265 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 266 of file NativePlugin.cs.

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

◆ RotToCAM_GBD

Quaternion TiltFive.T5_CamImage.RotToCAM_GBD
getset

Definition at line 267 of file NativePlugin.cs.

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

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