-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathObserver.h
More file actions
56 lines (43 loc) · 852 Bytes
/
Copy pathObserver.h
File metadata and controls
56 lines (43 loc) · 852 Bytes
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
44
45
46
47
48
49
50
51
52
53
54
55
56
#ifndef _INCLUDED_OBSERVER_H
#define _INCLUDED_OBSERVER_H
class Object3D;
class CCarTree;
enum t_Observer { t_Point, t_Vertex, t_Polygon, t_Camera, t_DataVal, t_TextureCmd,t_Scale ,t_JamFile};
enum t_ParentType { t_Car, t_Helmet };
class Observer: public CObject
{
public:
t_Observer type;
t_ParentType parent;
Observer(t_Observer type):
type(type)
{
changed=FALSE;
object = NULL;
type = type;
}
virtual ~Observer()
{}
virtual void Open(CCarTree *tree);
virtual void Select(CCarTree *tree);
Object3D * getObject()
{
return object;
}
void setChanged()
{
changed = TRUE;
}
BOOL isChanged()
{
return changed;
}
Object3D *object;
CDocument *pDoc;
CDocument *getDocument()
{
return pDoc;
}
BOOL changed;
};
#endif