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

TGo4PreviewPanelSlots Class Reference

#include <TGo4PreviewPanelSlots.h>

Inheritance diagram for TGo4PreviewPanelSlots:

TGo4SlotsBaseClass List of all members.

Public Methods

 TGo4PreviewPanelSlots (const char *name, const char *title, TGo4PreviewPanel *p)
virtual ~TGo4PreviewPanelSlots ()
void SetGUI (TGo4PreviewPanel *GUI)
TGo4StatusGetStatus ()
void DivideCanvas (int X, int Y)
TCanvas * GetCanvas ()
void UpdatePad (TPad *Pad, TH1 *h1, Bool_t updatemarkers=kTRUE, Bool_t updateoptions=kTRUE)
 Synchronize padoptions of pad with setup of root histogram h1. More...

void UpdatePad (TPad *Pad, THStack *h1, Bool_t updatemarkers=kTRUE)
void InformUpdatePad (TPad *Pad)
 Inform other widgets (like fitpanel) that something change in the pad. More...

virtual void AddObject (TNamed *, TQRootCanvas *c, TPad *p)
void SetMouseMode (Go4MouseMode_t mode)
Go4MouseMode_t GetMouseMode ()
void SetPickAgain (Bool_t on)
Bool_t IsPickAgain ()
void SetCreateNewMarker (Bool_t on)
Bool_t IsCreateNewMarker ()
void ResetPickCounter ()
void MouseClick (TPad *pad)
 called when mouse clicks on pad (left button press). More...

void SetRegionsHistogram ()
 Update histogram reference for all window regions. More...

void SetPolygonsHistogram ()
 Update histogram reference for all polygon regions. More...

void SetMarkersHistogram ()
 Update histogram reference for all markers. More...

Bool_t AddLatex (TLatex *lax, TVirtualPad *pad, Bool_t clone=kFALSE)
 register latex object of current pad into list of latex labels. More...

Bool_t AddArrow (TArrow *arr, TVirtualPad *pad, Bool_t clone=kFALSE)
 register arrrow object of current pad into list of arrow labels. More...

Bool_t AddMarker (TGo4Marker *mk, TVirtualPad *pad, Bool_t clone=kFALSE)
 register marker object of current pad into list of crossmarkers. More...

Bool_t AddRegion (TGo4WinCond *con, TVirtualPad *pad, Bool_t clone=kFALSE)
 register window condition object of current pad into list of regions. More...

Bool_t AddPolygon (TGo4PolyCond *con, TVirtualPad *pad, Bool_t clone=kFALSE)
 register polygon condition object of current pad into list of regions. More...

void ScanCutG (TVirtualPad *pad, TGo4PolyCond *toupdate=0)
 Scan pad for a newly created CutG and put it into a polygon condition toupdate. More...

void ScanMarkers (TVirtualPad *pad)
 Scan all Markers in pad and add new ones to lists. More...

void ActivateSelectedObject (TVirtualPad *pad)
 Scan pad for selected object and activate it in the corresponding list of markers,windows,latexes. More...

TGo4MarkerGetActiveMarker (TVirtualPad *pad)
 Get marker in list which is active for edit. More...

const Text_t * GetActiveMarkerName (TVirtualPad *pad)
 Name of active marker for gui display. More...

TGo4WinCondGetActiveRegion (TVirtualPad *pad)
 Get region in list which is active for edit. More...

const Text_t * GetActiveRegionName (TVirtualPad *pad)
 Name of active region for gui display. More...

TGo4PolyCondGetActivePolygon (TVirtualPad *pad)
 Get polygon in list which is active for edit. More...

const Text_t * GetActivePolygonName (TVirtualPad *pad)
 Name of active polygon for gui display. More...

TLatex * GetActiveLatex (TVirtualPad *pad)
 Get latex object in list which is active for edit on the pad. More...

const Text_t * GetActiveLatexName (TVirtualPad *pad)
 Name of active latex for gui display. More...

const Text_t * GetSelectedName ()
 Name of last mouse selected object. More...

void RedrawAllLabels (TVirtualPad *pad)
 In case of histogram redraw, restore all markers and region labels for pad. More...

void ClearAllLabels (TVirtualPad *pad)
 In case of pad clear, delete all markers and region labels from viewpanel list that are assigned to pad. More...

void DrawLegend (TVirtualPad *pad, TObject *ob)
 Draw a new Legend for object ob on pad. More...

void ClearLegend (TVirtualPad *pad, Bool_t del=kFALSE)
 Remove any Legend on pad. More...

