#include <TGo4FitSlot.h>
Inheritance diagram for TGo4FitSlotList:
Public Methods | |
TGo4FitSlotList () | |
virtual | ~TGo4FitSlotList () |
virtual void | FillSlotList (TSeqCollection *lst) |
Fill list of TGo4FitSlot objects to provided collection. More... | |
void | SetUpdateSlotList () |
Update internal list of slots (if exists). More... | |
const TObjArray * | GetSlotList (Bool_t ForceUpdate=kFALSE) |
Return pointer in TObjArray with list of all slots in list. More... | |
Int_t | NumSlots () |
Returns number of slots in list. More... | |
TGo4FitSlot * | GetSlot (Int_t nslot) |
Returns slots from list with specified index. More... | |
TGo4FitSlot * | FindSlot (const char *FullSlotName) |
Find slot in list with given full name;. More... | |
Bool_t | ConnectSlots (TGo4FitSlot *slot1, TGo4FitSlot *slot2) |
Connects first slot to second. More... | |
Bool_t | ConnectSlots (const char *Slot1FullName, const char *Slot2FullName) |
Connects first slot to second. More... | |
TGo4FitSlot * | SetObject (TObject *obj, Bool_t iOwned=kFALSE) |
Set object to first suitable slot with defined ownership flag. More... | |
TGo4FitSlot * | SetObject (const char *PlaceName, TObject *obj, Bool_t iOwned=kFALSE) |
Set object to first suitable slot, which have PlaceName name or owner of which has PlaceName full name with defined ownership flag. More... | |
TGo4FitSlot * | IsObjectInSlots (TObject *obj) |
Checks, if object assign to one of slots. More... | |
Bool_t | CheckObjects (Bool_t MakeOut=kTRUE) |
Check, if all necessary objects are provided. More... | |
Bool_t | IsEmptySlots () |
Return kTRUE, if there are empty slots in list. More... | |
void | ClearObjects (const char *PlaceName=0, Bool_t NonOwned=kTRUE) |
Clear object from slot(s), which are defined by PlaceName condition. More... | |
void | ClearSlot (TGo4FitSlot *slot, Bool_t NonOwned) |
Clear object in specified slot. More... | |
void | SetSaveFlagForObjects (Int_t iSaveFlag, const char *PlaceName=0) |
Set save flag for object(s), assigned to fitter. More... | |
Protected Methods | |
void | CheckDuplicatesOnSlot () |
Resolve situation, when same object assigned to several slots with ownership flag. More... | |
void | PrepareSlotsForWriting () |
Protected Attributes | |
TObjArray * | fxSlotList |
Bool_t | fbUpdateSlotList |
|
Definition at line 189 of file TGo4FitSlot.cxx. References fbUpdateSlotList, and fxSlotList. |
|
Definition at line 194 of file TGo4FitSlot.cxx. References fxSlotList. |
|
Fill list of TGo4FitSlot objects to provided collection. This function should be implemented in every derived object, which would provide slots for outside. Reimplemented in TGo4FitData, TGo4FitDataGraph, TGo4FitDataHistogram, TGo4FitDataProfile, TGo4FitDataRidge, TGo4FitModelFromData, and TGo4Fitter. Definition at line 198 of file TGo4FitSlot.cxx. Referenced by TGo4Fitter::FillSlotList(), TGo4FitModelFromData::FillSlotList(), TGo4FitData::FillSlotList(), and GetSlotList(). |
|
Update internal list of slots (if exists).
Definition at line 202 of file TGo4FitSlot.cxx. References fbUpdateSlotList. Referenced by TGo4Fitter::AddData(), TGo4Fitter::AddModel(), TGo4Fitter::DeleteAllData(), TGo4Fitter::DeleteAllModels(), TGo4Fitter::DeleteModelsAssosiatedTo(), TGo4Fitter::RemoveData(), TGo4Fitter::RemoveModel(), TGo4FitModelFromData::SetDataAsModel(), and TGo4FitData::SetNumberOfTransSlots(). |
|
Return pointer in TObjArray with list of all slots in list. This list should be permanenetly updated in inherited class by SetUpdateSlotList() method to keep list of slots actual. Definition at line 206 of file TGo4FitSlot.cxx. References fbUpdateSlotList, FillSlotList(), and fxSlotList. Referenced by CheckDuplicatesOnSlot(), CheckObjects(), ClearObjects(), FindSlot(), GetSlot(), IsEmptySlots(), IsObjectInSlots(), NumSlots(), PrepareSlotsForWriting(), SetObject(), SetSaveFlagForObjects(), and TGo4FitPanelSlots::UpdateItem(). |
|
Returns number of slots in list.
Definition at line 219 of file TGo4FitSlot.cxx. References GetSlotList(). Referenced by TGo4Fitter::CheckSlotsBeforeDelete(), ClearSlot(), TGo4FitComponent::CollectParsTo(), TGo4FitPanelSlots::ExecutePopupForSlot(), TGo4FitPanelSlots::FillPopupForSlot(), TGo4FitterAbstract::ProcessObjects(), and TGo4FitPanelSlots::UpdateSlotsStatusList(). |
|
Returns slots from list with specified index.
Definition at line 223 of file TGo4FitSlot.cxx. References GetSlotList(). Referenced by TGo4Fitter::CheckSlotsBeforeDelete(), ClearSlot(), TGo4FitComponent::CollectParsTo(), TGo4FitPanelSlots::ExecutePopupForSlot(), TGo4FitPanelSlots::FillPopupForSlot(), TGo4FitterAbstract::ProcessObjects(), and TGo4FitPanelSlots::UpdateSlotsStatusList(). |
|
Find slot in list with given full name;.
Definition at line 228 of file TGo4FitSlot.cxx. References TGo4FitNamed::GetFullName(), GetSlotList(), and i. Referenced by ConnectSlots(). |
|
Connects first slot to second. Return kFALSE, if failed Definition at line 237 of file TGo4FitSlot.cxx. References TGo4FitSlot::ConnectToSlot(). Referenced by BuildFitter(), and ConnectSlots(). |
|
Connects first slot to second. Return kFALSE, if failed Definition at line 242 of file TGo4FitSlot.cxx. References ConnectSlots(), and FindSlot(). |
|
Set object to first suitable slot with defined ownership flag. Slot must be empty Return pointer on slot, to which object was assigned Definition at line 246 of file TGo4FitSlot.cxx. References GetSlotList(), i, TGo4FitSlot::IsEmpty(), TGo4FitSlot::IsSuitable(), and TGo4FitSlot::SetObject(). Referenced by TGo4FitPanelSlots::CreateDataFor(), TGo4FitPanelSlots::DropEvent(), Example6(), Example7(), Example9(), SetObject(), and TXXXCalibPar::UpdateFrom(). |
|
Set object to first suitable slot, which have PlaceName name or owner of which has PlaceName full name with defined ownership flag. If PlaceName==0, SetObject(TObject*, Bool_t) method will be called. If only slot suits to defined condition, object in slot will be overwritten. Return pointer on slot, to which object was assigned Definition at line 263 of file TGo4FitSlot.cxx. References TGo4FitNamed::GetFullName(), TGo4FitNamed::GetOwnerFullName(), GetSlotList(), i, TGo4FitSlot::IsEmpty(), TGo4FitSlot::IsSuitable(), TGo4FitSlot::SetObject(), and SetObject(). |
|
Checks, if object assign to one of slots. Return pointer on slot, to which object is assigned, otherwise 0. Definition at line 298 of file TGo4FitSlot.cxx. References TGo4FitSlot::GetObject(), TGo4FitSlot::GetOwned(), GetSlotList(), and i. |
|
Check, if all necessary objects are provided.
Definition at line 316 of file TGo4FitSlot.cxx. References TGo4FitSlot::GetClass(), TGo4FitNamed::GetOwnerFullName(), GetSlotList(), i, and TGo4FitSlot::IsRequired(). Referenced by TGo4FitterAbstract::Initialize(). |
|
Return kTRUE, if there are empty slots in list.
Definition at line 335 of file TGo4FitSlot.cxx. References GetSlotList(), i, and TGo4FitSlot::IsEmpty(). Referenced by TGo4FitPanelSlots::DragMoveEvent(). |
|
Clear object from slot(s), which are defined by PlaceName condition. If PlaceName==0, all slots will be clead. If NonOwned = kTRUE, only not owned objects will be cleared (pointer will be set to 0) otherwise all pointers will be cleared and owned objects will be deleted Definition at line 347 of file TGo4FitSlot.cxx. References ClearSlot(), TGo4FitNamed::GetFullName(), TGo4FitNamed::GetOwnerFullName(), GetSlotList(), and i. |
|
Clear object in specified slot. Checks, if same object is assign to another slot. Used by ClearObjects() method. Definition at line 362 of file TGo4FitSlot.cxx. References TGo4FitSlot::Clear(), TGo4FitSlot::GetConnectedSlot(), TGo4FitSlot::GetObject(), TGo4FitSlot::GetOwned(), GetSlot(), i, TGo4FitSlot::IsConnectedToSlot(), NumSlots(), and TGo4FitSlot::SetOwned(). Referenced by TGo4Fitter::CheckSlotsBeforeDelete(), ClearObjects(), and TGo4FitPanelSlots::ExecutePopupForSlot(). |
|
Set save flag for object(s), assigned to fitter. If save flag set to 0, object(s) wil be saved, if it owned by slot. If save flag set to 1, object(s) will be saved in any case. If save flag set to 2, object(s) will never be saved. PlaceName define exact slot name or owner name if (PlaceName==0), flag will be set for all slots in list. Definition at line 389 of file TGo4FitSlot.cxx. References TGo4FitNamed::GetFullName(), TGo4FitNamed::GetOwnerFullName(), GetSlotList(), i, and TGo4FitSlot::SetSaveFlag(). Referenced by TGo4FitPanelSlots::Cmd_SaveFitter(), and TGo4FitPanelSlots::Fitter_SaveToBrowser(). |
|
Resolve situation, when same object assigned to several slots with ownership flag.
Definition at line 404 of file TGo4FitSlot.cxx. References TGo4FitSlot::GetObject(), TGo4FitSlot::GetOwned(), GetSlotList(), TGo4FitSlot::IsConnectedToSlot(), and TGo4FitSlot::SetOwned(). Referenced by TGo4Fitter::~TGo4Fitter(). |
|
Definition at line 419 of file TGo4FitSlot.cxx. References TGo4FitSlot::GetObject(), TGo4FitSlot::GetOwned(), GetSlotList(), TGo4FitSlot::HasSaveSettings(), TGo4FitSlot::IsConnectedToSlot(), TGo4FitSlot::SetOwned(), TGo4FitSlot::SetSaveSettings(), and TGo4FitSlot::WillBeSaved(). |
|
Definition at line 359 of file TGo4FitSlot.h. Referenced by GetSlotList(), TGo4FitSlotList(), and ~TGo4FitSlotList(). |
|
Definition at line 360 of file TGo4FitSlot.h. Referenced by GetSlotList(), SetUpdateSlotList(), and TGo4FitSlotList(). |