Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
TRecorderRecording Class Reference

Represents state of TRecorder when recording events.

Not intended to be used by a user directly.

Definition at line 487 of file TRecorder.h.

Public Member Functions

void FilterEventPave ()
 Change the state of the flag to kTRUE when you are recording a pavelabel.
 
virtual TRecorder::ERecorderState GetState () const
 
virtual TClassIsA () const
 
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.
 
void RecordExtraEvent (TString line, TTime extTime)
 Records TLatex or TPaveLabel object created in TCreatePrimitives, ExtTime is needed for the correct replay of these events.
 
void RecordGuiBldEvent (Event_t *e)
 Special case for the gui builder, having a timer handling some of the events.
 
void RecordGuiCNEvent (Event_t *e)
 Records GUI Event_t *e of type kConfigureNotify.
 
void RecordGuiEvent (Event_t *e, Window_t wid)
 Records GUI Event_t *e different from kConfigureNotify (they are recorded in TRecorderRecording::RecordGuiCNEvent)
 
void RecordMousePosition ()
 Try to record all mouse moves...
 
void RecordPave (const TObject *obj)
 Records TPaveLabel object created in TCreatePrimitives::Pave()
 
void RecordText (const TObject *obj)
 Records TLatex object created in TCreatePrimitives::Text()
 
void RegisterWindow (Window_t w)
 This method is called when RegisteredWindow(Window_t) is emitted from TGClient.
 
void StartEditing ()
 Memorize the starting time of editinga TLatex or a TPaveLabel.
 
virtual void Stop (TRecorder *r, Bool_t guiCommand)
 Disconnects all slots and stopps recording.
 
virtual void Streamer (TBuffer &)
 
void StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b)
 
- Public Member Functions inherited from TRecorderState
virtual ~TRecorderState ()
 
virtual void ListCmd (const char *)
 
virtual void ListGui (const char *)
 
virtual void Pause (TRecorder *)
 
virtual void PrevCanvases (const char *, Option_t *)
 
virtual Bool_t Replay (TRecorder *, const char *, Bool_t, TRecorder::EReplayModes)
 
virtual void ReplayStop (TRecorder *)
 
virtual void Resume (TRecorder *)
 
virtual void Start (TRecorder *, const char *, Option_t *, Window_t *, Int_t)
 
void StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b)
 

Static Public Member Functions

static TClassClass ()
 
static const char * Class_Name ()
 
static constexpr Version_t Class_Version ()
 
static const char * DeclFileName ()
 
- Static Public Member Functions inherited from TRecorderState
static TClassClass ()
 
static const char * Class_Name ()
 
static constexpr Version_t Class_Version ()
 
static const char * DeclFileName ()
 

Protected Member Functions

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

Private Member Functions

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

Private Attributes

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

Friends

class TRecorderInactive
 

#include <TRecorder.h>

Inheritance diagram for TRecorderRecording:
[legend]

Constructor & Destructor Documentation

◆ ~TRecorderRecording()

TRecorderRecording::~TRecorderRecording ( )
privatevirtual

Freeing of allocated memory.

Definition at line 1206 of file TRecorder.cxx.

◆ TRecorderRecording()

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

Initializes TRecorderRecording for recording What is allocated here is deleted in destructor.

Definition at line 1158 of file TRecorder.cxx.

Member Function Documentation

◆ Class()

static TClass * TRecorderRecording::Class ( )
static
Returns
TClass describing this class

◆ Class_Name()

static const char * TRecorderRecording::Class_Name ( )
static
Returns
Name of this class

◆ Class_Version()

static constexpr Version_t TRecorderRecording::Class_Version ( )
inlinestaticconstexpr
Returns
Version of this class

Definition at line 549 of file TRecorder.h.

◆ CopyEvent()

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

Copies all items of given event to fGuiEvent.

Definition at line 1615 of file TRecorder.cxx.

◆ DeclFileName()

static const char * TRecorderRecording::DeclFileName ( )
inlinestatic
Returns
Name of the file containing the class declaration

Definition at line 549 of file TRecorder.h.

◆ FilterEventPave()

void TRecorderRecording::FilterEventPave ( )

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

Definition at line 1588 of file TRecorder.cxx.

◆ GetState()

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

Implements TRecorderState.

Definition at line 532 of file TRecorder.h.

◆ IsA()

virtual TClass * TRecorderRecording::IsA ( ) const
inlinevirtual
Returns
TClass describing current object

Reimplemented from TRecorderState.

Definition at line 549 of file TRecorder.h.

◆ IsFiltered()

Bool_t TRecorderRecording::IsFiltered ( Window_t  id)
private

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

Definition at line 1659 of file TRecorder.cxx.

◆ RecordCmdEvent()

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 1368 of file TRecorder.cxx.