void LogMarkers (Option_t *opt="")
 Log values of all markers to terminal or logfile. More...

void BuildPadEditor (TQRootWindow *parent=0)
 build the root pad editor inside Qt parent frame. More...

void CleanupPadEditor ()
 remove subeditors in root cache for this viewpanel. More...

void SaveMarkerSetup (const Text_t *filename, const Text_t *statusname=0, TVirtualPad *pad=0)
 Save status of current viewpanel markers to root file filename. More...

void LoadMarkerSetup (const Text_t *filename, const Text_t *statusname=0, TVirtualPad *pad=0)
 Load status of current viewpanel markers from root file filename and draw them into destination pad pad. More...

void ResetFillColors (TVirtualPad *pad, Color_t col=0)
 For canvas saving: reset all fill colors of pad to existing root color number. More...


Private Methods

TGo4MarkerSetupCreateMarkerSetup (TVirtualPad *pad)
 Create status of current viewpanel markers. More...

void SetMarkerSetup (TGo4MarkerSetup *state, TVirtualPad *pad)
 Arrange markers of current viewpanel from external setup. More...


Private Attributes

TGo4GUIRegistryfxTGo4GUIRegistry
 @supplierCardinality 1. More...

TGo4PreviewPanel * fxTGo4PreviewPanel
TGo4PreviewPanelStatusfxTGo4PreviewPanelStatus
Go4MouseMode_t fiMouseMode
 This switches mouse modes: see Go4MouseModes.h. More...

UInt_t fuPickCounter
 number of clicks for multipick (regions). More...

TList * fxMarkerList
 list of temporary markers set. More...

TList * fxRegionList
 list of temporary regions (window conditions). More...

TList * fxPolygonList
 list of temporary polygons (poly conditions). More...

TList * fxLateXCleanups
 cleanup list of latex objects. More...

TList * fxLateXList
 list of temporary latex objects (text markers). More...

TList * fxArrowCleanups
 cleanup list of arrow objects. More...

TList * fxArrowList
 list of temporary arrow objects. More...

TList * fxLegendCleanups
 cleanup list of legend objects. More...

Bool_t fbTwoDimRegion
 true if next window region to create is 2 dimensional. More...

Bool_t fbPickAgain
 if true, continue with previous mouse mode. More...

Bool_t fbCreateNewMarker
 if true, each mouse pick will create new marker (window, respectively). More...

TString fxSelectedName
 keep name of last selected object. More...

TVirtualPadEditor * fxPeditor
 root pad editor for this viewpanel. More...


Detailed Description

Author:
Mohammad Al-Turany, J.Adamczewski

Definition at line 47 of file TGo4PreviewPanelSlots.h.


Constructor & Destructor Documentation

TGo4PreviewPanelSlots::TGo4PreviewPanelSlots const char *    name,
const char *    title,
TGo4PreviewPanel *    p
 

Definition at line 59 of file TGo4PreviewPanelSlots.cxx.

References fxArrowCleanups, fxArrowList, fxLateXCleanups, fxLateXList, fxLegendCleanups, fxMarkerList, fxPolygonList, fxRegionList, fxTGo4GUIRegistry, fxTGo4PreviewPanelStatus, TGo4GUIRegistry::Instance(), kMouseROOT, p, TGo4GUIRegistry::RegisterSlotClass(), and TGo4PreviewPanelStatus::SetSlots().

TGo4PreviewPanelSlots::~TGo4PreviewPanelSlots   [virtual]
 

Definition at line 111 of file TGo4PreviewPanelSlots.cxx.

References fxArrowCleanups, fxArrowList, fxLateXCleanups, fxLateXList, fxLegendCleanups, fxMarkerList, fxPeditor, fxPolygonList, fxRegionList, and fxTGo4PreviewPanelStatus.


Member Function Documentation

void TGo4PreviewPanelSlots::SetGUI TGo4PreviewPanel *    GUI
 

Definition at line 96 of file TGo4PreviewPanelSlots.cxx.

References fxTGo4GUIRegistry, fxTGo4PreviewPanel, and TGo4GUIRegistry::GuiIsChanged().

TGo4Status * TGo4PreviewPanelSlots::GetStatus  
 

Definition at line 91 of file TGo4PreviewPanelSlots.cxx.

References fxTGo4PreviewPanelStatus.

void TGo4PreviewPanelSlots::DivideCanvas int    X,
int    Y
 

Definition at line 102 of file TGo4PreviewPanelSlots.cxx.

References fxTGo4PreviewPanel.

