Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members

TGo4AbstractInterface Class Reference

Generic interface to GUI functionality. More...

#include <TGo4AbstractInterface.h>

Inheritance diagram for TGo4AbstractInterface:

TGo4Interface TGo4Script List of all members.

Public Member Functions

virtual ~TGo4AbstractInterface ()
 destructor
TGo4ObjectManagerOM () const
 Returns pointer on object manager.
TGo4BrowserProxyBrowser () const
 Returns pointer on browser proxy.
TGo4AnalysisProxyAnalysis ()
 Returns pointer on analysis proxy.
virtual void HotStart (const char *filename)=0
 Executes hotstart file, generated in go4 GUI.
virtual void LoadLibrary (const char *fname)
 Load specified ROOT library.
virtual void OpenFile (const char *fname)
 Open specified file in read-only mode* File and its structure should appear in browser.
virtual TString FindItem (const char *objname)
 Find item with given object name.
virtual Bool_t CopyItem (const char *itemname)
 Copy item to workspace.
virtual Bool_t DeleteItem (const char *itemname)
 Delete item (if allowed).
virtual void FetchItem (const char *itemname, Int_t wait_time=2000)
 Fetch item from data source.
virtual TObject * GetObject (const char *itemname, Int_t updatelevel=1)
 Returns object, assigned to specified browser item.
virtual TString SaveToMemory (const char *path, TObject *obj, Bool_t ownership=kFALSE)
 Save object in browser workspace.
virtual Bool_t SaveToFile (const char *itemname, const char *filename, const char *filetitle=0)
 Save specified browser item to file.
virtual Bool_t ExportToFile (const char *itemname, const char *dirpath, const char *format, const char *filetitle=0)
 Export browser item to different file formats.
virtual void ConnectHServer (const char *servername, Int_t portnumber, const char *basename, const char *userpass, const char *filter)
 Connecta to GSI histogram server.
virtual void Wait (double tm_sec)
 Wait specified number of seconds.
virtual void Message (const char *msg)
 Dsiplay message in GUI status line.
virtual void LaunchAnalysis ()
 Launch analysis in client mode, using default configuration.
virtual void LaunchAnalysis (const char *ClientName, const char *ClientDir, const char *ClientExec, const char *ClientNode, Int_t ShellMode=2, Int_t TermMode=1)
 Launch analysis in client mode.
virtual void ConnectAnalysis (const char *ServerNode, Int_t ServerPort, Int_t UserMode, const char *password=0)
 Connect to running analysis server.
virtual void WaitAnalysis (Int_t delay_sec)
 Waits, until connection to analysis is established.
virtual Bool_t IsAnalysisConnected ()
 Indicate, if analysis was succesfully connected.
virtual void DisconnectAnalysis ()
 Disconnects from running analysis.
virtual void ShutdownAnalysis ()
 Shutdown running analysis.
virtual void ExecuteLine (const char *remotecmd)
 Execute one macro line on analysis side.
virtual void RequestAnalysisConfig ()
 Requests current analysis configuration.
virtual void SubmitAnalysisConfig ()
 Submit configuration to analysis.
virtual void StartAnalysis ()
 Starts (resume) analysis execution.
virtual void StopAnalysis ()
 Stop (suspend) analysis execution.
virtual void SetAnalysisTerminalMode (int mode)
 Set analysis terminal window mode.
virtual void SetAnalysisConfigMode (int mode)
 Set analysis configuration window mode.
virtual void MonitorItem (const char *itemname, Bool_t on=kTRUE)
 Enable/disable monitoring of browser item.
virtual void StartMonitoring (Int_t period=10)
 Start monitoring mode.
virtual void StopMonitoring ()
 Stop monitoring mode.
virtual void AnalysisAutoSave (const char *filename, Int_t interval, Int_t compression, Bool_t enabled, Bool_t overwrite)
 Configure autosave properties of analysis.
virtual void AnalysisConfigName (const char *filename)
 Configure name of file, where analysis configuration will be saved.
virtual void ConfigStep (const char *stepname, Bool_t enableprocess, Bool_t enablesource, Bool_t enablestore)
 Set basic step property.
virtual void StepFileSource (const char *stepname, const char *sourcename, int timeout)
 Set file source as step data source.
virtual void StepMbsFileSource (const char *stepname, const char *sourcename, int timeout, const char *TagFile, int start, int stop, int interval)
 Set MBS file source as step data source.
virtual void StepMbsStreamSource (const char *stepname, const char *sourcename, int timeout)
 Set MBS stream server as step data source.
