TridHistoPage Class Reference

#include <TridHistoPage.h>

Inheritance diagram for TridHistoPage:
TridPage PageABC TridTransHistoPage

List of all members.

Public Member Functions

 TridHistoPage ()
virtual ~TridHistoPage ()
virtual TObject * Init (Mint *mint, PageDisplay *pageDisplay, GuiBox &box)
virtual TridGLFrameCreateNewGLFrame (TridPage::ViewMode_t mode)
virtual void CreateModels ()
virtual void CreateSketches ()
virtual void CreateScenery ()
virtual void ModifySketches ()
virtual void ChangeHistograms ()
virtual void ChangeSelection ()
virtual void ChangePicked ()
virtual void AnimationRedraw ()

Protected Attributes

SigC::Ptr< GuiMenufHistoMenu
TH1 * fHist
GuiToggledSubMenufModes

Detailed Description

Definition at line 15 of file TridHistoPage.h.


Constructor & Destructor Documentation

TridHistoPage::TridHistoPage (  ) 

Definition at line 49 of file TridHistoPage.cxx.

References TridPage::fCreateHistograms, TridPage::fViewMode, TridPage::fViewModesSupported, TridPage::fWindowName, TridPage::kView2D, and TridPage::kViewNone.

00050   :    TridPage(),
00051        fHist(0),
00052        fModes(0)
00053 { 
00054   // Default view.
00055   fViewModesSupported = kViewNone;
00056   fViewMode = kView2D;
00057   fWindowName = "TridColorHisto";
00058   fCreateHistograms = false;
00059 }

TridHistoPage::~TridHistoPage (  )  [virtual]

Definition at line 61 of file TridHistoPage.cxx.

References fModes.

00062 { 
00063   if(fModes) delete fModes;
00064 }


Member Function Documentation

virtual void TridHistoPage::AnimationRedraw (  )  [inline, virtual]

Reimplemented from TridPage.

Definition at line 35 of file TridHistoPage.h.

00035 {}; // No animation in this window.

virtual void TridHistoPage::ChangeHistograms (  )  [inline, virtual]

Reimplemented from TridPage.

Definition at line 32 of file TridHistoPage.h.

References CreateModels(), and TridPage::fGLFrame.

00032 { CreateModels(); fGLFrame->Update(); };

virtual void TridHistoPage::ChangePicked (  )  [inline, virtual]

Reimplemented from TridPage.

Definition at line 34 of file TridHistoPage.h.

References CreateModels(), and TridPage::fGLFrame.

00034 { CreateModels(); fGLFrame->Update(); };

virtual void TridHistoPage::ChangeSelection (  )  [inline, virtual]

Definition at line 33 of file TridHistoPage.h.

References CreateModels(), and TridPage::fGLFrame.

00033 { CreateModels(); fGLFrame->Update(); };

void TridHistoPage::CreateModels (  )  [virtual]

Reimplemented from TridPage.

Reimplemented in TridTransHistoPage.

Definition at line 92 of file TridHistoPage.cxx.

References TridPage::fGLFrame, fHist, and TridPage::fTridControl.

Referenced by ChangeHistograms(), ChangePicked(), and ChangeSelection().

00093 {
00094   fHist = fTridControl->GetColorHistogram();
00095   if(fHist) {
00096     dynamic_cast<TridHistoGLFrame*>(fGLFrame.get())->SetHistogram(fHist);
00097   }
00098 }

TridGLFrame * TridHistoPage::CreateNewGLFrame ( TridPage::ViewMode_t  mode  )  [virtual]

Reimplemented from TridPage.

Reimplemented in TridTransHistoPage.

Definition at line 85 of file TridHistoPage.cxx.

References TridPage::fGuiBox, and TridPage::fTridControl.

00086 {
00087   // Ignore mode.
00088   return new TridHistoGLFrame(this,*fGuiBox,NULL,fTridControl);
00089 }

virtual void TridHistoPage::CreateScenery (  )  [inline, virtual]

Reimplemented from TridPage.

Definition at line 29 of file TridHistoPage.h.

00029 {;};

virtual void TridHistoPage::CreateSketches (  )  [inline, virtual]

Reimplemented from TridPage.

Definition at line 28 of file TridHistoPage.h.

00028 {;};

TObject * TridHistoPage::Init ( Mint mint,
PageDisplay pd,
GuiBox box 
) [virtual]

Implement to fill box with whatever your page displays. If the page wishes to return a class to the initializer, then return an object which inherits from TObject, o.w. just return 0.

Reimplemented from TridPage.

Reimplemented in TridTransHistoPage.

Definition at line 66 of file TridHistoPage.cxx.

References GuiToggledSubMenu::AddItem(), TridControl::ChangeColorMode(), GuiToggledSubMenu::Connect(), GuiToggledSubMenu::CreateMenu(), fHist, fModes, TridPage::fOptionsMenu, TridPage::fPageDisplay, TridPage::fTridControl, TridControl::Instance(), TridControl::kColorAsChargePE, kColorModeNames, Msg::kDebug, TridControl::kNumColorModes, and MSG.

00067 { 
00068   MSG("TriD",Msg::kDebug) << "TridHistoPage: Init()" << endl;
00069   TridPage::Init(mint, pageDisplay, box);  
00070   
00071   // Get a histogram from the Control.
00072   fHist = fTridControl->GetColorHistogram();
00073 
00074   // Set up menus.
00075   fModes = new GuiToggledSubMenu(TridControl::kColorAsChargePE);
00076   fModes->CreateMenu(fOptionsMenu,"Color Modes");
00077   for(int i=0;i<TridControl::kNumColorModes;i++) {
00078     fModes->AddItem(kColorModeNames[i],i);
00079   }
00080   fModes->Connect(slot_class(*TridControl::Instance(fPageDisplay),&TridControl::ChangeColorMode));
00081 
00082   return NULL;
00083 }

virtual void TridHistoPage::ModifySketches (  )  [inline, virtual]

Reimplemented from TridPage.

Definition at line 30 of file TridHistoPage.h.

00030 {;};


Member Data Documentation

TH1* TridHistoPage::fHist [protected]
SigC::Ptr<GuiMenu> TridHistoPage::fHistoMenu [protected]

Definition at line 35 of file TridHistoPage.h.

Definition at line 39 of file TridHistoPage.h.

Referenced by TridTransHistoPage::Init(), Init(), and ~TridHistoPage().


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

Generated on 2 Nov 2017 for loon by  doxygen 1.6.1