Line | |
---|
1 | #ifndef COSY_MGEmbeddedCanvas
|
---|
2 | #define COSY_MGEmbeddedCanvas
|
---|
3 |
|
---|
4 | #ifndef ROOT_TRootEmbeddedCanvas
|
---|
5 | #include <TRootEmbeddedCanvas.h>
|
---|
6 | #endif
|
---|
7 |
|
---|
8 | class TList;
|
---|
9 | class TCanvas;
|
---|
10 |
|
---|
11 | class MGEmbeddedCanvas : public TRootEmbeddedCanvas
|
---|
12 | {
|
---|
13 | private:
|
---|
14 | Bool_t fModified;
|
---|
15 |
|
---|
16 | protected:
|
---|
17 |
|
---|
18 | TCanvas *fCanvas;
|
---|
19 | TList *fList;
|
---|
20 |
|
---|
21 | UInt_t fWidth; // const: rootcint/TMemberInspector
|
---|
22 | Float_t fRange; // const: rootcint/TMemberInspector
|
---|
23 | Float_t fPix; // const: rootcint/TMemberInspector
|
---|
24 |
|
---|
25 | void InitCanvas();
|
---|
26 |
|
---|
27 | public:
|
---|
28 | MGEmbeddedCanvas(const char *name, const TGWindow* p,
|
---|
29 | UInt_t width, Double_t range);
|
---|
30 | ~MGEmbeddedCanvas();
|
---|
31 |
|
---|
32 | void Resize(TGDimension size);
|
---|
33 | void Resize(UInt_t w, UInt_t h);
|
---|
34 | void MoveResize(Int_t x, Int_t y, UInt_t w, UInt_t h);
|
---|
35 |
|
---|
36 | void UpdateCanvas();
|
---|
37 |
|
---|
38 | void SetModified() { fModified = kTRUE; }
|
---|
39 |
|
---|
40 | void SetNoContextMenu();
|
---|
41 |
|
---|
42 | ClassDef(MGEmbeddedCanvas, 0)
|
---|
43 | };
|
---|
44 |
|
---|
45 | #endif // MGSKYPOSITION_H
|
---|
Note:
See
TracBrowser
for help on using the repository browser.