virtual void StepMbsTransportSource (const char *stepname, const char *sourcename, int timeout)
 Set MBS transport server as step data source.
virtual void StepMbsEventServerSource (const char *stepname, const char *sourcename, int timeout)
 Set MBS event server as step data source.
virtual void StepMbsRevServSource (const char *stepname, const char *sourcename, int timeout, int port)
 Set MBS remote event server as step data source.
virtual void StepRandomSource (const char *stepname, const char *sourcename, int timeout)
 Set random generator as step data source.
virtual void StepUserSource (const char *stepname, const char *sourcename, int timeout, int port, const char *expr)
 Set user data source as step data source.
virtual void StepFileStore (const char *stepname, const char *storename, bool overwrite, int bufsize, int splitlevel, int compression)
 Set file as step data storage.
virtual void StepBackStore (const char *stepname, const char *storename, int bufsize, int splitlevel)
 Set back store ss step data storage.
virtual ViewPanelHandle StartViewPanel ()
 Create new view panel.
virtual ViewPanelHandle StartViewPanel (int x, int y, int width, int height, int mode=1, TGo4Picture *pic=0)
 Create new viewpanel with specified parameters.
virtual TString GetViewPanelName (ViewPanelHandle panel)
 Return name of viewpanel.
virtual ViewPanelHandle FindViewPanel (const char *name)
 Return handle on viewpanel with specified name.
virtual Bool_t SetViewPanelName (ViewPanelHandle panel, const char *newname)
 Change name of viewpanel.
virtual ViewPanelHandle GetActiveViewPanel ()
 Return handle of last active viewpanel.
virtual void RedrawPanel (ViewPanelHandle panel)
 Forces of panel redraw.
virtual void DivideViewPanel (ViewPanelHandle panel, Int_t numX, Int_t numY)
 Divide viewpanel on subpads.
virtual TPad * SelectPad (ViewPanelHandle panel, Int_t number=0)
 Set active pad on viewpanel.
virtual void SetSuperimpose (ViewPanelHandle panel, Bool_t on=kTRUE)
 Set superimpose flag for active pad of viewpanel.
virtual Bool_t DrawItem (const char *itemname, ViewPanelHandle panel=0, const char *drawopt=0)
 Draw browser item on specified viewpanel.
virtual void RedrawItem (const char *itemname)
 Redraw item of given name on all viewpanels/editors.

Static Public Member Functions

static TGo4AbstractInterfaceInstance ()
 Return pointer on instance of implemntation of TGo4AbstractInterface class Normally, inside CINT script one should use "go4" variable, which containes TGo4AbstractInterface::Instance() value.
static void DeleteInstance ()
 Delete instance of interface class.

Protected Member Functions

 TGo4AbstractInterface ()
 Constructor.
void Initialize (TGo4ObjectManager *om, TGo4BrowserProxy *br)
virtual void ProcessEvents (Int_t timeout=-1)=0
Bool_t LoadHotStart (const char *filename)
Bool_t IsHotStart ()
const char * NextHotStartCmd ()
void FreeHotStartCmds ()

Static Protected Attributes

static TGo4AbstractInterfacefgInstance = 0

Private Attributes

TGo4ObjectManagerfOM
TGo4BrowserProxyfBrowser
TList fxCommands

Detailed Description

Generic interface to GUI functionality.

Provide methods like open file, request object from analysis and so on.

Methods of that class can be used in arbitrary ROOT script inside/outside Go4 GUI. To access these methods, one should use "go4" variable, which is exported to CINT global variable space when instance of implementation of TGo4AbstractInterface class is created. One can also access such instance also via TGo4AbstractInterface::Instance() static method.

There are two implementations of TGo4AbstractInterface class: TGo4Script - used together with Go4 GUI, created automatically when GUI started TGo4Interface - can be used in non GUI mode, must be created once by user As long as these are two implementation of the same interface, macro, which uses internally only go4 instance, should work similarly in both GUI and non GUI mode.

Typicaly one should use interface, provided by that class, in macro, executed inside GUI. Simple example of such macro: { go4->OpenFile("example.root"); go4->DrawItem("example.root/hist1"); } Here one open file from disk and displays one histogram from that file.

Most of the action with objects are going via object manager, where each object (item) has unique name, which includes full path to that object in objects structures. In our example item name is "example.root/hist1". To locate object of known name in objects structure, one can use FindItem() method. In that case example will look like: { go4->OpenFile("example.root"); go4->DrawItem(go4->FindItem("hist1")); }

