-
Notifications
You must be signed in to change notification settings - Fork 0
/
uPrincipal.h
102 lines (96 loc) · 3.73 KB
/
uPrincipal.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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
//---------------------------------------------------------------------------
#ifndef uPrincipalH
#define uPrincipalH
//---------------------------------------------------------------------------
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
#include <ExtCtrls.hpp>
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <windows.h>
//---------------------------------------------------------------------------
class TTFormPrincipal : public TForm
{
__published: // IDE-managed Components
TPanel *Panel1;
TImage *Image1;
TLabel *Label1;
TLabel *Label2;
TListBox *lbPontos;
TButton *btNovo;
TListBox *lbPoligonos;
TEdit *edX;
TEdit *edY;
TLabel *Label3;
TLabel *Label4;
TButton *btTranslacao;
TButton *btRotaciona;
TEdit *etGraus;
TLabel *Label5;
TButton *btFlexionaX;
TButton *btEscalona;
TRadioGroup *rgTipoDesenho;
TButton *btCima;
TButton *btBaixo;
TButton *btDireita;
TButton *btEsquerda;
TButton *btZoomIn;
TButton *btZoomOut;
TRadioGroup *rgTipoTransformacao;
TEdit *etRaio;
TButton *btCircunferencia;
TLabel *Label6;
TButton *btCurva;
TRadioGroup *rgTipoCurva;
TButton *btFlexionaY;
TButton *btClipping;
TButton *bt3D;
TRadioGroup *rgTipoPoligono3D;
TButton *btRotaciona3D;
TRadioGroup *rgTipoEixo;
TButton *btEscalona3D;
TButton *btTranslada3D;
TEdit *edZ;
TLabel *Label7;
void __fastcall Image1MouseMove(TObject *Sender, TShiftState Shift,
int X, int Y);
void __fastcall Image1MouseDown(TObject *Sender,
TMouseButton Button, TShiftState Shift, int X, int Y);
void __fastcall bt3DClick(TObject *Sender);
void __fastcall btNovoClick(TObject *Sender);
void __fastcall lbPoligonosClick(TObject *Sender);
void __fastcall btTranslacaoClick(TObject *Sender);
void __fastcall btRotacionaClick(TObject *Sender);
void __fastcall btFlexionaXClick(TObject *Sender);
void __fastcall btEscalonaClick(TObject *Sender);
void __fastcall rgTipoDesenhoClick(TObject *Sender);
void __fastcall btCimaClick(TObject *Sender);
void __fastcall btBaixoClick(TObject *Sender);
void __fastcall btDireitaClick(TObject *Sender);
void __fastcall btEsquerdaClick(TObject *Sender);
void __fastcall btZoomInClick(TObject *Sender);
void __fastcall btZoomOutClick(TObject *Sender);
void __fastcall rgTipoTransformacaoClick(TObject *Sender);
void __fastcall btCircunferenciaClick(TObject *Sender);
void __fastcall btCurvaClick(TObject *Sender);
void __fastcall rgTipoCurvaClick(TObject *Sender);
void __fastcall btFlexionaYClick(TObject *Sender);
void __fastcall btClippingClick(TObject *Sender);
void __fastcall rgTipoPoligono3DClick(TObject *Sender);
void __fastcall btRotaciona3DClick(TObject *Sender);
void __fastcall rgTipoEixoClick(TObject *Sender);
void __fastcall btEscalona3DClick(TObject *Sender);
void __fastcall btTranslada3DClick(TObject *Sender);
private: // User declarations
public: // User declarations
__fastcall TTFormPrincipal(TComponent* Owner);
double xvp2mundo(int x, Janela mundo, Janela vp);
double yvp2mundo (int y, Janela mundo, Janela vp);
};
//---------------------------------------------------------------------------
extern PACKAGE TTFormPrincipal *TFormPrincipal;
//---------------------------------------------------------------------------
#endif