forked from sadmb/ofxKinectNui
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathofxKinectNuiDrawInterface.h
43 lines (38 loc) · 1.28 KB
/
ofxKinectNuiDrawInterface.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
/******************************************************************/
/**
* @file ofxKinectNuiDrawInterface.h
* @brief draw interface (for ofxKinectNui)
* @note
* @todo
* @bug
*
* @author nariakiiwatani
* @date Apl. 28, 2012
*/
/******************************************************************/
#ifndef OFX_KINECT_NUI_DRAW_INTERFACE_H
#define OFX_KINECT_NUI_DRAW_INTERFACE_H
#include "ofPixels.h"
#include "ofRectangle.h"
#include "ofPoint.h"
//////////////////////////////////////////////////////
// class declarations //
//////////////////////////////////////////////////////
class IDrawPixels {
public:
virtual void setDrawArea(const ofRectangle & r){}
virtual void setDrawArea(const ofPoint & p, float w, float h){}
virtual void setDrawArea(float x, float y, float w, float h){}
virtual void setDrawArea(float x, float y, float z, float w, float h){}
virtual void setDrawArea(const ofPoint & p){}
virtual void setDrawArea(float x, float y){}
virtual void setDrawArea(float x, float y, float z){}
virtual void setDrawArea(const ofPoint& p1, const ofPoint& p2, const ofPoint& p3, const ofPoint& p4){}
virtual void setSource(ofPixels& src)=0;
virtual void draw()=0;
};
class IDrawPoints {
public:
virtual void draw(ofPoint* src)=0;
};
#endif // OFX_KINECT_NUI_DRAW_INTERFACE_H