There are several examples of GUI macros, which can be found in $GO4SYS/Go4GUI/scripts directory. Description of each method can be seen futher in this document. Hot start feature of go4 was implemented with usage of that class, therefore one can produce hotstart files in Go4 GUI and take some generated code from it directly. For instance, displaing of complex viewpanels or starting and configuring of analysis.

Definition at line 76 of file TGo4AbstractInterface.h.


Constructor & Destructor Documentation

TGo4AbstractInterface::TGo4AbstractInterface  )  [protected]
 

Constructor.

Definition at line 43 of file TGo4AbstractInterface.cxx.

References fgInstance.

TGo4AbstractInterface::~TGo4AbstractInterface  )  [virtual]
 

destructor

Definition at line 64 of file TGo4AbstractInterface.cxx.

References fBrowser, fgInstance, fOM, and FreeHotStartCmds().


Member Function Documentation

void TGo4AbstractInterface::Initialize TGo4ObjectManager om,
TGo4BrowserProxy br
[protected]
 

Definition at line 52 of file TGo4AbstractInterface.cxx.

References fBrowser, and fOM.

Referenced by TGo4Interface::TGo4Interface(), and TGo4Script::TGo4Script().

virtual void TGo4AbstractInterface::ProcessEvents Int_t  timeout = -1  )  [protected, pure virtual]
 

Implemented in TGo4Script, and TGo4Interface.

Referenced by ConnectHServer(), OpenFile(), and SaveToMemory().

Bool_t TGo4AbstractInterface::LoadHotStart const char *  filename  )  [protected]
 

Definition at line 235 of file TGo4AbstractInterface.cxx.

References FreeHotStartCmds(), and fxCommands.

Referenced by TGo4Interface::HotStart(), and TGo4Script::StartScriptExecution().

Bool_t TGo4AbstractInterface::IsHotStart  )  [protected]
 

Definition at line 255 of file TGo4AbstractInterface.cxx.

References fxCommands.

Referenced by TGo4Script::ContinueExecution(), TGo4Script::DoPostProcessing(), TGo4Interface::HandleTimer(), TGo4Interface::ProcessHotStart(), and TGo4Interface::WaitAnalysis().

const char * TGo4AbstractInterface::NextHotStartCmd  )  [protected]
 

Definition at line 260 of file TGo4AbstractInterface.cxx.

References fxCommands.

Referenced by TGo4Script::ContinueExecution(), and TGo4Interface::ProcessHotStart().

void TGo4AbstractInterface::FreeHotStartCmds  )  [protected]
 

Definition at line 281 of file TGo4AbstractInterface.cxx.

References fxCommands.

Referenced by TGo4Script::FinishExecution(), TGo4Interface::HandleTimer(), TGo4Interface::HotStart(), LoadHotStart(), and ~TGo4AbstractInterface().

TGo4AbstractInterface * TGo4AbstractInterface::Instance  )  [static]
 

Return pointer on instance of implemntation of TGo4AbstractInterface class Normally, inside CINT script one should use "go4" variable, which containes TGo4AbstractInterface::Instance() value.

Definition at line 33 of file TGo4AbstractInterface.cxx.

References fgInstance.

Referenced by TGo4Script::ScriptInstance().

void TGo4AbstractInterface::DeleteInstance  )  [static]
 

Delete instance of interface class.

Definition at line 38 of file TGo4AbstractInterface.cxx.

References fgInstance.

Referenced by TGo4BrowserItem::DeleteItem(), and TGo4MainWindow::~TGo4MainWindow().

TGo4ObjectManager* TGo4AbstractInterface::OM  )  const [inline]
 

Returns pointer on object manager.

TGo4ObjectManager class should only be used when standard interface does not provide required functionality. Can be accessed direcly via "om" variable.

Definition at line 108 of file TGo4AbstractInterface.h.

References fOM.

Referenced by TGo4Interface::AddAnalysisProxy(), and TGo4Interface::~TGo4Interface().

TGo4BrowserProxy* TGo4AbstractInterface::Browser  )  const [inline]
 

Returns pointer on browser proxy.

TGo4BrowserProxy class provides complete interface to Go4 browser functionality. Should only be used when interface does not provide required functionality. Can be accessed direcly via "br" variable.

Definition at line 114 of file TGo4AbstractInterface.h.

References fBrowser.

Referenced by TGo4Interface::AddAnalysisProxy(), Analysis(), ConnectHServer(), CopyItem(), DeleteItem(), TGo4Interface::DisconnectAnalysis(), ExportToFile(), FetchItem(), FindItem(), GetObject(), MonitorItem(), OpenFile(), RedrawItem(), SaveToFile(), SaveToMemory(), TGo4Interface::ShutdownAnalysis(), StartMonitoring(), and StopMonitoring().