TCanvas * TGo4PreviewPanelSlots::GetCanvas  
 

Definition at line 107 of file TGo4PreviewPanelSlots.cxx.

References fxTGo4PreviewPanel.

void TGo4PreviewPanelSlots::UpdatePad TPad *    Pad,
TH1 *    h1,
Bool_t    updatemarkers = kTRUE,
Bool_t    updateoptions = kTRUE
 

Synchronize padoptions of pad with setup of root histogram h1.

if updatemarkers is true, also do scan graph markers and assign their work histogram. Should be disabled in some cases to avoid recursive loop

Definition at line 143 of file TGo4PreviewPanelSlots.cxx.

References fxTGo4PreviewPanel, fxTGo4PreviewPanelStatus, InformUpdatePad(), ScanMarkers(), SetMarkersHistogram(), TGo4PreviewPanelStatus::SetPadDrawOption(), SetPolygonsHistogram(), and SetRegionsHistogram().

void TGo4PreviewPanelSlots::UpdatePad TPad *    Pad,
THStack *    h1,
Bool_t    updatemarkers = kTRUE
 

Definition at line 185 of file TGo4PreviewPanelSlots.cxx.

References fxTGo4PreviewPanel, fxTGo4PreviewPanelStatus, InformUpdatePad(), ScanMarkers(), SetMarkersHistogram(), TGo4PreviewPanelStatus::SetPadDrawOption(), SetPolygonsHistogram(), and SetRegionsHistogram().

void TGo4PreviewPanelSlots::InformUpdatePad TPad *    Pad
 

Inform other widgets (like fitpanel) that something change in the pad.

Definition at line 226 of file TGo4PreviewPanelSlots.cxx.

References fxTGo4GUIRegistry, fxTGo4PreviewPanel, TGo4GUIRegistry::GetSlotClass(), TGo4FitPanelSlots::ViewPanelPadUpdate(), and TGo4FitPanelSlots::ViewPanelRemoved().

Referenced by UpdatePad().

void TGo4PreviewPanelSlots::AddObject TNamed *   ,
TQRootCanvas   c,
TPad *    p
[virtual]
 

Reimplemented from TGo4SlotsBaseClass.

Definition at line 238 of file TGo4PreviewPanelSlots.cxx.

References fxTGo4PreviewPanel, fxTGo4PreviewPanelStatus, TGo4PreviewPanelStatus::GetPadOptions(), p, and TGo4PadOptions::SetCondition().

void TGo4PreviewPanelSlots::SetMouseMode Go4MouseMode_t    mode [inline]
 

Definition at line 70 of file TGo4PreviewPanelSlots.h.

References fiMouseMode, and Go4MouseMode_t.

Referenced by TGo4WindowEditSlots::SetNewTCutG(), and TGo4WindowEditSlots::~TGo4WindowEditSlots().

Go4MouseMode_t TGo4PreviewPanelSlots::GetMouseMode   [inline]
 

Definition at line 71 of file TGo4PreviewPanelSlots.h.

References fiMouseMode, and Go4MouseMode_t.

void TGo4PreviewPanelSlots::SetPickAgain Bool_t    on [inline]
 

Definition at line 73 of file TGo4PreviewPanelSlots.h.

References fbPickAgain.

Bool_t TGo4PreviewPanelSlots::IsPickAgain   [inline]
 

Definition at line 74 of file TGo4PreviewPanelSlots.h.

References fbPickAgain.

Referenced by MouseClick().

void TGo4PreviewPanelSlots::SetCreateNewMarker Bool_t    on [inline]
 

Definition at line 75 of file TGo4PreviewPanelSlots.h.

References fbCreateNewMarker.

Bool_t TGo4PreviewPanelSlots::IsCreateNewMarker   [inline]
 

Definition at line 76 of file TGo4PreviewPanelSlots.h.

References fbCreateNewMarker.

Referenced by MouseClick().

void TGo4PreviewPanelSlots::ResetPickCounter   [inline]
 

Definition at line 77 of file TGo4PreviewPanelSlots.h.

References fuPickCounter.

void TGo4PreviewPanelSlots::MouseClick TPad *    pad
 

called when mouse clicks on pad (left button press).

Definition at line 252 of file TGo4PreviewPanelSlots.cxx.

