-
Notifications
You must be signed in to change notification settings - Fork 0
/
Object.h
67 lines (48 loc) · 1.24 KB
/
Object.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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
//
//
// @ Project : DgcApp
// @ File Name : Object.h
// @ Date : 15/03/2012
// @ Author : Leonardo Lanchas
//
//
#if !defined(_OBJECT_H)
#define _OBJECT_H
#include "iObj.h"
#include "Face.h"
#include "Edge.h"
#include <QString>
#include <vector>
#include <cmath>
using namespace std;
class Object : public iObj
{
public:
Object();
~Object();
virtual void createFaces( void ) = 0;
virtual void createEdges( void ) = 0;
void addVertex( punto3d * );
void setName( QString );
QString getName( void );
int getNumFaces();
vector < Edge * > * getEdges();
void createSelfAxis( int );
void Escalation( double sx, double sy, double sz );
void Translation( double tx, double ty, double tz );
void RotationX( double ang );
void RotationY( double ang );
void RotationZ( double ang );
void selfRotation( double );
void FacePoints( int, punto3d *, punto3d *, punto3d * );
Face * getNFace( int );
protected:
void computeTransformation( double T[ 4 ][ 4 ] );
QString Name;
vector < Face * > Faces;
vector < Edge * > Edges;
vector < punto3d * > Vertices;
float ** zBuffer;
int NFaces, NEdges, NVertices;
};
#endif //_OBJECT_H