Line | |
---|
1 | #ifndef MARS_MDisplay
|
---|
2 | #define MARS_MDisplay
|
---|
3 |
|
---|
4 | #ifndef MARS_MTask
|
---|
5 | #include "MTask.h"
|
---|
6 | #endif
|
---|
7 |
|
---|
8 | class MHCamera;
|
---|
9 | class MCamEvent;
|
---|
10 | class MGeomCam;
|
---|
11 | class TCanvas;
|
---|
12 | class TPostScript;
|
---|
13 |
|
---|
14 | class MDisplay : public MTask
|
---|
15 | {
|
---|
16 | private:
|
---|
17 | MHCamera* fDisplay; // pointer to the camera display
|
---|
18 | MGeomCam* fGeomCam; // pointer to the camera geometry
|
---|
19 | MCamEvent* fCamEvent; // pointer to camera event
|
---|
20 | TCanvas* fCanvas; // pointer to the canvas
|
---|
21 | TPostScript* fPSFile; // pointer to ps file
|
---|
22 | TString fPSFileName; // name for ps file
|
---|
23 | Int_t fDisplayType; // display type (see MHCamera)
|
---|
24 | Bool_t fCreatePSFile; // flag to produce a ps file with events
|
---|
25 | Bool_t fPause; // flag to pause execution between events
|
---|
26 |
|
---|
27 |
|
---|
28 | virtual Int_t PostProcess();
|
---|
29 |
|
---|
30 | protected:
|
---|
31 | virtual Int_t PreProcess(MParList *plist);
|
---|
32 | virtual Int_t Process();
|
---|
33 |
|
---|
34 | public:
|
---|
35 | MDisplay(MCamEvent* event, MGeomCam* geom, Int_t type=0, const char* name=NULL, const char* title=NULL);
|
---|
36 | virtual ~MDisplay();
|
---|
37 |
|
---|
38 | virtual void Paint(Option_t* option) {};
|
---|
39 |
|
---|
40 | MGeomCam* GetGeomCam() {return fGeomCam;}
|
---|
41 | Bool_t GetPauseMode() {return fPause;}
|
---|
42 | Bool_t GetCreatePSFile() {return fCreatePSFile;}
|
---|
43 |
|
---|
44 | void SetDisplayType(Int_t type) {fDisplayType=type;}
|
---|
45 | void SetPSFile(Bool_t set=kTRUE) {fCreatePSFile=set;}
|
---|
46 | void SetPSFileName(TString name) {fPSFileName=name;}
|
---|
47 | void SetPause(Bool_t set=kTRUE) {fPause=set;}
|
---|
48 |
|
---|
49 | ClassDef(MDisplay, 0) // Task to display camera containers
|
---|
50 | };
|
---|
51 |
|
---|
52 | #endif
|
---|
53 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.