Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

TGo4PreviewPanelStatus Class Reference

#include <TGo4PreviewPanelStatus.h>

Inheritance diagram for TGo4PreviewPanelStatus:

TGo4Status List of all members.

Public Methods

 TGo4PreviewPanelStatus (const char *name, const char *title)
virtual ~TGo4PreviewPanelStatus ()
const char * GetPadStringDrawOption (TPad *SelectedPad)
TGo4PadOptionsGetPadOptions (TPad *Pad)
void ResetPadOptionsList ()
void RemoveSubPads (TPad *pad)
 Remove all subpads of pad from padarray; remove corresponding padoptions, too. More...

void RemovePad (TPad *pad)
 Remove pad and corresponding options from list. More...

void UpdateSubPads (TPad *pad)
 Scan list of primitive of pad for subpads not yet registered. More...

Bool_t GetPadDragOption (TPad *SelectedPad)
void SetPadDrawOption (TPad *SelectedPad, Int_t Xmin, Int_t Xmax, Int_t Ymin, Int_t Ymax)
void SetPadDrawOption (TPad *SelectedPad, const char *Option, bool DragAddOption)
void SetPadDrawOption (TPad *SelectedPad, const char *Option)
void SetPadHistogramStats (TPad *SelectedPad, Bool_t showstatistics)
Bool_t GetPadHistogramStats (TPad *SelectedPad)
void SetPadHistogramTitle (TPad *SelectedPad, Bool_t showtitle)
Bool_t GetPadHistogramTitle (TPad *SelectedPad)
void SetPadCrosshair (TPad *SelectedPad, Bool_t showcross)
Bool_t GetPadCrosshair (TPad *SelectedPad)
void SetPadLegend (TPad *SelectedPad, Bool_t drawlegend)
Bool_t GetPadLegend (TPad *SelectedPad)
void SetNoOfPads (Int_t)
Int_t GetNoOfPads ()
TRefArray * GetListOfPads ()
void SetSlots (TGo4PreviewPanelSlots *s)
void CleanupPadLists (TCanvas *can)
 Check if all pads in our lists are still existing in our viewpanel canvas. More...

Bool_t CheckSubPads (TPad *container, TPad *test)
 Check if pad test is still existing in list of primitives of pad container. More...

void RefreshListOfPads ()
 Test: reassign ids for all objects in refarray of pads. More...

void AssignUID (TObject *ob)
 This helper function will check if uid of ob is already referencend and will change it to a "free" number. More...


Private Attributes

TList * PadOptionList
TRefArray * ListOfPads
TGo4PadOptionsfxTGo4PadOptions
  More...

TIterator * listiter
TGo4PreviewPanelSlotsfxSlots
 Backpointer to slots. More...


Detailed Description

Author:
Mohammad Al-Turany, J.Adamczewski

Definition at line 33 of file TGo4PreviewPanelStatus.h.


Constructor & Destructor Documentation

TGo4PreviewPanelStatus::TGo4PreviewPanelStatus const char *    name,
const char *    title
 

Definition at line 28 of file TGo4PreviewPanelStatus.cxx.

References listiter, ListOfPads, and PadOptionList.

TGo4PreviewPanelStatus::~TGo4PreviewPanelStatus   [virtual]
 

Definition at line 36 of file TGo4PreviewPanelStatus.cxx.

References listiter, ListOfPads, and PadOptionList.


Member Function Documentation

const char * TGo4PreviewPanelStatus::GetPadStringDrawOption TPad *    SelectedPad
 

Definition at line 354 of file TGo4PreviewPanelStatus.cxx.

References listiter.

Referenced by TGo4ScriptSlots::GenerateStartupScript().

TGo4PadOptions * TGo4PreviewPanelStatus::GetPadOptions TPad *    Pad
 

Definition at line 339 of file TGo4PreviewPanelStatus.cxx.

References listiter.

Referenced by TGo4PreviewPanelSlots::AddObject(), TGo4PreviewPanelSlots::ClearLegend(), TGo4PreviewPanelSlots::DrawLegend(), and TGo4ScriptSlots::SetPadOptions().

void TGo4PreviewPanelStatus::ResetPadOptionsList  
 

Definition at line 375 of file TGo4PreviewPanelStatus.cxx.

References listiter, ListOfPads, and PadOptionList.

void TGo4PreviewPanelStatus::RemoveSubPads TPad *    pad
 

Remove all subpads of pad from padarray; remove corresponding padoptions, too.

Definition at line 407 of file TGo4PreviewPanelStatus.cxx.

References RemovePad().

Referenced by RemovePad().