TGo4AnalysisProxy * TGo4AbstractInterface::Analysis  ) 
 

Returns pointer on analysis proxy.

TGo4AnalysisProxy class provide access to analysis controlling instance in program. Noramlly should not be used in GUI script.

Definition at line 78 of file TGo4AbstractInterface.cxx.

References Browser().

Referenced by TGo4Interface::ConnectAnalysis(), TGo4Interface::DisconnectAnalysis(), TGo4Script::execGUICommands(), ExecuteLine(), TGo4Interface::GetAnalStatus(), TGo4Interface::HandleTimer(), IsAnalysisConnected(), RequestAnalysisConfig(), TGo4Interface::ShutdownAnalysis(), TGo4Interface::StartAnalysis(), TGo4Interface::StopAnalysis(), TGo4Interface::SubmitAnalysisConfig(), TGo4Interface::WaitAnalysis(), and TGo4Interface::~TGo4Interface().

virtual void TGo4AbstractInterface::HotStart const char *  filename  )  [pure virtual]
 

Executes hotstart file, generated in go4 GUI.

Hot start files can not be executed as normal CINT scripts, therefore one should use this method to activate them

Implemented in TGo4Script, and TGo4Interface.

void TGo4AbstractInterface::LoadLibrary const char *  fname  )  [virtual]
 

Load specified ROOT library.

Definition at line 83 of file TGo4AbstractInterface.cxx.

void TGo4AbstractInterface::OpenFile const char *  fname  )  [virtual]
 

Open specified file in read-only mode* File and its structure should appear in browser.

Definition at line 99 of file TGo4AbstractInterface.cxx.

References Browser(), and ProcessEvents().

TString TGo4AbstractInterface::FindItem const char *  objname  )  [virtual]
 

Find item with given object name.

Item name includes object name and name of all parent folders. For instance histogram of name "His1" in analysis will have item name "Analysis/Histograms/His1".

Definition at line 191 of file TGo4AbstractInterface.cxx.

References Browser().

Bool_t TGo4AbstractInterface::CopyItem const char *  itemname  )  [virtual]
 

Copy item to workspace.

If there is subfolders with items, they also will be copied.

Definition at line 199 of file TGo4AbstractInterface.cxx.

References Browser().

Bool_t TGo4AbstractInterface::DeleteItem const char *  itemname  )  [virtual]
 

Delete item (if allowed).

Can be used to close file, delete memory object, close hiostogram server connection.

Definition at line 204 of file TGo4AbstractInterface.cxx.

References Browser().

void TGo4AbstractInterface::FetchItem const char *  itemname,
Int_t  wait_time = 2000
[virtual]
 

Fetch item from data source.

Request item from data source, to which item corresponds to. If this is file or histogram server, object will be returned immdediately. If this is an item from analysis, first request will be send and then interface will wait "wait_time" milliseconds that object is arrived. If wait_time==0, no waiting will be done and most probably, new object will be assigned to that item several seconds after method is return

Definition at line 209 of file TGo4AbstractInterface.cxx.

References Browser().

TObject * TGo4AbstractInterface::GetObject const char *  itemname,
Int_t  updatelevel = 1
[virtual]
 

Returns object, assigned to specified browser item.

Parameter updatelevel specifies, how object will be requested from data source, to which item correspond to. Possible values for updatelevel parameter: 0 - no request will be done, return last requested object 1 - request to data source only first time, no waiting 2 - request to data source in any case, no waiting >9 - request to data source and wait as many milliseconds as specified by updatelevel Wating required, when object requested from the analysis

Definition at line 219 of file TGo4AbstractInterface.cxx.

References Browser().

Referenced by TGo4Interface::DrawItem().

TString TGo4AbstractInterface::SaveToMemory const char *  path,
TObject *  obj,
Bool_t  ownership = kFALSE
[virtual]
 

Save object in browser workspace.

Object of any type can be saved in browser. It will appiar in browser folder "Workspace", where local memory objects are placed. Parameters: path - subpath in "Workspace" folder, where object should be placed obj - pointer ob object ownership - is browser becomes owner of that object If item of that name exists in browser, it will be overwritten by new object

Definition at line 226 of file TGo4AbstractInterface.cxx.

References Browser(), and ProcessEvents().

Bool_t TGo4AbstractInterface::SaveToFile const char *  itemname,
const char *  filename,
const char *  filetitle = 0
[virtual]
 

Save specified browser item to file.