◆ RecordExtraEvent()

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 1605 of file TRecorder.cxx.

◆ RecordGuiBldEvent()

void TRecorderRecording::RecordGuiBldEvent ( Event_t e)

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

Definition at line 1430 of file TRecorder.cxx.

◆ RecordGuiCNEvent()

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 1479 of file TRecorder.cxx.

◆ RecordGuiEvent()

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 1396 of file TRecorder.cxx.

◆ RecordMousePosition()

void TRecorderRecording::RecordMousePosition ( )

Try to record all mouse moves...

Definition at line 1448 of file TRecorder.cxx.

◆ RecordPave()

void TRecorderRecording::RecordPave ( const TObject obj)

Records TPaveLabel object created in TCreatePrimitives::Pave()

Definition at line 1502 of file TRecorder.cxx.

◆ RecordText()

void TRecorderRecording::RecordText ( const TObject obj)

Records TLatex object created in TCreatePrimitives::Text()

Definition at line 1546 of file TRecorder.cxx.

◆ RegisterWindow()

void TRecorderRecording::RegisterWindow ( Window_t  w)

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

Definition at line 1355 of file TRecorder.cxx.

◆ SetTypeOfConfigureNotify()

void TRecorderRecording::SetTypeOfConfigureNotify ( Event_t e)
private

Sets type of kConfigureNotify event to one of EConfigureNotify.

On Linux parameters 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 1677 of file TRecorder.cxx.

◆ StartEditing()

void TRecorderRecording::StartEditing ( )

Memorize the starting time of editinga TLatex or a TPaveLabel.

Definition at line 1596 of file TRecorder.cxx.

◆ StartRecording()

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 1223 of file TRecorder.cxx.

◆ Stop()

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

Disconnects all slots and stopps recording.

Reimplemented from TRecorderState.

Definition at line 1315 of file TRecorder.cxx.

◆ Streamer()

virtual void TRecorderRecording::Streamer ( TBuffer )
virtual

Reimplemented from TRecorderState.

◆ StreamerNVirtual()

void TRecorderRecording::StreamerNVirtual ( TBuffer ClassDef_StreamerNVirtual_b)
inline

Definition at line 549 of file TRecorder.h.

Friends And Related Symbol Documentation

◆ TRecorderInactive

friend class TRecorderInactive
friend

Definition at line 526 of file TRecorder.h.

Member Data Documentation

◆ fBeginPave

Long64_t TRecorderRecording::fBeginPave
private

Definition at line 501 of file TRecorder.h.

◆ fCmdEvent

TRecCmdEvent* TRecorderRecording::fCmdEvent
private

Definition at line 510 of file TRecorder.h.

◆ fCmdEventPending

Bool_t TRecorderRecording::fCmdEventPending
private

Definition at line 513 of file TRecorder.h.

◆ fCmdTree

TTree* TRecorderRecording::fCmdTree
private

Definition at line 505 of file TRecorder.h.

◆ fExtraEvent

TRecExtraEvent* TRecorderRecording::fExtraEvent
private

Definition at line 511 of file TRecorder.h.

◆ fExtraTree

TTree* TRecorderRecording::fExtraTree
private

Definition at line 506 of file TRecorder.h.

◆ fFile

TFile* TRecorderRecording::fFile
private

Definition at line 498 of file TRecorder.h.

◆ fFilteredIds

Window_t* TRecorderRecording::fFilteredIds
private

Definition at line 521 of file TRecorder.h.

◆ fFilteredIdsCount

Int_t TRecorderRecording::fFilteredIdsCount
private

Definition at line 520 of file TRecorder.h.

◆ fFilterEventPave

Bool_t TRecorderRecording::fFilterEventPave
private

Definition at line 523 of file TRecorder.h.

◆ fGuiEvent

TRecGuiEvent* TRecorderRecording::fGuiEvent
private

Definition at line 509 of file TRecorder.h.

◆ fGuiTree

TTree* TRecorderRecording::fGuiTree
private

Definition at line 504 of file TRecorder.h.

◆ fMouseTimer

TTimer* TRecorderRecording::fMouseTimer
private

Definition at line 500 of file TRecorder.h.

◆ fRecorder

TRecorder* TRecorderRecording::fRecorder
private

Definition at line 495 of file TRecorder.h.

◆ fRegWinCounter

Int_t TRecorderRecording::fRegWinCounter
private

Definition at line 517 of file TRecorder.h.

◆ fTimer

TTimer* TRecorderRecording::fTimer
private

Definition at line 499 of file TRecorder.h.

◆ fWin

ULong64_t TRecorderRecording::fWin
private

Definition at line 508 of file TRecorder.h.

◆ fWinTree

TTree* TRecorderRecording::fWinTree
private

Definition at line 503 of file TRecorder.h.

Libraries for TRecorderRecording:

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