public class KinectRecordingExample extends KeyAdapter implements VideoDisplayListener<MBFImage>
Constructor and Description |
---|
KinectRecordingExample()
Default constructor
|
Modifier and Type | Method and Description |
---|---|
void |
afterUpdate(VideoDisplay<MBFImage> display)
Called when the video display is updated and the next frame
is displayed
|
void |
beforeUpdate(MBFImage frame)
Called when the video is about to update
|
void |
keyPressed(KeyEvent arg0) |
static void |
main(String[] args)
Main method
|
keyReleased, keyTyped
public KinectRecordingExample() throws KinectException
KinectException
- if there is a problem with the Kinect hardwarepublic void keyPressed(KeyEvent arg0)
keyPressed
in interface KeyListener
keyPressed
in class KeyAdapter
public void afterUpdate(VideoDisplay<MBFImage> display)
VideoDisplayListener
afterUpdate
in interface VideoDisplayListener<MBFImage>
display
- the video displaypublic void beforeUpdate(MBFImage frame)
VideoDisplayListener
beforeUpdate
in interface VideoDisplayListener<MBFImage>
frame
- the frame about to be displayedpublic static void main(String[] args) throws KinectException
args
- ignoredKinectException
- if there is a problem with the Kinect hardware