References ActivateSelectedObject(), AddLatex(), TGo4Condition::Draw(), TGo4Marker::Draw(), fbTwoDimRegion, fiMouseMode, fuPickCounter, fxLateXList, fxMarkerList, fxRegionList, fxTGo4PreviewPanel, GetActiveLatex(), GetActiveMarker(), GetActivePolygon(), GetActiveRegion(), TGo4Condition::GetDimension(), TGo4Marker::GetInstances(), TGo4WinCond::GetXLow(), TGo4WinCond::GetYLow(), IsCreateNewMarker(), IsPickAgain(), TGo4Condition::IsXMaxDraw(), TGo4Condition::IsXMeanDraw(), TGo4Condition::IsXRMSDraw(), kMouseConditionEditor, kMouseDraw, kMousePickCursor, kMousePickLatex, kMousePickLimits, kMousePickPolygon, kMouseROOT, ScanCutG(), ScanMarkers(), TGo4Marker::SetHistogram(), TGo4WinCond::SetValues(), TGo4Condition::SetWorkHistogram(), TGo4Condition::SetYMaxDraw(), TGo4Condition::SetYMeanDraw(), and TGo4Condition::SetYRMSDraw().

void TGo4PreviewPanelSlots::SetRegionsHistogram  
 

Update histogram reference for all window regions.

Definition at line 924 of file TGo4PreviewPanelSlots.cxx.

References fxRegionList, fxTGo4PreviewPanel, TGo4Condition::GetDrawPad(), and TGo4Condition::SetWorkHistogram().

Referenced by UpdatePad().

void TGo4PreviewPanelSlots::SetPolygonsHistogram  
 

Update histogram reference for all polygon regions.

Definition at line 942 of file TGo4PreviewPanelSlots.cxx.

References fxPolygonList, fxTGo4PreviewPanel, TGo4Condition::GetDrawPad(), and TGo4Condition::SetWorkHistogram().

Referenced by UpdatePad().

void TGo4PreviewPanelSlots::SetMarkersHistogram  
 

Update histogram reference for all markers.

Definition at line 959 of file TGo4PreviewPanelSlots.cxx.

References fxMarkerList, fxTGo4PreviewPanel, TGo4Marker::GetDrawPad(), and TGo4Marker::SetHistogram().

Referenced by UpdatePad().

Bool_t TGo4PreviewPanelSlots::AddLatex TLatex *    lax,
TVirtualPad *    pad,
Bool_t    clone = kFALSE
 

register latex object of current pad into list of latex labels.

If option clone is true, register a clone of lax (for TLatex labels created with mouse popup menu) Return value is true if object was already in registry before

Definition at line 567 of file TGo4PreviewPanelSlots.cxx.

References fxLateXCleanups, fxLateXList, TGo4GraphicEntry::fxPad, and TGo4LateXEntry::GetLateX().

Referenced by MouseClick(), and ScanMarkers().

Bool_t TGo4PreviewPanelSlots::AddArrow TArrow *    arr,
TVirtualPad *    pad,
Bool_t    clone = kFALSE
 

register arrrow object of current pad into list of arrow labels.

If option clone is true, register a clone of arr Return value is true if object was already in registry before

Definition at line 605 of file TGo4PreviewPanelSlots.cxx.

References fxArrowCleanups, fxArrowList, TGo4GraphicEntry::fxPad, and TGo4ArrowEntry::GetArrow().

Referenced by ScanMarkers().

Bool_t TGo4PreviewPanelSlots::AddMarker TGo4Marker   mk,
TVirtualPad *    pad,
Bool_t    clone = kFALSE
 

register marker object of current pad into list of crossmarkers.

If option clone is true, register a clone of arr Return value is true if object was already in registry before

Definition at line 648 of file TGo4PreviewPanelSlots.cxx.

References TGo4Marker::Draw(), and fxMarkerList.

Referenced by ScanMarkers().

Bool_t TGo4PreviewPanelSlots::AddRegion TGo4WinCond   con,
TVirtualPad *    pad,
Bool_t    clone = kFALSE
 

register window condition object of current pad into list of regions.

If option clone is true, register a clone of arr Return value is true if object was already in registry before

Definition at line 684 of file TGo4PreviewPanelSlots.cxx.

References TGo4Condition::Draw(), fxRegionList, and TGo4Condition::IsOwnedByEditor().

Referenced by ScanMarkers().

Bool_t TGo4PreviewPanelSlots::AddPolygon TGo4PolyCond   con,
TVirtualPad *    pad,
Bool_t    clone = kFALSE
 

register polygon condition object of current pad into list of regions.

If option clone is true, register a clone of arr Return value is true if object was already in registry before

Definition at line 722 of file TGo4PreviewPanelSlots.cxx.

