Main Page Alphabetical List Compound List File List Compound Members Related Pages

# MDIFirstHit.h

    00001
    00016 //---------------------------------------------------------------------------
    00017
    00018 #ifndef MDIFirstHitH
    00019 #define MDIFirstHitH
    00020 //---------------------------------------------------------------------------
    00021 #include "MDIEdit.h"
    00022 #include <Classes.hpp>
    00023 #include <Controls.hpp>
    00024 #include <StdCtrls.hpp>
    00025 #include <Forms.hpp>
    00026 #include <ComCtrls.hpp>
    00027 #include <Menus.hpp>
    00028 #include <Dialogs.hpp>
    00029 #include <Printers.hpp>
    00030 #include <Clipbrd.hpp>
    00031 #include <ExtCtrls.hpp>
    00032 #include <ActnCtrls.hpp>
    00033 #include <ActnMan.hpp>
    00034 #include <CustomizeDlg.hpp>
    00035 #include <ToolWin.hpp>
    00036 #include <stdlib.h>
    00037 #include <gl\gl.h>
    00038 #include <gl\glu.h>
    00039 //---------------------------------------------------------------------------
    00040 class TFirstHitForm : public TForm
    00041 {
    00042 __published:    // IDE-managed Components
    00043         TPanel *Hauptpanel;
    00044         TBevel *Bevel;
    00045         TPanel *tPanel;
    00046         TTrackBar *TrackBar;
    00047         TGroupBox *GroupBox2;
    00048         TLabel *Label1;
    00049         TLabel *threshhold;
    00050         TBevel *Bevel1;
    00051         TLabel *Label4;
    00052         TEdit *txrot;
    00053         TEdit *tyrot;
    00054         TEdit *tzrot;
    00055         TGroupBox *GroupBox1;
    00056         TBevel *Bevel2;
    00057         TLabel *detail;
    00058         TBevel *Bevel3;
    00059         TCheckBox *trilinear;
    00060         TCheckBox *trilinear2;
    00061         TTrackBar *DetTrackBar;
    00062         TCheckBox *adapt;
    00063         TCheckBox *highlights;
    00064         TGroupBox *GroupBox;
    00065         TLabel *Label2;
    00066         TLabel *textx;
    00067         TLabel *texty;
    00068         TBevel *Bevel4;
    00069         TCheckBox *autores;
    00070         TTrackBar *ResTrackBar;
    00071         TCheckBox *arepaint;
    00072         void __fastcall FormClose(TObject *Sender, TCloseAction &Action);
    00073         void __fastcall FormCreate(TObject *Sender);
    00074         void __fastcall FormResize(TObject *Sender);
    00075         void __fastcall FormPaint(TObject *Sender);
    00076         void __fastcall FormActivate(TObject *Sender);
    00077         void __fastcall TrackBarChange(TObject *Sender);
    00078         void __fastcall FormMouseDown(TObject *Sender, TMouseButton Button,
    00079           TShiftState Shift, int X, int Y);
    00080         void __fastcall FormMouseUp(TObject *Sender, TMouseButton Button,
    00081           TShiftState Shift, int X, int Y);
    00082         void __fastcall FormMouseMove(TObject *Sender, TShiftState Shift,
    00083           int X, int Y);
    00084         void __fastcall autoresClick(TObject *Sender);
    00085         void __fastcall adaptClick(TObject *Sender);
    00086         void __fastcall ResTrackBarChange(TObject *Sender);
    00087         void __fastcall DetTrackBarChange(TObject *Sender);
    00088         void __fastcall trilinearClick(TObject *Sender);
    00089         void __fastcall trilinear2Click(TObject *Sender);
    00090 private:        // User declarations
    00091     HDC hdc;
    00092     HGLRC hrc;
    00093     int PixelFormat, xres,yres, thresh;
    00094     float w, h, wh;
    00095     vertex o, dx,dy,dz, ppos, pos;
    00096     float xratio, yratio;
    00097     int ox,oy, mrotx, mroty;
    00103     void __fastcall PaintGL();
    00109     void __fastcall PrepareGLWindow();
    00115     void __fastcall RayCast();
    00116 public:         // User declarations
    00117         __fastcall TFirstHitForm(TComponent* Owner);
    00118     void __fastcall SetPixelFormatDescriptor();
    00119 };
    00120 //---------------------------------------------------------------------------
    00121 extern PACKAGE TFirstHitForm *FirstHitForm;
    00122 //---------------------------------------------------------------------------
    00123 #endif