|
Last change
on this file since 19217 was 18627, checked in by tbretz, 9 years ago |
|
Disentengle from root and Mars were possible, clean up of gui from all obsolete stuff
|
|
File size:
2.0 KB
|
| Line | |
|---|
| 1 | #ifndef COSY_MStarguider
|
|---|
| 2 | #define COSY_MStarguider
|
|---|
| 3 |
|
|---|
| 4 | #include "PixClient.h"
|
|---|
| 5 | #include "MGImage.h"
|
|---|
| 6 | #include "Led.h"
|
|---|
| 7 | #include "Camera.h"
|
|---|
| 8 |
|
|---|
| 9 | #include "dic.hxx"
|
|---|
| 10 | #include "dis.hxx"
|
|---|
| 11 |
|
|---|
| 12 | #include <TGButton.h>
|
|---|
| 13 |
|
|---|
| 14 | class TGMenuBar;
|
|---|
| 15 | class TGPopupMenu;
|
|---|
| 16 | class TGTextEntry;
|
|---|
| 17 |
|
|---|
| 18 | class PixGetter;
|
|---|
| 19 |
|
|---|
| 20 | class MGImage;
|
|---|
| 21 | class MCaos;
|
|---|
| 22 | class FilterLed;
|
|---|
| 23 | class Ring;
|
|---|
| 24 |
|
|---|
| 25 | //class Leds;
|
|---|
| 26 | class MStarguider : public PixClient, public TGMainFrame, public DimCommandHandler
|
|---|
| 27 | {
|
|---|
| 28 | private:
|
|---|
| 29 | DimService fDimData;
|
|---|
| 30 | DimCommand fDimTPoint;
|
|---|
| 31 | DimCommand fDimScreenshot;
|
|---|
| 32 |
|
|---|
| 33 | Camera *fGetter;
|
|---|
| 34 |
|
|---|
| 35 | TGMenuBar *fMenu;
|
|---|
| 36 | MGImage *fImage;
|
|---|
| 37 |
|
|---|
| 38 | TGPopupMenu *fDisplay;
|
|---|
| 39 | TGPopupMenu *fSetup;
|
|---|
| 40 | TGPopupMenu *fInterpol;
|
|---|
| 41 |
|
|---|
| 42 | TGPopupMenu *fCaosWrite;
|
|---|
| 43 | TGPopupMenu *fCaosPrint;
|
|---|
| 44 | TGPopupMenu *fCaosAnalyse;
|
|---|
| 45 | TGPopupMenu *fCaOs;
|
|---|
| 46 |
|
|---|
| 47 | private:
|
|---|
| 48 | MCaos *fCaos;
|
|---|
| 49 | TTimer *fTimer;
|
|---|
| 50 |
|
|---|
| 51 | Int_t fDx;
|
|---|
| 52 | Int_t fDy;
|
|---|
| 53 |
|
|---|
| 54 | byte fIntRate;
|
|---|
| 55 | // int fWrtRate;
|
|---|
| 56 |
|
|---|
| 57 | Double_t fLastBright;
|
|---|
| 58 | Double_t fRadius; // LED radius [cm]
|
|---|
| 59 |
|
|---|
| 60 | Float_t fFindStarCut;
|
|---|
| 61 | Int_t fFindStarBox;
|
|---|
| 62 |
|
|---|
| 63 | int fTPointMode;
|
|---|
| 64 |
|
|---|
| 65 | bool fScreenshotColor;
|
|---|
| 66 | std::string fScreenshotName;
|
|---|
| 67 |
|
|---|
| 68 | void WritePNG(const char *name, const byte *gbuf, const byte *cbuf);
|
|---|
| 69 |
|
|---|
| 70 | void Toggle(TGPopupMenu *p, UInt_t id);
|
|---|
| 71 | void SwitchOff(TGPopupMenu *p, UInt_t id);
|
|---|
| 72 | bool Interpolate(const unsigned long n, byte *img) const;
|
|---|
| 73 |
|
|---|
| 74 | void InitGui(Int_t channel);
|
|---|
| 75 |
|
|---|
| 76 | //void DrawZoomImage(const byte *img);
|
|---|
| 77 | //void DrawCosyImage(const byte *img);
|
|---|
| 78 |
|
|---|
| 79 | Bool_t HandleTimer(TTimer *t);
|
|---|
| 80 |
|
|---|
| 81 | void SetCut(Double_t cut);
|
|---|
| 82 |
|
|---|
| 83 | public:
|
|---|
| 84 | MStarguider(Int_t channel);
|
|---|
| 85 | virtual ~MStarguider();
|
|---|
| 86 |
|
|---|
| 87 | //void SetupEnv(TEnv &env);
|
|---|
| 88 |
|
|---|
| 89 | void Layout();
|
|---|
| 90 | void CloseWindow();
|
|---|
| 91 |
|
|---|
| 92 | Bool_t ProcessMessage(Long_t msg, Long_t parm1, Long_t parm2);
|
|---|
| 93 |
|
|---|
| 94 | //Bool_t HandleDoubleClick(Event_t *event);
|
|---|
| 95 |
|
|---|
| 96 | //
|
|---|
| 97 | // Execution of one frame - this function may be overloaded!
|
|---|
| 98 | //
|
|---|
| 99 | void ProcessFrame(const unsigned long n, byte *img, struct timeval *tm);
|
|---|
| 100 |
|
|---|
| 101 | void commandHandler(); /// Overwritten DimCommand::commandHandler
|
|---|
| 102 | };
|
|---|
| 103 |
|
|---|
| 104 | #endif
|
|---|
| 105 |
|
|---|
| 106 |
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.