CanvasViewer Class Reference

Tab based viewer of multiple TCanvas. More...

#include <CanvasViewer.h>

List of all members.

Public Member Functions

 CanvasViewer ()
CanvasTabsGetCanvasTabs ()
 GetCanvasTabs to add your own CanvasTab's.
void CloseWindow ()

Private Attributes

TGMainFrame * fMain
CanvasTabsfCTabs

Detailed Description

Tab based viewer of multiple TCanvas.

This provides a simple display to load a bunch of canvases allowing one to click through via tabs.

Author:
(last to touch it)
Author
bv
Version:
Revision
1.2
Date:
Date
2005/12/06 22:57:23

Contact: bv@bnl.gov

Created on: Tue Dec 6 13:10:53 2005

Id
CanvasViewer.h,v 1.2 2005/12/06 22:57:23 bv Exp

Definition at line 67 of file CanvasViewer.h.


Constructor & Destructor Documentation

CanvasViewer::CanvasViewer (  ) 

Definition at line 67 of file CanvasViewer.cxx.

References fCTabs, and fMain.

00068 {
00069     fMain   = new TGMainFrame(0, 800,800);
00070     fMain->SetCleanup(kDeepCleanup);
00071     fMain->Connect("CloseWindow()", "CanvasViewer", this, "CloseWindow()");
00072     
00073     fMain->SetWindowName("MINOS Canvas Viewer");
00074     
00075     fCTabs = new CanvasTabs(fMain);
00076 
00077     fMain->Resize(800,800);
00078     fMain->Layout();
00079     fMain->MapSubwindows();
00080     fMain->MapWindow();
00081     
00082     //fMain->Print();
00083 }


Member Function Documentation

void CanvasViewer::CloseWindow (  ) 

Definition at line 85 of file CanvasViewer.cxx.

00086 {
00087     gApplication->Terminate();
00088 }

CanvasTabs& CanvasViewer::GetCanvasTabs (  )  [inline]

GetCanvasTabs to add your own CanvasTab's.

Definition at line 77 of file CanvasViewer.h.

00077 { return *fCTabs; }


Member Data Documentation

Definition at line 72 of file CanvasViewer.h.

Referenced by CanvasViewer().

TGMainFrame* CanvasViewer::fMain [private]

Definition at line 70 of file CanvasViewer.h.

Referenced by CanvasViewer().


The documentation for this class was generated from the following files:

Generated on 22 Nov 2017 for loon by  doxygen 1.6.1