void TGo4PreviewPanelStatus::RemovePad TPad *    pad
 

Remove pad and corresponding options from list.

Definition at line 427 of file TGo4PreviewPanelStatus.cxx.

References TGo4PreviewPanelSlots::ClearAllLabels(), TGo4PreviewPanelSlots::ClearLegend(), fxSlots, listiter, ListOfPads, PadOptionList, and RemoveSubPads().

Referenced by CleanupPadLists(), and RemoveSubPads().

void TGo4PreviewPanelStatus::UpdateSubPads TPad *    pad
 

Scan list of primitive of pad for subpads not yet registered.

To be used after pad division by root menu

Definition at line 382 of file TGo4PreviewPanelStatus.cxx.

References ListOfPads, and SetPadDrawOption().

Bool_t TGo4PreviewPanelStatus::GetPadDragOption TPad *    SelectedPad
 

Definition at line 324 of file TGo4PreviewPanelStatus.cxx.

References listiter.

void TGo4PreviewPanelStatus::SetPadDrawOption TPad *    SelectedPad,
Int_t    Xmin,
Int_t    Xmax,
Int_t    Ymin,
Int_t    Ymax
 

Definition at line 94 of file TGo4PreviewPanelStatus.cxx.

References TGo4PadOptions::fxPad, listiter, ListOfPads, PadOptionList, TGo4PadOptions::SetHistogramFullRange(), TGo4PadOptions::SetHisXStyle(), TGo4PadOptions::SetHisYStyle(), and TGo4PadOptions::SetHisZStyle().

Referenced by TGo4ScriptSlots::SetPadOptions(), TGo4PreviewPanelSlots::UpdatePad(), and UpdateSubPads().

void TGo4PreviewPanelStatus::SetPadDrawOption TPad *    SelectedPad,
const char *    Option,
bool    DragAddOption
 

Definition at line 47 of file TGo4PreviewPanelStatus.cxx.

References fxTGo4PadOptions, listiter, ListOfPads, and PadOptionList.

void TGo4PreviewPanelStatus::SetPadDrawOption TPad *    SelectedPad,
const char *    Option
 

Definition at line 72 of file TGo4PreviewPanelStatus.cxx.

References fxTGo4PadOptions, listiter, ListOfPads, and PadOptionList.

void TGo4PreviewPanelStatus::SetPadHistogramStats TPad *    SelectedPad,
Bool_t    showstatistics
 

Definition at line 125 of file TGo4PreviewPanelStatus.cxx.

References fxTGo4PadOptions, listiter, ListOfPads, PadOptionList, and TGo4PadOptions::SetHisStats().

Bool_t TGo4PreviewPanelStatus::GetPadHistogramStats TPad *    SelectedPad
 

Definition at line 148 of file TGo4PreviewPanelStatus.cxx.

References listiter.

void TGo4PreviewPanelStatus::SetPadHistogramTitle TPad *    SelectedPad,
Bool_t    showtitle
 

Definition at line 163 of file TGo4PreviewPanelStatus.cxx.

References fxTGo4PadOptions, listiter, ListOfPads, PadOptionList, and TGo4PadOptions::SetHisTitle().

Bool_t TGo4PreviewPanelStatus::GetPadHistogramTitle TPad *    SelectedPad
 

Definition at line 184 of file TGo4PreviewPanelStatus.cxx.

References listiter.

void TGo4PreviewPanelStatus::SetPadCrosshair TPad *    SelectedPad,
Bool_t    showcross
 

Definition at line 244 of file TGo4PreviewPanelStatus.cxx.

References TGo4PadOptions::fxPad, fxTGo4PadOptions, listiter, ListOfPads, PadOptionList, and TGo4PadOptions::SetCrosshair().

Bool_t TGo4PreviewPanelStatus::GetPadCrosshair TPad *    SelectedPad
 

Definition at line 307 of file TGo4PreviewPanelStatus.cxx.

References listiter.

void TGo4PreviewPanelStatus::SetPadLegend TPad *    SelectedPad,
Bool_t    drawlegend
 

Definition at line 200 of file TGo4PreviewPanelStatus.cxx.

References fxTGo4PadOptions, listiter, ListOfPads, PadOptionList, and TGo4PadOptions::SetLegendDraw().

Bool_t TGo4PreviewPanelStatus::GetPadLegend TPad *    SelectedPad
 

Definition at line 222 of file TGo4PreviewPanelStatus.cxx.

References listiter.

void TGo4PreviewPanelStatus::SetNoOfPads Int_t    [inline]
 

