ROOT  6.07/01
Reference Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
TRecorderRecording Class Reference

Definition at line 660 of file TRecorder.h.

Public Member Functions

virtual TRecorder::ERecorderState GetState () const
 
virtual void Stop (TRecorder *r, Bool_t guiCommand)
 Disconnects all slots and stopps recording. More...
 
void RegisterWindow (Window_t w)
 This method is called when RegisteredWindow(Window_t) is emitted from TGClient. More...
 
void RecordCmdEvent (const char *line)
 Records commandline event (text and time) ans saves the previous commandline event This 1 event delay in saving ensures that the last commandline events 'TRecorder::Stop' will be not stored. More...
 
void RecordGuiEvent (Event_t *e, Window_t wid)
 Records GUI Event_t *e different from kConfigureNotify (they are recorded in TRecorderRecording::RecordGuiCNEvent) More...
 
void RecordGuiBldEvent (Event_t *e)
 Special case for the gui builder, having a timer handling some of the events. More...
 
void RecordGuiCNEvent (Event_t *e)
 Records GUI Event_t *e of type kConfigureNotify. More...
 
void RecordMousePosition ()
 Try to record all mouse moves... More...
 
void RecordPave (const TObject *obj)
 Records TPaveLabel object created in TCreatePrimitives::Pave() More...
 
void RecordText (const TObject *obj)
 Records TLatex object created in TCreatePrimitives::Text() More...
 
void FilterEventPave ()
 Change the state of the flag to kTRUE when you are recording a pavelabel. More...
 
void StartEditing ()
 Memorize the starting time of editinga TLatex or a TPaveLabel. More...
 
void RecordExtraEvent (TString line, TTime extTime)
 Records TLatex or TPaveLabel object created in TCreatePrimitives, ExtTime is needed for the correct replay of these events. More...
 
- Public Member Functions inherited from TRecorderState
virtual ~TRecorderState ()
 
virtual void Start (TRecorder *, const char *, Option_t *, Window_t *, Int_t)
 
virtual Bool_t Replay (TRecorder *, const char *, Bool_t, TRecorder::EReplayModes)
 
virtual void Pause (TRecorder *)
 
virtual void Resume (TRecorder *)
 
virtual void ReplayStop (TRecorder *)
 
virtual void ListCmd (const char *)
 
virtual void ListGui (const char *)
 
virtual void PrevCanvases (const char *, Option_t *)
 

Protected Member Functions

 TRecorderRecording (TRecorder *r, const char *filename, Option_t *option, Window_t *w, Int_t winCount)
 
Bool_t StartRecording ()
 Connects appropriate signals and slots in order to gain all registered windows and processed events in ROOT and then starts recording. More...
 
- Protected Member Functions inherited from TRecorderState
void ChangeState (TRecorder *r, TRecorderState *s, Bool_t deletePreviousState)
 

Private Member Functions

virtual ~TRecorderRecording ()
 Freeing of allocated memory. More...
 
Bool_t IsFiltered (Window_t id)
 Returns kTRUE if passed id belongs to window IDs of recorder GUI itself. More...
 
void SetTypeOfConfigureNotify (Event_t *e)
 Sets type of kConfigureNotify event to one of EConfigureNotify. More...
 
void CopyEvent (Event_t *e, Window_t wid)
 Copies all items of given event to fGuiEvent. More...
 

Private Attributes

TRecorderfRecorder
 
TFilefFile
 
TTimerfTimer
 
TTimerfMouseTimer
 
Long64_t fBeginPave
 
TTreefWinTree
 
TTreefGuiTree
 
TTreefCmdTree
 
TTreefExtraTree
 
ULong64_t fWin
 
TRecGuiEventfGuiEvent
 
TRecCmdEventfCmdEvent
 
TRecExtraEventfExtraEvent
 
Bool_t fCmdEventPending
 
Int_t fRegWinCounter
 
Int_t fFilteredIdsCount
 
Window_tfFilteredIds
 
Bool_t fFilterEventPave
 

Friends

class TRecorderInactive
 

