source: trunk/MagicSoft/Mars/mtemp/mifae/library/MDisplay.h@ 4308

Last change on this file since 4308 was 4139, checked in by rico, 20 years ago
*** empty log message ***
File size: 1.6 KB
Line 
1#ifndef MARS_MDisplay
2#define MARS_MDisplay
3
4#ifndef MARS_MTask
5#include "MTask.h"
6#endif
7
8class MHCamera;
9class MCamEvent;
10class MGeomCam;
11class TCanvas;
12class TPostScript;
13
14class 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.