Definition at line 64 of file TGo4PreviewPanelStatus.h.

Referenced by TGo4ScriptSlots::CreateSubPad().

Int_t TGo4PreviewPanelStatus::GetNoOfPads  
 

Definition at line 448 of file TGo4PreviewPanelStatus.cxx.

References ListOfPads.

Referenced by TGo4ScriptSlots::CreateSubPad().

TRefArray * TGo4PreviewPanelStatus::GetListOfPads  
 

Definition at line 369 of file TGo4PreviewPanelStatus.cxx.

References ListOfPads.

void TGo4PreviewPanelStatus::SetSlots TGo4PreviewPanelSlots   s [inline]
 

Definition at line 68 of file TGo4PreviewPanelStatus.h.

References fxSlots.

Referenced by TGo4PreviewPanelSlots::TGo4PreviewPanelSlots().

void TGo4PreviewPanelStatus::CleanupPadLists TCanvas *    can
 

Check if all pads in our lists are still existing in our viewpanel canvas.

Eventually, throw away pad and padoptions from lists

Definition at line 457 of file TGo4PreviewPanelStatus.cxx.

References CheckSubPads(), ListOfPads, and RemovePad().

Bool_t TGo4PreviewPanelStatus::CheckSubPads TPad *    container,
TPad *    test
 

Check if pad test is still existing in list of primitives of pad container.

Returns true if found, otherwise false.

Definition at line 481 of file TGo4PreviewPanelStatus.cxx.

Referenced by CleanupPadLists().

void TGo4PreviewPanelStatus::RefreshListOfPads  
 

Test: reassign ids for all objects in refarray of pads.

Definition at line 514 of file TGo4PreviewPanelStatus.cxx.

References AssignUID(), and ListOfPads.

void TGo4PreviewPanelStatus::AssignUID TObject *    ob
 

This helper function will check if uid of ob is already referencend and will change it to a "free" number.

This is necessary to ensure that our canvas is not overriding an existing reference in session id manager.

Definition at line 540 of file TGo4PreviewPanelStatus.cxx.

References ListOfPads.

Referenced by RefreshListOfPads().


Member Data Documentation

TList* TGo4PreviewPanelStatus::PadOptionList [private]
 

Definition at line 90 of file TGo4PreviewPanelStatus.h.

Referenced by RemovePad(), ResetPadOptionsList(), SetPadCrosshair(), SetPadDrawOption(), SetPadHistogramStats(), SetPadHistogramTitle(), SetPadLegend(), TGo4PreviewPanelStatus(), and ~TGo4PreviewPanelStatus().

TRefArray* TGo4PreviewPanelStatus::ListOfPads [private]
 

Definition at line 92 of file TGo4PreviewPanelStatus.h.

Referenced by AssignUID(), CleanupPadLists(), GetListOfPads(), GetNoOfPads(), RefreshListOfPads(), RemovePad(), ResetPadOptionsList(), SetPadCrosshair(), SetPadDrawOption(), SetPadHistogramStats(), SetPadHistogramTitle(), SetPadLegend(), TGo4PreviewPanelStatus(), UpdateSubPads(), and ~TGo4PreviewPanelStatus().

TGo4PadOptions* TGo4PreviewPanelStatus::fxTGo4PadOptions [private]
 

Definition at line 95 of file TGo4PreviewPanelStatus.h.

Referenced by SetPadCrosshair(), SetPadDrawOption(), SetPadHistogramStats(), SetPadHistogramTitle(), and SetPadLegend().

TIterator* TGo4PreviewPanelStatus::listiter [private]
 

Definition at line 96 of file TGo4PreviewPanelStatus.h.

Referenced by GetPadCrosshair(), GetPadDragOption(), GetPadHistogramStats(), GetPadHistogramTitle(), GetPadLegend(), GetPadOptions(), GetPadStringDrawOption(), RemovePad(), ResetPadOptionsList(), SetPadCrosshair(), SetPadDrawOption(), SetPadHistogramStats(), SetPadHistogramTitle(), SetPadLegend(), TGo4PreviewPanelStatus(), and ~TGo4PreviewPanelStatus().

TGo4PreviewPanelSlots* TGo4PreviewPanelStatus::fxSlots [private]
 

Backpointer to slots.

Required, since marker management is in slots, pad management in status (bad design!). Should be changed... JA

Definition at line 100 of file TGo4PreviewPanelStatus.h.

Referenced by RemovePad(), and SetSlots().


The documentation for this class was generated from the following files:
Generated on Tue Nov 8 10:56:50 2005 for Go4-v2.10-5 by doxygen1.2.15