#include <TRecorder.h>

Inheritance diagram for TRecorderRecording:
[legend]

Constructor & Destructor Documentation

TRecorderRecording::~TRecorderRecording ( )
privatevirtual

Freeing of allocated memory.

Definition at line 1252 of file TRecorder.cxx.

TRecorderRecording::TRecorderRecording ( TRecorder r,
const char *  filename,
Option_t option,
Window_t w,
Int_t  winCount 
)
protected

Member Function Documentation

void TRecorderRecording::CopyEvent ( Event_t e,
Window_t  wid 
)
private

Copies all items of given event to fGuiEvent.

Definition at line 1663 of file TRecorder.cxx.

Referenced by RecordGuiBldEvent(), RecordGuiCNEvent(), and RecordGuiEvent().

void TRecorderRecording::FilterEventPave ( )

Change the state of the flag to kTRUE when you are recording a pavelabel.

Definition at line 1636 of file TRecorder.cxx.

virtual TRecorder::ERecorderState TRecorderRecording::GetState ( ) const
inlinevirtual

Implements TRecorderState.

Definition at line 705 of file TRecorder.h.

Bool_t TRecorderRecording::IsFiltered ( Window_t  id)
private

Returns kTRUE if passed id belongs to window IDs of recorder GUI itself.

Definition at line 1707 of file TRecorder.cxx.

Referenced by RecordGuiCNEvent(), RecordGuiEvent(), and StartRecording().

void TRecorderRecording::RecordCmdEvent ( const char *  line)

Records commandline event (text and time) ans saves the previous commandline event This 1 event delay in saving ensures that the last commandline events 'TRecorder::Stop' will be not stored.

Definition at line 1416 of file TRecorder.cxx.

void TRecorderRecording::RecordExtraEvent ( TString  line,
TTime  extTime 
)

Records TLatex or TPaveLabel object created in TCreatePrimitives, ExtTime is needed for the correct replay of these events.

Definition at line 1653 of file TRecorder.cxx.

Referenced by RecordPave(), and RecordText().

void TRecorderRecording::RecordGuiBldEvent ( Event_t e)

Special case for the gui builder, having a timer handling some of the events.

Definition at line 1478 of file TRecorder.cxx.

void TRecorderRecording::RecordGuiCNEvent ( Event_t e)

Records GUI Event_t *e of type kConfigureNotify.

It is called via signal-slot when an kConfigureNotify event is processed in TGFrame::HandleEvent

Definition at line 1527 of file TRecorder.cxx.

void TRecorderRecording::RecordGuiEvent ( Event_t e,
Window_t  wid 
)

Records GUI Event_t *e different from kConfigureNotify (they are recorded in TRecorderRecording::RecordGuiCNEvent)

It is called via signal-slot when an event is processed in TGClient::HandleEvent(Event_t *event) or in TGClient::HandleMaskEvent(Event_t *event, Window_t wid)

If signal is emitted from TGClient::HandleEvent(Event_t *event), then wid = 0

Definition at line 1444 of file TRecorder.cxx.

Referenced by RecordMousePosition().

void TRecorderRecording::RecordMousePosition ( )

Try to record all mouse moves...

Definition at line 1496 of file TRecorder.cxx.

void TRecorderRecording::RecordPave ( const TObject obj)

Records TPaveLabel object created in TCreatePrimitives::Pave()

Definition at line 1550 of file TRecorder.cxx.

void TRecorderRecording::RecordText ( const TObject obj)

Records TLatex object created in TCreatePrimitives::Text()

Definition at line 1594 of file TRecorder.cxx.

void TRecorderRecording::RegisterWindow ( Window_t  w)

This method is called when RegisteredWindow(Window_t) is emitted from TGClient.

Definition at line 1403 of file TRecorder.cxx.

Referenced by StartRecording().

void TRecorderRecording::SetTypeOfConfigureNotify ( Event_t e)
private

Sets type of kConfigureNotify event to one of EConfigureNotify.

