TridTransHistoPage Class Reference

#include <TridHistoPage.h>

Inheritance diagram for TridTransHistoPage:
TridHistoPage TridPage PageABC

List of all members.

Public Member Functions

 TridTransHistoPage ()
virtual TObject * Init (Mint *mint, PageDisplay *pageDisplay, GuiBox &box)
virtual TridGLFrameCreateNewGLFrame (TridPage::ViewMode_t mode)
virtual void ChangeColor ()
virtual void ChangeTrans ()
virtual void CreateModels ()

Detailed Description

Definition at line 46 of file TridHistoPage.h.


Constructor & Destructor Documentation

TridTransHistoPage::TridTransHistoPage (  ) 

Definition at line 103 of file TridHistoPage.cxx.

References TridPage::fWindowName.

00103                                        :
00104   TridHistoPage()
00105 { 
00106   fWindowName = "TridTransHisto";
00107 }


Member Function Documentation

virtual void TridTransHistoPage::ChangeColor (  )  [inline, virtual]

Reimplemented from TridPage.

Definition at line 53 of file TridHistoPage.h.

References CreateModels(), and TridPage::fGLFrame.

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

virtual void TridTransHistoPage::ChangeTrans (  )  [inline, virtual]

Reimplemented from TridPage.

Definition at line 54 of file TridHistoPage.h.

References CreateModels(), and TridPage::fGLFrame.

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

void TridTransHistoPage::CreateModels (  )  [virtual]

Reimplemented from TridHistoPage.

Definition at line 135 of file TridHistoPage.cxx.

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

Referenced by ChangeColor(), and ChangeTrans().

00136 {
00137   fHist = fTridControl->GetTransHistogram();
00138   if(fHist) {
00139     dynamic_cast<TridHistoGLFrame*>(fGLFrame.get())->SetHistogram(fHist);
00140   }
00141 }

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

Reimplemented from TridHistoPage.

Definition at line 129 of file TridHistoPage.cxx.

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

00130 {
00131   return new TridHistoGLFrame(this,*fGuiBox,NULL,fTridControl, TridHistoGLFrame::kTrans);
00132 }

TObject * TridTransHistoPage::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 TridHistoPage.

Definition at line 109 of file TridHistoPage.cxx.

References GuiToggledSubMenu::AddItem(), TridControl::ChangeTransMode(), GuiToggledSubMenu::Connect(), GuiToggledSubMenu::CreateMenu(), TridHistoPage::fHist, TridHistoPage::fModes, TridPage::fOptionsMenu, TridPage::fPageDisplay, TridPage::fTridControl, TridControl::Instance(), Msg::kDebug, TridControl::kNumTransModes, TridControl::kTransConstant, kTransModeNames, and MSG.

00110 {
00111   MSG("TriD",Msg::kDebug) << "TridTransHistoPage: Init()" << endl;
00112   TridPage::Init(mint, pageDisplay, box);  
00113   
00114   // Get a histogram from the Control.
00115   fHist = fTridControl->GetTransHistogram();
00116 
00117   // Menu.
00118   fModes = new GuiToggledSubMenu(TridControl::kTransConstant);
00119 
00120   fModes->CreateMenu(fOptionsMenu,"Trans Modes");
00121   for(int i=0;i<TridControl::kNumTransModes;i++) {
00122     fModes->AddItem(kTransModeNames[i],i);
00123   }
00124   fModes->Connect(slot_class(*TridControl::Instance(fPageDisplay),&TridControl::ChangeTransMode));
00125 
00126   return NULL;
00127 }


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

Generated on 21 Jun 2018 for loon by  doxygen 1.6.1