Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

CanvasPage.h

Go to the documentation of this file.
00001 
00020 #ifndef CANVASPAGE_H
00021 #define CANVASPAGE_H
00022 
00023 #include "Midad/Base/PageABC.h"
00024 
00025 class TCanvas;
00026 class TGWindow;
00027 class CanvasPage : public PageABC
00028 {
00029 
00030 public:
00031 
00032     CanvasPage();
00033     ~CanvasPage();
00034 
00035     // If you override this (say, so GetCanvas() can be called in your
00036     // own Init()), you should explicitly call it in your Init().
00037     virtual TObject* Init(Mint* mint, PageDisplay* pd, GuiBox& box);
00038 
00039     // If you want default ROOT print manerisms, don't override this.
00040     virtual void Print();
00041 
00042 protected:
00043 
00044     // Only valid after Init().  Page display won't call Update()
00045     // before Init().
00046     TCanvas& GetCanvas();
00047 
00048 private:
00049     TCanvas* fCanvas;
00050     TGWindow* fMainWindow; // needed for print
00051 };                              // end of class CanvasPage
00052 
00053 #endif  // CANVASPAGE_H

Generated on Mon Feb 15 11:06:30 2010 for loon by  doxygen 1.3.9.1