Only object, which are already fetched from the data source, will be saved. Therefore, before one call this method, one probably should use FetchItem() method to get objects from file/analysis/histogram server before save them. If item is folder and contains sub-items, they also will be saved. Only binary ROOT files (extension .root) and XML file (extension .xml) are supported.

Definition at line 105 of file TGo4AbstractInterface.cxx.

References Browser().

Bool_t TGo4AbstractInterface::ExportToFile const char *  itemname,
const char *  dirpath,
const char *  format,
const char *  filetitle = 0
[virtual]
 

Export browser item to different file formats.

One, probably, should use FetchItem() before calling this method. If item is folder and contains sub-items, they also will be exported. Parameters: itemname - name of browser, which should be exported, dirpath - directory on disk, where files should be created. format - export file format, can be "ASCII" - text format "Radware" - Radware format (Origin) "ROOT" - binary ROOT format "ROOT XML" - xml ROOT format filetitle - title of create file (only for ROOT formats)

Definition at line 112 of file TGo4AbstractInterface.cxx.

References Browser(), TGo4Iter::getslot(), and TGo4Iter::next().

void TGo4AbstractInterface::ConnectHServer const char *  servername,
Int_t  portnumber,
const char *  basename,
const char *  userpass,
const char *  filter
[virtual]
 

Connecta to GSI histogram server.

Creates appropriate entry in browser and provides access to histogram. Parameters: servername - IP server name portnumber - socket port number basename - histogram server base name userpass - password to access histogram server filter - filter for historgams names Several connections to different histogram servers are allowed

Definition at line 138 of file TGo4AbstractInterface.cxx.

References Browser(), and ProcessEvents().

virtual void TGo4AbstractInterface::Wait double  tm_sec  )  [inline, virtual]
 

Wait specified number of seconds.

Suppress macro execution, but keeps GUI functional, therefore it is different from gSystem->Sleep() call.

Reimplemented in TGo4Script, and TGo4Interface.

Definition at line 225 of file TGo4AbstractInterface.h.

virtual void TGo4AbstractInterface::Message const char *  msg  )  [inline, virtual]
 

Dsiplay message in GUI status line.

Reimplemented in TGo4Script, and TGo4Interface.

Definition at line 228 of file TGo4AbstractInterface.h.

virtual void TGo4AbstractInterface::LaunchAnalysis  )  [inline, virtual]
 

Launch analysis in client mode, using default configuration.

Can only work in standard GUI mode

Reimplemented in TGo4Script, and TGo4Interface.

Definition at line 234 of file TGo4AbstractInterface.h.

virtual void TGo4AbstractInterface::LaunchAnalysis const char *  ClientName,
const char *  ClientDir,
const char *  ClientExec,
const char *  ClientNode,
Int_t  ShellMode = 2,
Int_t  TermMode = 1
[inline, virtual]
 

Launch analysis in client mode.

Parameters: ClientName - arbitrary name of analysis, used for diaplay ClientDir - directory, where analysis should be started ClientExec - main analysis executable ClientNode - node name, where analysis should be started ShellMode - shell, used to launch analysis: 1 - rsh, 2 - ssh [default] TermMode - terminal program: 1 - internal Qt window, 2 - xterm, 3 - KDE konsole

Reimplemented in TGo4Script, and TGo4Interface.

Definition at line 244 of file TGo4AbstractInterface.h.

virtual void TGo4AbstractInterface::ConnectAnalysis const char *  ServerNode,
Int_t  ServerPort,
Int_t  UserMode,
const char *  password = 0
[inline, virtual]
 

Connect to running analysis server.

Parameters: ServerNode - node to connect to, ServerPort - connection port number, UserMode - mode of user operation : 0 - observer, 1 - controller, 2 - administrator password - access password, which should correspond to specified UserMode

Reimplemented in TGo4Script, and TGo4Interface.

Definition at line 257 of file TGo4AbstractInterface.h.

virtual void TGo4AbstractInterface::WaitAnalysis Int_t  delay_sec  )  [inline, virtual]
 

Waits, until connection to analysis is established.

Method must be called before any other action like configuration, start/stop can be done. If analysis is connected, IsAnalysisConnected() return kTRUE. delay_sec specifies, how long one should wait until analysis is connected

Reimplemented in TGo4Script, and TGo4Interface.

Definition at line 267 of file TGo4AbstractInterface.h.

Bool_t TGo4AbstractInterface::IsAnalysisConnected  )  [virtual]
 

Indicate, if analysis was succesfully connected.

Definition at line 152 of file TGo4AbstractInterface.cxx.

References Analysis().

virtual void TGo4AbstractInterface::DisconnectAnalysis  )  [inline, virtual]
 