References TGo4Condition::Draw(), fxPolygonList, and TGo4Condition::IsOwnedByEditor().

Referenced by ScanMarkers().

void TGo4PreviewPanelSlots::ScanCutG TVirtualPad *    pad,
TGo4PolyCond   toupdate = 0
 

Scan pad for a newly created CutG and put it into a polygon condition toupdate.

If no polygonconditon is specified, create new condition and add it to our list.

Definition at line 515 of file TGo4PreviewPanelSlots.cxx.

References TGo4Condition::Draw(), fxPolygonList, fxTGo4PreviewPanel, TGo4PolyCond::SetValues(), and TGo4Condition::SetWorkHistogram().

Referenced by MouseClick().

void TGo4PreviewPanelSlots::ScanMarkers TVirtualPad *    pad
 

Scan all Markers in pad and add new ones to lists.

To handle latex objects created by mouse button popups. arrow objects by root editor mode, and go4 markers/conditions imported by canvas loading

Definition at line 450 of file TGo4PreviewPanelSlots.cxx.

References AddArrow(), AddLatex(), AddMarker(), AddPolygon(), and AddRegion().

Referenced by ClearAllLabels(), CreateMarkerSetup(), MouseClick(), RedrawAllLabels(), and UpdatePad().

void TGo4PreviewPanelSlots::ActivateSelectedObject TVirtualPad *    pad
 

Scan pad for selected object and activate it in the corresponding list of markers,windows,latexes.

Definition at line 762 of file TGo4PreviewPanelSlots.cxx.

References fiMouseMode, fxLateXList, fxMarkerList, TGo4GraphicEntry::fxObject, fxPolygonList, fxRegionList, fxSelectedName, TGo4PolyCondView::GetCondition(), TGo4WinCondView::GetCondition(), and kMouseSelectObject.

Referenced by MouseClick().

TGo4Marker * TGo4PreviewPanelSlots::GetActiveMarker TVirtualPad *    pad
 

Get marker in list which is active for edit.

Definition at line 854 of file TGo4PreviewPanelSlots.cxx.

References fxMarkerList.

Referenced by GetActiveMarkerName(), and MouseClick().

const Text_t * TGo4PreviewPanelSlots::GetActiveMarkerName TVirtualPad *    pad
 

Name of active marker for gui display.

Definition at line 859 of file TGo4PreviewPanelSlots.cxx.

References GetActiveMarker(), and TGo4Marker::GetName().

TGo4WinCond * TGo4PreviewPanelSlots::GetActiveRegion TVirtualPad *    pad
 

Get region in list which is active for edit.

Definition at line 868 of file TGo4PreviewPanelSlots.cxx.

References fxRegionList.

Referenced by GetActiveRegionName(), and MouseClick().

const Text_t * TGo4PreviewPanelSlots::GetActiveRegionName TVirtualPad *    pad
 

Name of active region for gui display.

Definition at line 873 of file TGo4PreviewPanelSlots.cxx.

References GetActiveRegion().

TGo4PolyCond * TGo4PreviewPanelSlots::GetActivePolygon TVirtualPad *    pad
 

Get polygon in list which is active for edit.

Definition at line 882 of file TGo4PreviewPanelSlots.cxx.

References fxPolygonList.

Referenced by GetActivePolygonName(), and MouseClick().

const Text_t * TGo4PreviewPanelSlots::GetActivePolygonName TVirtualPad *    pad
 

Name of active polygon for gui display.

Definition at line 887 of file TGo4PreviewPanelSlots.cxx.

References GetActivePolygon().

TLatex * TGo4PreviewPanelSlots::GetActiveLatex TVirtualPad *    pad
 

Get latex object in list which is active for edit on the pad.

Definition at line 897 of file TGo4PreviewPanelSlots.cxx.

References fxLateXList, TGo4GraphicEntry::fxPad, and TGo4LateXEntry::GetLateX().

Referenced by GetActiveLatexName(), and MouseClick().

const Text_t * TGo4PreviewPanelSlots::GetActiveLatexName TVirtualPad *    pad
 

Name of active latex for gui display.

Definition at line 915 of file TGo4PreviewPanelSlots.cxx.

References GetActiveLatex().

const Text_t* TGo4PreviewPanelSlots::GetSelectedName   [inline]
 

Name of last mouse selected object.

Definition at line 162 of file TGo4PreviewPanelSlots.h.

References fxSelectedName.

void TGo4PreviewPanelSlots::RedrawAllLabels TVirtualPad *    pad
 

In case of histogram redraw, restore all markers and region labels for pad.

