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
파일 보기 프로젝트 열기: nuigroup/grafiti 1 사용 예제들

공개 메소드들

메소드 설명
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