Disconnects from running analysis.

If analysis is running in client mode, analysis will be shutdown.

Reimplemented in TGo4Script, and TGo4Interface.

Definition at line 274 of file TGo4AbstractInterface.h.

virtual void TGo4AbstractInterface::ShutdownAnalysis  )  [inline, virtual]
 

Shutdown running analysis.

If analysis is running in server mode, only user with administrator privilegies can do this

Reimplemented in TGo4Script, and TGo4Interface.

Definition at line 279 of file TGo4AbstractInterface.h.

void TGo4AbstractInterface::ExecuteLine const char *  remotecmd  )  [virtual]
 

Execute one macro line on analysis side.

This allows to call any action on analysis, including execution scripts with ".x userscript.C". One should not mix scripts, written for analysis and scripts, written for GUI.

Definition at line 158 of file TGo4AbstractInterface.cxx.

References Analysis(), TGo4AnalysisProxy::ExecuteLine(), and TGo4Log::Message().

void TGo4AbstractInterface::RequestAnalysisConfig  )  [virtual]
 

Requests current analysis configuration.

Definition at line 167 of file TGo4AbstractInterface.cxx.

References Analysis(), and TGo4AnalysisProxy::RequestAnalysisSettings().

virtual void TGo4AbstractInterface::SubmitAnalysisConfig  )  [inline, virtual]
 

Submit configuration to analysis.

Configurations can be changed with following methods:

To understand more how these methods can be used together, one should launch analysis, configure it and then generate hotstart file. In this file one can find correct sequence and parameters for all these methods.

Reimplemented in TGo4Script, and TGo4Interface.

Definition at line 311 of file TGo4AbstractInterface.h.

virtual void TGo4AbstractInterface::StartAnalysis  )  [inline, virtual]
 

Starts (resume) analysis execution.

Reimplemented in TGo4Script, and TGo4Interface.

Definition at line 314 of file TGo4AbstractInterface.h.

virtual void TGo4AbstractInterface::StopAnalysis  )  [inline, virtual]
 

Stop (suspend) analysis execution.

Reimplemented in TGo4Script, and TGo4Interface.

Definition at line 317 of file TGo4AbstractInterface.h.

virtual void TGo4AbstractInterface::SetAnalysisTerminalMode int  mode  )  [inline, virtual]
 

Set analysis terminal window mode.

Parameters mode indicate that terminal window: -1 - closed, 0 - minimized, 1 - normal state

Reimplemented in TGo4Script.

Definition at line 322 of file TGo4AbstractInterface.h.

virtual void TGo4AbstractInterface::SetAnalysisConfigMode int  mode  )  [inline, virtual]
 

Set analysis configuration window mode.

Parameters mode indicate that configuration window: -1 - closed, 0 - minimized, 1 - normal state

Reimplemented in TGo4Script.

Definition at line 327 of file TGo4AbstractInterface.h.

void TGo4AbstractInterface::MonitorItem const char *  itemname,
Bool_t  on = kTRUE
[virtual]
 

Enable/disable monitoring of browser item.

In monitoring mode item regularly will be requested from analysis and viewpanels, where item is drawn, will be updated

Definition at line 174 of file TGo4AbstractInterface.cxx.

References Browser().

void TGo4AbstractInterface::StartMonitoring Int_t  period = 10  )  [virtual]
 

Start monitoring mode.

Parameter "period" specifies how often (in seconds) each monitored item will be updated.

Definition at line 181 of file TGo4AbstractInterface.cxx.

References Browser().

void TGo4AbstractInterface::StopMonitoring  )  [virtual]
 

Stop monitoring mode.

Definition at line 186 of file TGo4AbstractInterface.cxx.

References Browser().

virtual void TGo4AbstractInterface::AnalysisAutoSave const char *  filename,
Int_t  interval,
Int_t  compression,
Bool_t  enabled,
Bool_t  overwrite
[inline, virtual]
 

Configure autosave properties of analysis.

Reimplemented in TGo4Script, and TGo4Interface.

Definition at line 343 of file TGo4AbstractInterface.h.

virtual void TGo4AbstractInterface::AnalysisConfigName const char *  filename  )  [inline, virtual]
 

Configure name of file, where analysis configuration will be saved.

Reimplemented in TGo4Script, and TGo4Interface.

Definition at line 350 of file TGo4AbstractInterface.h.

virtual void TGo4AbstractInterface::ConfigStep const char *  stepname,
Bool_t  enableprocess,
Bool_t  enablesource,
Bool_t  enablestore
[inline, virtual]
 

Set basic step property.