Definition at line 977 of file TGo4PreviewPanelSlots.cxx.

References TGo4Condition::Draw(), TGo4Marker::Draw(), fxArrowCleanups, fxArrowList, fxLateXCleanups, fxLateXList, fxMarkerList, TGo4GraphicEntry::fxPad, fxPolygonList, fxRegionList, TGo4ArrowEntry::GetArrow(), TGo4Condition::GetDrawPad(), TGo4Marker::GetDrawPad(), TGo4LateXEntry::GetLateX(), and ScanMarkers().

void TGo4PreviewPanelSlots::ClearAllLabels TVirtualPad *    pad
 

In case of pad clear, delete all markers and region labels from viewpanel list that are assigned to pad.

If pad=0, clear everything

Definition at line 1061 of file TGo4PreviewPanelSlots.cxx.

References fxArrowCleanups, fxArrowList, fxLateXCleanups, fxLateXList, fxMarkerList, TGo4GraphicEntry::fxObject, TGo4GraphicEntry::fxPad, fxPolygonList, fxRegionList, TGo4ArrowEntry::GetArrow(), TGo4Condition::GetDrawPad(), TGo4Marker::GetDrawPad(), TGo4LateXEntry::GetLateX(), and ScanMarkers().

Referenced by TGo4PreviewPanelStatus::RemovePad(), and SetMarkerSetup().

void TGo4PreviewPanelSlots::DrawLegend TVirtualPad *    pad,
TObject *    ob
 

Draw a new Legend for object ob on pad.

If ob is a THStack, legend includes all histograms.

Definition at line 1146 of file TGo4PreviewPanelSlots.cxx.

References fxLegendCleanups, fxTGo4PreviewPanelStatus, TGo4PadOptions::GetLegend(), TGo4PreviewPanelStatus::GetPadOptions(), and TGo4PadOptions::SetLegend().

void TGo4PreviewPanelSlots::ClearLegend TVirtualPad *    pad,
Bool_t    del = kFALSE
 

Remove any Legend on pad.

If del is true, also delete legend in pad options

Definition at line 1220 of file TGo4PreviewPanelSlots.cxx.

References fxLegendCleanups, fxTGo4PreviewPanelStatus, TGo4PadOptions::GetLegend(), TGo4PreviewPanelStatus::GetPadOptions(), and TGo4PadOptions::SetLegend().

Referenced by TGo4PreviewPanelStatus::RemovePad().

void TGo4PreviewPanelSlots::LogMarkers Option_t *    opt = ""
 

Log values of all markers to terminal or logfile.

Definition at line 1265 of file TGo4PreviewPanelSlots.cxx.

References fxArrowCleanups, fxLateXCleanups, fxMarkerList, fxPolygonList, and fxRegionList.

void TGo4PreviewPanelSlots::BuildPadEditor TQRootWindow   parent = 0
 

build the root pad editor inside Qt parent frame.

Definition at line 1312 of file TGo4PreviewPanelSlots.cxx.

References fxPeditor, and TQRootWindow::SetEditable().

void TGo4PreviewPanelSlots::CleanupPadEditor  
 

remove subeditors in root cache for this viewpanel.

Should be done when leaving the viewpanel on leaveEvent

Definition at line 1336 of file TGo4PreviewPanelSlots.cxx.

References fxPeditor.

void TGo4PreviewPanelSlots::SaveMarkerSetup const Text_t *    filename,
const Text_t *    statusname = 0,
TVirtualPad *    pad = 0
 

Save status of current viewpanel markers to root file filename.

optionally, name of setup statusname may be defined

Definition at line 1346 of file TGo4PreviewPanelSlots.cxx.

References CreateMarkerSetup().

void TGo4PreviewPanelSlots::LoadMarkerSetup const Text_t *    filename,
const Text_t *    statusname = 0,
TVirtualPad *    pad = 0
 

Load status of current viewpanel markers from root file filename and draw them into destination pad pad.

Optionally, name of setup statusname may be defined. If destination pad is not specified, the active pad is chosen.

Definition at line 1357 of file TGo4PreviewPanelSlots.cxx.

References TGo4PolyCond::CleanupSpecials(), and SetMarkerSetup().

void TGo4PreviewPanelSlots::ResetFillColors TVirtualPad *    pad,
Color_t    col = 0
 

For canvas saving: reset all fill colors of pad to existing root color number.

With go4 defined color palette, there are problems restoring the canvas from an ordinary root file. Later, we might store custom go4 palette somewhere.

Definition at line 1519 of file TGo4PreviewPanelSlots.cxx.