On Linux paremeters of GUI event kConfigureNotify are different than parameters of the same event executed on Windows. Therefore we need to distinguish [on Linux], if the event is movement or resize event. On Windows, we do not need to distinguish them.

Definition at line 1725 of file TRecorder.cxx.

Referenced by RecordGuiCNEvent().

void TRecorderRecording::StartEditing ( )

Memorize the starting time of editinga TLatex or a TPaveLabel.

Definition at line 1644 of file TRecorder.cxx.

Bool_t TRecorderRecording::StartRecording ( )
protected

Connects appropriate signals and slots in order to gain all registered windows and processed events in ROOT and then starts recording.

Definition at line 1269 of file TRecorder.cxx.

Referenced by ClassImp().

void TRecorderRecording::Stop ( TRecorder r,
Bool_t  guiCommand 
)
virtual

Disconnects all slots and stopps recording.

Reimplemented from TRecorderState.

Definition at line 1363 of file TRecorder.cxx.

Friends And Related Function Documentation

friend class TRecorderInactive
friend

Definition at line 699 of file TRecorder.h.

Referenced by Stop().

Member Data Documentation

Long64_t TRecorderRecording::fBeginPave
private

Definition at line 674 of file TRecorder.h.

Referenced by RecordPave(), RecordText(), and StartEditing().

TRecCmdEvent* TRecorderRecording::fCmdEvent
private

Definition at line 683 of file TRecorder.h.

Referenced by RecordCmdEvent(), StartRecording(), and ~TRecorderRecording().

Bool_t TRecorderRecording::fCmdEventPending
private

Definition at line 686 of file TRecorder.h.

Referenced by RecordCmdEvent(), and Stop().

TTree* TRecorderRecording::fCmdTree
private

Definition at line 678 of file TRecorder.h.

Referenced by RecordCmdEvent(), StartRecording(), and Stop().

TRecExtraEvent* TRecorderRecording::fExtraEvent
private

Definition at line 684 of file TRecorder.h.

Referenced by RecordExtraEvent(), StartRecording(), and ~TRecorderRecording().

TTree* TRecorderRecording::fExtraTree
private

Definition at line 679 of file TRecorder.h.

Referenced by RecordExtraEvent(), and StartRecording().

TFile* TRecorderRecording::fFile
private

Definition at line 671 of file TRecorder.h.

Referenced by StartRecording(), Stop(), and ~TRecorderRecording().

Window_t* TRecorderRecording::fFilteredIds
private

Definition at line 694 of file TRecorder.h.

Referenced by IsFiltered(), and ~TRecorderRecording().

Int_t TRecorderRecording::fFilteredIdsCount
private

Definition at line 693 of file TRecorder.h.

Referenced by IsFiltered(), RecordGuiCNEvent(), and RecordGuiEvent().

Bool_t TRecorderRecording::fFilterEventPave
private

Definition at line 696 of file TRecorder.h.

Referenced by FilterEventPave(), and RecordGuiEvent().

TRecGuiEvent* TRecorderRecording::fGuiEvent
private
TTree* TRecorderRecording::fGuiTree
private

Definition at line 677 of file TRecorder.h.

Referenced by RecordGuiBldEvent(), RecordGuiCNEvent(), RecordGuiEvent(), and StartRecording().

TTimer* TRecorderRecording::fMouseTimer
private

Definition at line 673 of file TRecorder.h.

Referenced by RecordMousePosition(), StartRecording(), Stop(), and ~TRecorderRecording().

TRecorder* TRecorderRecording::fRecorder
private

Definition at line 668 of file TRecorder.h.

Referenced by Stop().

Int_t TRecorderRecording::fRegWinCounter
private

Definition at line 690 of file TRecorder.h.

TTimer* TRecorderRecording::fTimer
private
ULong64_t TRecorderRecording::fWin
private

Definition at line 681 of file TRecorder.h.

Referenced by RegisterWindow(), and StartRecording().

TTree* TRecorderRecording::fWinTree
private

Definition at line 676 of file TRecorder.h.

Referenced by RegisterWindow(), and StartRecording().

Collaboration diagram for TRecorderRecording:
[legend]

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