Reimplemented in TGo4Script, and TGo4Interface.

Definition at line 355 of file TGo4AbstractInterface.h.

virtual void TGo4AbstractInterface::StepFileSource const char *  stepname,
const char *  sourcename,
int  timeout
[inline, virtual]
 

Set file source as step data source.

Reimplemented in TGo4Script, and TGo4Interface.

Definition at line 361 of file TGo4AbstractInterface.h.

virtual void TGo4AbstractInterface::StepMbsFileSource const char *  stepname,
const char *  sourcename,
int  timeout,
const char *  TagFile,
int  start,
int  stop,
int  interval
[inline, virtual]
 

Set MBS file source as step data source.

Reimplemented in TGo4Script, and TGo4Interface.

Definition at line 366 of file TGo4AbstractInterface.h.

virtual void TGo4AbstractInterface::StepMbsStreamSource const char *  stepname,
const char *  sourcename,
int  timeout
[inline, virtual]
 

Set MBS stream server as step data source.

Reimplemented in TGo4Script, and TGo4Interface.

Definition at line 375 of file TGo4AbstractInterface.h.

virtual void TGo4AbstractInterface::StepMbsTransportSource const char *  stepname,
const char *  sourcename,
int  timeout
[inline, virtual]
 

Set MBS transport server as step data source.

Reimplemented in TGo4Script, and TGo4Interface.

Definition at line 380 of file TGo4AbstractInterface.h.

virtual void TGo4AbstractInterface::StepMbsEventServerSource const char *  stepname,
const char *  sourcename,
int  timeout
[inline, virtual]
 

Set MBS event server as step data source.

Reimplemented in TGo4Script, and TGo4Interface.

Definition at line 385 of file TGo4AbstractInterface.h.

virtual void TGo4AbstractInterface::StepMbsRevServSource const char *  stepname,
const char *  sourcename,
int  timeout,
int  port
[inline, virtual]
 

Set MBS remote event server as step data source.

Reimplemented in TGo4Script, and TGo4Interface.

Definition at line 390 of file TGo4AbstractInterface.h.

virtual void TGo4AbstractInterface::StepRandomSource const char *  stepname,
const char *  sourcename,
int  timeout
[inline, virtual]
 

Set random generator as step data source.

Reimplemented in TGo4Script, and TGo4Interface.

Definition at line 396 of file TGo4AbstractInterface.h.

virtual void TGo4AbstractInterface::StepUserSource const char *  stepname,
const char *  sourcename,
int  timeout,
int  port,
const char *  expr
[inline, virtual]
 

Set user data source as step data source.

Reimplemented in TGo4Script, and TGo4Interface.

Definition at line 401 of file TGo4AbstractInterface.h.

virtual void TGo4AbstractInterface::StepFileStore const char *  stepname,
const char *  storename,
bool  overwrite,
int  bufsize,
int  splitlevel,
int  compression
[inline, virtual]
 

Set file as step data storage.

Reimplemented in TGo4Script, and TGo4Interface.

Definition at line 408 of file TGo4AbstractInterface.h.

virtual void TGo4AbstractInterface::StepBackStore const char *  stepname,
const char *  storename,
int  bufsize,
int  splitlevel
[inline, virtual]
 

Set back store ss step data storage.

Reimplemented in TGo4Script, and TGo4Interface.

Definition at line 416 of file TGo4AbstractInterface.h.

virtual ViewPanelHandle TGo4AbstractInterface::StartViewPanel  )  [inline, virtual]
 

Create new view panel.

Handle, returned by this method, must be used for other operation, like DivideViewPanel() or SelectPad()

Reimplemented in TGo4Script, and TGo4Interface.

Definition at line 426 of file TGo4AbstractInterface.h.

virtual ViewPanelHandle TGo4AbstractInterface::StartViewPanel int  x,
int  y,
int  width,
int  height,
int  mode = 1,
TGo4Picture pic = 0
[inline, virtual]
 

Create new viewpanel with specified parameters.

Returns handle of newly created viewpanel. Parameters: x,y - left top corner coordinate of view panel; width, height - panel size; mode - diplay view panel 0 - minimized, 1 - normal, 2 - maximized; pic - TGo4Picture object, which includes configuration of viewpanel. To understand usage of this method together with TGo4Picture class, one can create and configure viewpanel and then create hotstart file. This file will include complete TGo4Picture configuration, which contains attributes like colors, ranges, pad divisions and so on.

Reimplemented in TGo4Script, and TGo4Interface.

Definition at line 438 of file TGo4AbstractInterface.h.

