1 
2 #ifndef _DummyObjectChunk_hpp
3 #define _DummyObjectChunk_hpp 1
4 
5 #include "chunk.hpp"
6 #include "list_tem.hpp"
7 #include "chnktype.hpp"
8 
9 class Dummy_Object_Data_Chunk;
10 
11 class Dummy_Object_Chunk : public Chunk_With_Children
12 {
13 public:
14 
15 	Dummy_Object_Chunk(Chunk_With_Children* parent,const char* _name ,ChunkVectorInt& _location,ChunkVectorInt& min ,ChunkVectorInt& max ,ChunkQuat& orient);
16 
17 	// constructor from buffer
18 	Dummy_Object_Chunk (Chunk_With_Children * const parent,const char *, size_t const);
19 
20 	Dummy_Object_Data_Chunk * get_data_chunk();//gets data chunk (name and location)
21 
22 	const char* get_text(); //get text attached to a dummy object
23 	void set_text(const char* text); //change the text attached to a dummy object
24 
25 };
26 
27 //chunk containing  name and location of dummy object
28 class  Dummy_Object_Data_Chunk : public Chunk
29 {
30 public :
31 	Dummy_Object_Data_Chunk(Dummy_Object_Chunk* parent,const char* _name ,ChunkVectorInt& _location,ChunkVectorInt& min ,ChunkVectorInt& max ,ChunkQuat& orient);
32 	Dummy_Object_Data_Chunk (Chunk_With_Children * parent, const char * data, size_t );
33 	~Dummy_Object_Data_Chunk();
34 
35 
36 /*------------------------**
37 ** Main dummy object data **
38 **------------------------*/
39 	char* name;
40 
41 	ChunkVectorInt location;
42 	ChunkQuat orientation;
43 
44 	ChunkVectorInt min_extents;
45 	ChunkVectorInt max_extents;
46 /*------------------------**
47 ** Main dummy object data **
48 **------------------------*/
49 
50 	size_t size_chunk();
51 	void fill_data_block (char * data);
52 
53 private :
54 
55 	friend class Dummy_Object_Chunk;
56 
57 };
58 
59 
60 //contains the 'user text' from 3dsmax
61 class Dummy_Object_Text_Chunk : public Chunk
62 {
63 public :
64 	Dummy_Object_Text_Chunk(Dummy_Object_Chunk* parent,const char* _text);
65 	Dummy_Object_Text_Chunk(Chunk_With_Children * parent, const char * data, size_t );
66 	~Dummy_Object_Text_Chunk();
67 
68 	size_t size_chunk();
69 	void fill_data_block (char * data);
70 
71 
get_text()72 	const char* get_text() {return text;}
73 	void set_text(const char* _text);
74 
75 private :
76 	char* text;
77 
78 };
79 
80 
81 #endif
82