-
Notifications
You must be signed in to change notification settings - Fork 0
/
dgcapp.h
81 lines (61 loc) · 1.55 KB
/
dgcapp.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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
/*
* File: dgcapp.h
* Author: Leo
*
* Created on 8 de marzo de 2012, 12:11
*/
#ifndef _DGCAPP_H
#define _DGCAPP_H
#include <QDialog>
#include <QColorDialog>
#include "ui_dgcUi.h"
#include "iObj.h"
#include "Canvas.h"
#include "Layer.h"
#include <map>
#include <vector>
using namespace std;
class Layer;
class iObj;
class dgcapp : public QDialog
{
Q_OBJECT
public:
dgcapp();
virtual ~dgcapp();
iObj * CreateObj( int );
void RegisterObj( iObj * );
public slots:
Canvas * getCanvas( int );
int getCurrentTransform( void );
int getCurrentLayer( void );
int getCurrentShading( void );
bool isBorderSelected( void );
void Draw( void );
void erase ( void );
void deleteLayer( int );
void resetRev( void );
int getRevNumP( void );
float getRevIX( int );
float getRevIY( int );
void setRevPoint( float, float, float, float );
void revEraseLine( void );
int getIntensity( void );
int getLightX( void );
int getLightY( void );
int getLightZ( void );
int getNMerid( void );
QColor getRefColor( void );
private slots:
void ToggleLayer( QListWidgetItem * item );
void SetColor( void );
void SetRefColor( void );
private:
Canvas * LAir, * LPersp, * LFront, * LLat;
Ui::DgcUi widget;
map < int, iObj * > regObj; // registered Objects
vector < Layer * > ScreenLayers; // Objects in Canvas
struct rev drawing; // revolution object
QColor C; // Reflection Color
};
#endif /* _DGCAPP_H */