virtual TString TGo4AbstractInterface::GetViewPanelName ViewPanelHandle  panel  )  [inline, virtual]
 

Return name of viewpanel.

Reimplemented in TGo4Script, and TGo4Interface.

Definition at line 441 of file TGo4AbstractInterface.h.

virtual ViewPanelHandle TGo4AbstractInterface::FindViewPanel const char *  name  )  [inline, virtual]
 

Return handle on viewpanel with specified name.

Reimplemented in TGo4Script, and TGo4Interface.

Definition at line 444 of file TGo4AbstractInterface.h.

virtual Bool_t TGo4AbstractInterface::SetViewPanelName ViewPanelHandle  panel,
const char *  newname
[inline, virtual]
 

Change name of viewpanel.

Reimplemented in TGo4Script, and TGo4Interface.

Definition at line 447 of file TGo4AbstractInterface.h.

virtual ViewPanelHandle TGo4AbstractInterface::GetActiveViewPanel  )  [inline, virtual]
 

Return handle of last active viewpanel.

Reimplemented in TGo4Script, and TGo4Interface.

Definition at line 450 of file TGo4AbstractInterface.h.

virtual void TGo4AbstractInterface::RedrawPanel ViewPanelHandle  panel  )  [inline, virtual]
 

Forces of panel redraw.

Reimplemented in TGo4Script, and TGo4Interface.

Definition at line 453 of file TGo4AbstractInterface.h.

virtual void TGo4AbstractInterface::DivideViewPanel ViewPanelHandle  panel,
Int_t  numX,
Int_t  numY
[inline, virtual]
 

Divide viewpanel on subpads.

Reimplemented in TGo4Script, and TGo4Interface.

Definition at line 456 of file TGo4AbstractInterface.h.

virtual TPad* TGo4AbstractInterface::SelectPad ViewPanelHandle  panel,
Int_t  number = 0
[inline, virtual]
 

Set active pad on viewpanel.

If number==0, main pad (canvas) will be set as active, otherwise one of subpads will be activated. Most of methods, working with viewpanel, acting with active pad of this panel.

Reimplemented in TGo4Script, and TGo4Interface.

Definition at line 462 of file TGo4AbstractInterface.h.

virtual void TGo4AbstractInterface::SetSuperimpose ViewPanelHandle  panel,
Bool_t  on = kTRUE
[inline, virtual]
 

Set superimpose flag for active pad of viewpanel.

Reimplemented in TGo4Script.

Definition at line 465 of file TGo4AbstractInterface.h.

virtual Bool_t TGo4AbstractInterface::DrawItem const char *  itemname,
ViewPanelHandle  panel = 0,
const char *  drawopt = 0
[inline, virtual]
 

Draw browser item on specified viewpanel.

Parameters: itemname - browser item name, panel - viewpanel, if panel==0, new viewpanel will be created. drawopt - draw options, used in obj->Draw() operation

Reimplemented in TGo4Script, and TGo4Interface.

Definition at line 472 of file TGo4AbstractInterface.h.

void TGo4AbstractInterface::RedrawItem const char *  itemname  )  [virtual]
 

Redraw item of given name on all viewpanels/editors.

Useful for the case, when content of object (histogram, for example) changed directly in script and after that should be updated in viewpanel.

Reimplemented in TGo4Interface.

Definition at line 214 of file TGo4AbstractInterface.cxx.

References Browser().

Referenced by TGo4Interface::RedrawItem().


Member Data Documentation

TGo4AbstractInterface * TGo4AbstractInterface::fgInstance = 0 [static, protected]
 

Definition at line 31 of file TGo4AbstractInterface.cxx.

Referenced by DeleteInstance(), Instance(), TGo4AbstractInterface(), and ~TGo4AbstractInterface().

TGo4ObjectManager* TGo4AbstractInterface::fOM [private]
 

Definition at line 480 of file TGo4AbstractInterface.h.

Referenced by Initialize(), OM(), and ~TGo4AbstractInterface().

TGo4BrowserProxy* TGo4AbstractInterface::fBrowser [private]
 

Definition at line 481 of file TGo4AbstractInterface.h.

Referenced by Browser(), Initialize(), and ~TGo4AbstractInterface().

TList TGo4AbstractInterface::fxCommands [private]
 

Definition at line 482 of file TGo4AbstractInterface.h.

Referenced by FreeHotStartCmds(), IsHotStart(), LoadHotStart(), and NextHotStartCmd().


The documentation for this class was generated from the following files:
Generated on Fri Nov 28 13:00:21 2008 for Go4-v3.04-1 by  doxygen 1.4.2