C# Class SkeletalTracking.BallModels

显示文件 Open project: ardakara/Kinect-Gesture-Controller Class Usage Examples

Public Methods

Method Description
BallModels ( MainWindow window ) : System
addBallModelsListener ( BallModelsListener listener ) : void
animateBalls ( ) : void
clear ( ) : void
createBall ( double x, double y, double r ) : BallModel
createBall ( double x, double y, double r, double angle, double velocity ) : BallModel
fireBallModelAdded ( BallModel ball ) : void
fireBallModelRemoved ( BallModel ball ) : void
generateNextId ( ) : int
getBall ( int id ) : BallModel
removeBall ( BallModel ball ) : System.Boolean
removeBall ( int id ) : System.Boolean
removeBallModelsListener ( BallModelsListener listener ) : void
removeIntersectingBalls ( Target>.Dictionary targets, ProcessTargetIntersectedDelegate processIntersectedTarget ) : void
removeOutOfBoundsBalls ( ) : void

Private Methods

Method Description
ballIntersectsTarget ( BallModel ball, Target target ) : System.Boolean
isInBounds ( BallModel ball ) : System.Boolean

Method Details

BallModels() public method

public BallModels ( MainWindow window ) : System
window MainWindow
return System

addBallModelsListener() public method

public addBallModelsListener ( BallModelsListener listener ) : void
listener BallModelsListener
return void

animateBalls() public method

public animateBalls ( ) : void
return void

clear() public method

public clear ( ) : void
return void

createBall() public method

public createBall ( double x, double y, double r ) : BallModel
x double
y double
r double
return BallModel

createBall() public method

public createBall ( double x, double y, double r, double angle, double velocity ) : BallModel
x double
y double
r double
angle double
velocity double
return BallModel

fireBallModelAdded() public method

public fireBallModelAdded ( BallModel ball ) : void
ball BallModel
return void

fireBallModelRemoved() public method

public fireBallModelRemoved ( BallModel ball ) : void
ball BallModel
return void

generateNextId() public method

public generateNextId ( ) : int
return int

getBall() public method

public getBall ( int id ) : BallModel
id int
return BallModel

removeBall() public method

public removeBall ( BallModel ball ) : System.Boolean
ball BallModel
return System.Boolean

removeBall() public method

public removeBall ( int id ) : System.Boolean
id int
return System.Boolean

removeBallModelsListener() public method

public removeBallModelsListener ( BallModelsListener listener ) : void
listener BallModelsListener
return void

removeIntersectingBalls() public method

public removeIntersectingBalls ( Target>.Dictionary targets, ProcessTargetIntersectedDelegate processIntersectedTarget ) : void
targets Target>.Dictionary
processIntersectedTarget ProcessTargetIntersectedDelegate
return void

removeOutOfBoundsBalls() public method

public removeOutOfBoundsBalls ( ) : void
return void