OSVR
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Properties Pages
Public Member Functions | List of all members
Gestures.GTransformBuffer Class Reference

Internal data storage class which can behave as either a set-size array or a circular array. More...

Inheritance diagram for Gestures.GTransformBuffer:

Public Member Functions

 GTransformBuffer (int maxSize)
 Create a GTransformBuffer with a specified max size. More...
 
void Enqueue (GTransform t)
 
void SetMaxSize (int maxSize)
 Sets the max size of the buffer. More...
 
void SetCircular (bool circular)
 Sets the circular behavior according to the specified parameter. More...
 
int Size ()
 Returns the number of elements in the buffer. More...
 
void Dequeue ()
 Removes the first element of the buffer. More...
 
void Clear ()
 Clears the buffer. More...
 
IEnumerator< GTransformGetEnumerator ()
 Generates the Enumerator over the GTransforms in the buffer. More...
 
Vector3[] ToArray ()
 Returns the GTransformBuffer contents as a GTransform[] array; More...
 

Detailed Description

Internal data storage class which can behave as either a set-size array or a circular array.

Constructor & Destructor Documentation

Gestures.GTransformBuffer.GTransformBuffer ( int  maxSize)
inline

Create a GTransformBuffer with a specified max size.

Parameters
maxSizeThe desired max size of the GTransformBuffer

Member Function Documentation

void Gestures.GTransformBuffer.Clear ( )
inline

Clears the buffer.

void Gestures.GTransformBuffer.Dequeue ( )
inline

Removes the first element of the buffer.

void Gestures.GTransformBuffer.Enqueue ( GTransform  t)
inline
IEnumerator<GTransform> Gestures.GTransformBuffer.GetEnumerator ( )
inline

Generates the Enumerator over the GTransforms in the buffer.

Returns
IEnumerator<GTransform> of GTransform data points
void Gestures.GTransformBuffer.SetCircular ( bool  circular)
inline

Sets the circular behavior according to the specified parameter.

Parameters
circular
void Gestures.GTransformBuffer.SetMaxSize ( int  maxSize)
inline

Sets the max size of the buffer.

Parameters
maxSize
int Gestures.GTransformBuffer.Size ( )
inline

Returns the number of elements in the buffer.

Returns
Vector3 [] Gestures.GTransformBuffer.ToArray ( )
inline

Returns the GTransformBuffer contents as a GTransform[] array;

Returns
GTransform array of the contents of the buffer.

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