1 |
bearsoft |
1.1 |
#ifndef __Object3dData_H__
|
2 |
|
|
#define __Object3dData_H__
|
3 |
|
|
|
4 |
|
|
class Object3dData
|
5 |
|
|
{
|
6 |
|
|
|
7 |
|
|
public:
|
8 |
|
|
|
9 |
|
|
Object3dData();
|
10 |
|
|
~Object3dData();
|
11 |
|
|
|
12 |
|
|
public:
|
13 |
|
|
|
14 |
|
|
int getlightobject();
|
15 |
|
|
|
16 |
|
|
float getx(int steg);
|
17 |
|
|
float gety(int steg);
|
18 |
|
|
float getz(int steg);
|
19 |
|
|
|
20 |
|
|
void setx(float ix, int steg);
|
21 |
|
|
void sety(float iy, int steg);
|
22 |
|
|
void setz(float iz, int steg);
|
23 |
|
|
|
24 |
|
|
float getix(int steg);
|
25 |
|
|
float getiy(int steg);
|
26 |
|
|
float getiz(int steg);
|
27 |
|
|
|
28 |
|
|
void setix(float iix, int steg);
|
29 |
|
|
void setiy(float iiy, int steg);
|
30 |
|
|
void setiz(float iiz, int steg);
|
31 |
|
|
|
32 |
|
|
void setvx(float ivx, int steg);
|
33 |
|
|
float getvx(int steg);
|
34 |
|
|
|
35 |
|
|
void setvy(float ivy, int steg);
|
36 |
|
|
float getvy(int steg);
|
37 |
|
|
|
38 |
|
|
void setvz(float ivz, int steg);
|
39 |
|
|
float getvz(int steg);
|
40 |
|
|
|
41 |
|
|
void setvnx(float ivnx, int steg);
|
42 |
|
|
float getvnx(int steg);
|
43 |
|
|
|
44 |
|
|
void setvny(float ivny, int steg);
|
45 |
|
|
float getvny(int steg);
|
46 |
|
|
|
47 |
|
|
void setvnz(float ivnz, int steg);
|
48 |
|
|
float getvnz(int steg);
|
49 |
|
|
|
50 |
|
|
void setpoints(int ipoints, int steg);
|
51 |
|
|
int getpoints(int steg);
|
52 |
|
|
|
53 |
|
|
void settpoints(int itpoints, int steg);
|
54 |
|
|
int gettpoints(int steg);
|
55 |
|
|
|
56 |
|
|
void setvu(float ivu, int steg);
|
57 |
|
|
float getvu(int steg);
|
58 |
|
|
|
59 |
|
|
void setvv(float ivv, int steg);
|
60 |
|
|
float getvv(int steg);
|
61 |
|
|
|
62 |
|
|
void settexturep(int itexturep, int steg);
|
63 |
|
|
int gettexturep(int steg);
|
64 |
|
|
|
65 |
|
|
void setgouraud(float igouraud, int steg);
|
66 |
|
|
float getgouraud(int steg);
|
67 |
|
|
|
68 |
|
|
void setnumberofpolys(int inumberofpolys);
|
69 |
|
|
int getnumberofpolys();
|
70 |
|
|
|
71 |
|
|
void setnumberofvertices(int inumberofvertices);
|
72 |
|
|
int getnumberofvertices();
|
73 |
|
|
|
74 |
|
|
void setnumberofpoints(int inumberofpoints);
|
75 |
|
|
int getnumberofpoints();
|
76 |
|
|
|
77 |
|
|
void setvisible(int ivisible);
|
78 |
|
|
int getvisible();
|
79 |
|
|
|
80 |
|
|
void settransparent(float itransparent, int steg);
|
81 |
|
|
float gettransparent(int steg);
|
82 |
|
|
void setcolour(int icolour, int steg);
|
83 |
|
|
int getcolour(int steg);
|
84 |
|
|
|
85 |
|
|
void setvisiblypolys(int ivisiblypolys, int step);
|
86 |
|
|
int getvisiblypolys(int step);
|
87 |
|
|
|
88 |
|
|
void setvisiblyvertices(int ivisiblyvertices, int step);
|
89 |
|
|
int getvisiblyvertices(int step);
|
90 |
|
|
|
91 |
|
|
protected:
|
92 |
|
|
|
93 |
|
|
int numberofvertices;
|
94 |
|
|
int numberofpolys;
|
95 |
|
|
int numberofpoints;
|
96 |
|
|
|
97 |
|
|
float xcentrum;
|
98 |
|
|
float ycentrum;
|
99 |
|
|
float zcentrum;
|
100 |
|
|
|
101 |
|
|
float *x;
|
102 |
|
|
float *y;
|
103 |
|
|
float *z;
|
104 |
|
|
|
105 |
|
|
float *ix;
|
106 |
|
|
float *iy;
|
107 |
|
|
float *iz;
|
108 |
|
|
|
109 |
|
|
float *vu;
|
110 |
|
|
float *vv;
|
111 |
|
|
|
112 |
|
|
int visible;
|
113 |
|
|
|
114 |
|
|
int *texturep;
|
115 |
|
|
|
116 |
|
|
float *vx;
|
117 |
|
|
float *vy;
|
118 |
|
|
float *vz;
|
119 |
|
|
|
120 |
|
|
float *vnx;
|
121 |
|
|
float *vny;
|
122 |
|
|
float *vnz;
|
123 |
|
|
|
124 |
|
|
int *points;
|
125 |
|
|
int *tpoints;
|
126 |
|
|
float *gouraud;
|
127 |
|
|
|
128 |
|
|
int lightobject;
|
129 |
|
|
|
130 |
|
|
float *transparent;
|
131 |
|
|
int *colour;
|
132 |
|
|
|
133 |
|
|
int *visiblypolys;
|
134 |
|
|
int *visiblyvertices;
|
135 |
|
|
|
136 |
|
|
private:
|
137 |
|
|
};
|
138 |
|
|
|
139 |
|
|
#endif
|
140 |
|
|
|