C# Класс Grafiti.Surface

Defines the main singleton instance that processes Tuio cursor messages and retrieves informations from the client about the tuio objects and the GUI components in the surface.
Наследование: TuioListener
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
Initialize ( IGrafitiClientGUIManager guiManager ) : Surface

Initializes the surface and set the client's GUI manager.

PointToClient ( IGestureListener target, float x, float y, float &cx, float &cy ) : void

Takes a GUI control and point specified in Grafiti-coordinate-system and returns the point relative to the GUI component in client's coordinates.

addTuioCursor ( TuioCursor c ) : void
addTuioObject ( TuioObject obj ) : void
refresh ( long timeStampAsLong ) : void
removeTuioCursor ( TuioCursor c ) : void
removeTuioObject ( TuioObject obj ) : void
updateTuioCursor ( TuioCursor c ) : void
updateTuioObject ( TuioObject obj ) : void

Приватные методы

Метод Описание
CreateGroup ( ) : Group
GetMatchingGroup ( CursorPoint cursor, List targets, bool isZControl ) : Group

Clustering method. Determine the best matching group to add the cursor's trace to. If none existing groups are suitable, a new one is created.

GetTargetsAt ( float x, float y, List &targets ) : bool

Get targets for a point and returns true if such point is over a Z-control.

ProcessCurrentAddingCursors ( int timeStamp ) : void
ProcessCurrentRemovingCursors ( int timeStamp ) : void
ProcessCurrentUpdatingCursors ( int timeStamp ) : void
RemoveNonResurrectableGroups ( int timeStamp ) : void
RemoveNonResurrectableTraces ( int timeStamp ) : void
Surface ( ) : System
TryResurrectTrace ( CursorPoint cursor, Trace &resurrectingTrace ) : bool

Описание методов

Initialize() публичный статический Метод

Initializes the surface and set the client's GUI manager.
public static Initialize ( IGrafitiClientGUIManager guiManager ) : Surface
guiManager IGrafitiClientGUIManager Client's GUI manager to set.
Результат Surface

PointToClient() публичный Метод

Takes a GUI control and point specified in Grafiti-coordinate-system and returns the point relative to the GUI component in client's coordinates.
public PointToClient ( IGestureListener target, float x, float y, float &cx, float &cy ) : void
target IGestureListener The GUI component.
x float X coordinate of the point to convert.
y float Y coordinate of the point to convert.
cx float X coordinate of the converted point.
cy float Y coordinate of the converted point.
Результат void

addTuioCursor() публичный Метод

public addTuioCursor ( TuioCursor c ) : void
c TUIO.TuioCursor
Результат void

addTuioObject() публичный Метод

public addTuioObject ( TuioObject obj ) : void
obj TUIO.TuioObject
Результат void

refresh() публичный Метод

public refresh ( long timeStampAsLong ) : void
timeStampAsLong long
Результат void

removeTuioCursor() публичный Метод

public removeTuioCursor ( TuioCursor c ) : void
c TUIO.TuioCursor
Результат void

removeTuioObject() публичный Метод

public removeTuioObject ( TuioObject obj ) : void
obj TUIO.TuioObject
Результат void

updateTuioCursor() публичный Метод

public updateTuioCursor ( TuioCursor c ) : void
c TUIO.TuioCursor
Результат void

updateTuioObject() публичный Метод

public updateTuioObject ( TuioObject obj ) : void
obj TUIO.TuioObject
Результат void