TGo4MarkerSetup * TGo4PreviewPanelSlots::CreateMarkerSetup TVirtualPad *    pad [private]
 

Create status of current viewpanel markers.

Definition at line 1379 of file TGo4PreviewPanelSlots.cxx.

References fxArrowCleanups, TGo4MarkerSetup::fxArrowList, fxArrowList, fxLateXCleanups, TGo4MarkerSetup::fxLateXList, fxLateXList, TGo4MarkerSetup::fxMarkerList, fxMarkerList, TGo4GraphicEntry::fxPad, TGo4MarkerSetup::fxPolygonList, fxPolygonList, TGo4MarkerSetup::fxRegionList, fxRegionList, fxTGo4PreviewPanel, TGo4ArrowEntry::GetArrow(), TGo4Condition::GetDrawPad(), TGo4Marker::GetDrawPad(), TGo4LateXEntry::GetLateX(), and ScanMarkers().

Referenced by SaveMarkerSetup().

void TGo4PreviewPanelSlots::SetMarkerSetup TGo4MarkerSetup   state,
TVirtualPad *    pad
[private]
 

Arrange markers of current viewpanel from external setup.

currently, all markers are put into destination pad pad. If destination pad is not specified, the active pad is chosen. Later on, we might identify subpads of canvas by id?

Definition at line 1443 of file TGo4PreviewPanelSlots.cxx.

References ClearAllLabels(), TGo4Condition::Draw(), TGo4Marker::Draw(), fxArrowCleanups, fxArrowList, TGo4MarkerSetup::fxArrowList, fxLateXCleanups, fxLateXList, TGo4MarkerSetup::fxLateXList, fxMarkerList, TGo4MarkerSetup::fxMarkerList, TGo4GraphicEntry::fxObject, TGo4GraphicEntry::fxPad, fxPolygonList, TGo4MarkerSetup::fxPolygonList, fxRegionList, TGo4MarkerSetup::fxRegionList, fxTGo4PreviewPanel, TGo4Marker::SetHistogram(), and TGo4Condition::SetWorkHistogram().

Referenced by LoadMarkerSetup().


Member Data Documentation

TGo4GUIRegistry* TGo4PreviewPanelSlots::fxTGo4GUIRegistry [private]
 

@supplierCardinality 1.

Definition at line 225 of file TGo4PreviewPanelSlots.h.

Referenced by InformUpdatePad(), SetGUI(), and TGo4PreviewPanelSlots().

TGo4PreviewPanel* TGo4PreviewPanelSlots::fxTGo4PreviewPanel [private]
 

Definition at line 226 of file TGo4PreviewPanelSlots.h.

Referenced by AddObject(), CreateMarkerSetup(), DivideCanvas(), GetCanvas(), InformUpdatePad(), MouseClick(), ScanCutG(), SetGUI(), SetMarkerSetup(), SetMarkersHistogram(), SetPolygonsHistogram(), SetRegionsHistogram(), and UpdatePad().

TGo4PreviewPanelStatus* TGo4PreviewPanelSlots::fxTGo4PreviewPanelStatus [private]
 

Definition at line 227 of file TGo4PreviewPanelSlots.h.

Referenced by AddObject(), ClearLegend(), DrawLegend(), GetStatus(), TGo4PreviewPanelSlots(), UpdatePad(), and ~TGo4PreviewPanelSlots().

Go4MouseMode_t TGo4PreviewPanelSlots::fiMouseMode [private]
 

This switches mouse modes: see Go4MouseModes.h.

Definition at line 231 of file TGo4PreviewPanelSlots.h.

Referenced by ActivateSelectedObject(), GetMouseMode(), MouseClick(), and SetMouseMode().

UInt_t TGo4PreviewPanelSlots::fuPickCounter [private]
 

number of clicks for multipick (regions).

Definition at line 234 of file TGo4PreviewPanelSlots.h.

Referenced by MouseClick(), and ResetPickCounter().

TList* TGo4PreviewPanelSlots::fxMarkerList [private]
 

list of temporary markers set.

Definition at line 237 of file TGo4PreviewPanelSlots.h.

Referenced by ActivateSelectedObject(), AddMarker(), ClearAllLabels(), CreateMarkerSetup(), GetActiveMarker(), LogMarkers(), MouseClick(), RedrawAllLabels(), SetMarkerSetup(), SetMarkersHistogram(), TGo4PreviewPanelSlots(), and ~TGo4PreviewPanelSlots().

TList* TGo4PreviewPanelSlots::fxRegionList [private]
 

