Source

kinect-viewer / KVSpaceModel.h

Cliff Biffle 52b0d57 
























/*
 * Copyright 2010 Cliff L. Biffle.  All Rights Reserved.
 * Use of this source code is governed by the Apache License 2.0,
 * which can be found in the LICENSE file.
 */

#import <Cocoa/Cocoa.h>

// Transforms raw camera depth and color information into a model
// of the scene, and translates that model into something visible
// through OpenGL.
@protocol KVSpaceModel <NSObject>

// Most recent frame of depth samples, in the format generated by
// KVDataSource.  Note that the setter will either make an internal
// copy of this or simply use it to update an internal model.
- (void) setDepthSamples: (NSData *) depthSamples;

// Most recent frame of depth samples, in the format generated by
// KVDataSource.  Note that the setter will either make an internal
// copy of this or simply use it to update an internal model.
- (void) setColorSamples: (NSData *) colorSamples;

- (void) drawInCurrentOpenGLContextWithOptions: (NSDictionary *) options;

@end