C# Class Grafiti.GroupGRManager

Show file Open project: nuigroup/grafiti Class Usage Examples

Private Properties

Property Type Description
AddLocalTarget void
AddUnarmedGR void
AppendGRs IEnumerable
ClearAllArmed void
ClearAllUnarmed void
ClearNonNegativePNArmedBut void
FindAllLGRsWithDifferentTarget IEnumerable
FindAllOtherEquivalentLGRs IEnumerable
GroupGRManager System
InitializeGGRs void
InitializeLGRs void
Process bool
RemoveArmedGR void
RemoveLocalTarget void
RemoveUnarmedGR void
ResetExclusiveLocalTarget void
SortUnarmedLGRs void
Terminate void
Unsubscribe void
UpdateGGR bool
UpdateGGRHandlers void

Private Methods

Method Description
AddLocalTarget ( IGestureListener localTarget ) : void
AddUnarmedGR ( GestureRecognizer gr ) : void
AppendGRs ( List ggrs, List lgrs, bool firstGlobal ) : IEnumerable
ClearAllArmed ( ) : void
ClearAllUnarmed ( ) : void
ClearNonNegativePNArmedBut ( GestureRecognizer ex ) : void
FindAllLGRsWithDifferentTarget ( IGestureListener target ) : IEnumerable
FindAllOtherEquivalentLGRs ( LocalGestureRecognizer lgr ) : IEnumerable
GroupGRManager ( Group group ) : System
InitializeGGRs ( List ggrInfos ) : void

Called by GRRegistry. Accordingly to ggrInfos, updates the GGRs already present by registering new handlers, or creates new instances with handlers.

InitializeLGRs ( IGestureListener localTarget ) : void
Process ( List traces, bool groupIsActive ) : bool

Coordinately process the active GRs with the modified traces. If the group is being terminated then the GRs are not processed, but instead they're iterated in the same order they were during the last call: succeding GRs that were waiting for higher priority GRs are armed until an exclusive is found.

RemoveArmedGR ( GestureRecognizer gr ) : void
RemoveLocalTarget ( IGestureListener localTarget ) : void
RemoveUnarmedGR ( ToRemoveGR toRemoveGR ) : void
ResetExclusiveLocalTarget ( ) : void
SortUnarmedLGRs ( ) : void

Sort unarmed LGRs by (increasing) distance from the group's centroid to their target

Terminate ( ) : void
Unsubscribe ( ) : void
UpdateGGR ( GestureEventRegistry ggrInfo ) : bool
UpdateGGRHandlers ( bool initial, bool final, bool entering, bool current, bool leaving, bool intersect, bool union, bool newClosestEnt, bool newClosestCur, bool newClosestLvn, bool newClosestIni, bool newClosestFin ) : void