list of temporary regions (window conditions).

Definition at line 240 of file TGo4PreviewPanelSlots.h.

Referenced by ActivateSelectedObject(), AddRegion(), ClearAllLabels(), CreateMarkerSetup(), GetActiveRegion(), LogMarkers(), MouseClick(), RedrawAllLabels(), SetMarkerSetup(), SetRegionsHistogram(), TGo4PreviewPanelSlots(), and ~TGo4PreviewPanelSlots().

TList* TGo4PreviewPanelSlots::fxPolygonList [private]
 

list of temporary polygons (poly conditions).

Definition at line 243 of file TGo4PreviewPanelSlots.h.

Referenced by ActivateSelectedObject(), AddPolygon(), ClearAllLabels(), CreateMarkerSetup(), GetActivePolygon(), LogMarkers(), RedrawAllLabels(), ScanCutG(), SetMarkerSetup(), SetPolygonsHistogram(), TGo4PreviewPanelSlots(), and ~TGo4PreviewPanelSlots().

TList* TGo4PreviewPanelSlots::fxLateXCleanups [private]
 

cleanup list of latex objects.

Definition at line 246 of file TGo4PreviewPanelSlots.h.

Referenced by AddLatex(), ClearAllLabels(), CreateMarkerSetup(), LogMarkers(), RedrawAllLabels(), SetMarkerSetup(), TGo4PreviewPanelSlots(), and ~TGo4PreviewPanelSlots().

TList* TGo4PreviewPanelSlots::fxLateXList [private]
 

list of temporary latex objects (text markers).

Definition at line 249 of file TGo4PreviewPanelSlots.h.

Referenced by ActivateSelectedObject(), AddLatex(), ClearAllLabels(), CreateMarkerSetup(), GetActiveLatex(), MouseClick(), RedrawAllLabels(), SetMarkerSetup(), TGo4PreviewPanelSlots(), and ~TGo4PreviewPanelSlots().

TList* TGo4PreviewPanelSlots::fxArrowCleanups [private]
 

cleanup list of arrow objects.

Definition at line 252 of file TGo4PreviewPanelSlots.h.

Referenced by AddArrow(), ClearAllLabels(), CreateMarkerSetup(), LogMarkers(), RedrawAllLabels(), SetMarkerSetup(), TGo4PreviewPanelSlots(), and ~TGo4PreviewPanelSlots().

TList* TGo4PreviewPanelSlots::fxArrowList [private]
 

list of temporary arrow objects.

Definition at line 255 of file TGo4PreviewPanelSlots.h.

Referenced by AddArrow(), ClearAllLabels(), CreateMarkerSetup(), RedrawAllLabels(), SetMarkerSetup(), TGo4PreviewPanelSlots(), and ~TGo4PreviewPanelSlots().

TList* TGo4PreviewPanelSlots::fxLegendCleanups [private]
 

cleanup list of legend objects.

Definition at line 258 of file TGo4PreviewPanelSlots.h.

Referenced by ClearLegend(), DrawLegend(), TGo4PreviewPanelSlots(), and ~TGo4PreviewPanelSlots().

Bool_t TGo4PreviewPanelSlots::fbTwoDimRegion [private]
 

true if next window region to create is 2 dimensional.

Definition at line 261 of file TGo4PreviewPanelSlots.h.

Referenced by MouseClick().

Bool_t TGo4PreviewPanelSlots::fbPickAgain [private]
 

if true, continue with previous mouse mode.

otherwise reset to root mode

Definition at line 264 of file TGo4PreviewPanelSlots.h.

Referenced by IsPickAgain(), and SetPickAgain().

Bool_t TGo4PreviewPanelSlots::fbCreateNewMarker [private]
 

if true, each mouse pick will create new marker (window, respectively).

otherwise move last marker to new pick location

Definition at line 268 of file TGo4PreviewPanelSlots.h.

Referenced by IsCreateNewMarker(), and SetCreateNewMarker().

TString TGo4PreviewPanelSlots::fxSelectedName [private]
 

keep name of last selected object.

Definition at line 271 of file TGo4PreviewPanelSlots.h.

Referenced by ActivateSelectedObject(), and GetSelectedName().

TVirtualPadEditor* TGo4PreviewPanelSlots::fxPeditor [private]
 

root pad editor for this viewpanel.

Definition at line 274 of file TGo4PreviewPanelSlots.h.

Referenced by BuildPadEditor(), CleanupPadEditor(), and ~TGo4PreviewPanelSlots().


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