ROOT  6.07/01
Reference Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
TDrawFeedback.h
Go to the documentation of this file.
1 // @(#)root/proofplayer:$Id$
2 // Author: Maarten Ballintijn 28/10/2003
3 
4 /*************************************************************************
5  * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *
6  * All rights reserved. *
7  * *
8  * For the licensing terms see $ROOTSYS/LICENSE. *
9  * For the list of contributors see $ROOTSYS/README/CREDITS. *
10  *************************************************************************/
11 
12 #ifndef ROOT_TDrawFeedback
13 #define ROOT_TDrawFeedback
14 
15 
16 //////////////////////////////////////////////////////////////////////////
17 // //
18 // TDrawFeedback //
19 // //
20 // Utility class to draw objects in the feedback list during queries. //
21 // Draws histograms in separated canvases and user-defined objects via //
22 // Draw(). Users requiring advanced treatment should implement their //
23 // own version following this example. See also TStatsFeedback. //
24 // //
25 //////////////////////////////////////////////////////////////////////////
26 
27 #ifndef ROOT_TQObject
28 #include "TQObject.h"
29 #endif
30 #ifndef ROOT_TObject
31 #include "TObject.h"
32 #endif
33 
34 class TProof;
35 class TProof;
36 class THashList;
37 class TSeqCollection;
38 
39 class TDrawFeedback : public TObject, public TQObject {
40 private:
41  TString fName; // Identfier for this object
42  Bool_t fAll; //draw all or selected objects
43  THashList *fNames; //selected objects
44 
45 protected:
46  Option_t *fOption; //draw option
47  TProof *fProof; //handle to PROOF session
48 
49 public:
50  TDrawFeedback(TProof *proof = 0, TSeqCollection *names = 0);
52 
53  void Feedback(TList *objs);
54  const char *GetName() const { return fName.Data(); }
55  ULong_t Hash() const { return fName.Hash(); }
56  void SetOption(Option_t *option) { fOption = option; }
57 
58  ClassDef(TDrawFeedback,0) // Present PROOF query feedback
59 };
60 
61 #endif
const char Option_t
Definition: RtypesCore.h:62
This is the ROOT implementation of the Qt object communication mechanism (see also http://www...
Definition: TQObject.h:53
THashList * fNames
Definition: TDrawFeedback.h:43
Basic string class.
Definition: TString.h:137
bool Bool_t
Definition: RtypesCore.h:59
void Feedback(TList *objs)
Display feedback.
void SetOption(Option_t *option)
Definition: TDrawFeedback.h:56
const char * Data() const
Definition: TString.h:349
Sequenceable collection abstract base class.
#define ClassDef(name, id)
Definition: Rtypes.h:254
THashList implements a hybrid collection class consisting of a hash table and a list to store TObject...
Definition: THashList.h:36
const char * GetName() const
Returns name of object.
Definition: TDrawFeedback.h:54
TProof * fProof
Definition: TDrawFeedback.h:47
A doubly linked list.
Definition: TList.h:47
Option_t * fOption
Definition: TDrawFeedback.h:46
ULong_t Hash() const
Return hash value for this object.
Definition: TDrawFeedback.h:55
unsigned long ULong_t
Definition: RtypesCore.h:51
This class controls a Parallel ROOT Facility, PROOF, cluster.
Definition: TProof.h:342
Mother of all ROOT objects.
Definition: TObject.h:58
const char Int_t const char TProof * proof
Definition: TXSlave.cxx:46
TDrawFeedback(TProof *proof=0, TSeqCollection *names=0)
Utility class to draw objects in the feedback list during queries.
Definition: TDrawFeedback.h:39
~TDrawFeedback()
Destructor.
UInt_t Hash(ECaseCompare cmp=kExact) const
Return hash value.
Definition: TString.cxx:592