1 #ifndef TGRAPH_INTERACTIVE 2 #define TGRAPH_INTERACTIVE 4 #include "TGraphAligned.h" 10 class TGraphInteractive;
32 void deleteChildren();
42 virtual void Draw(Option_t* opt) = 0;
43 virtual GuiParent* getParent()
const {
return NULL;}
46 size_t addGuiChild(TGraphInteractive* grPtr);
47 size_t addGuiChild(
const TGraph& grRef, Option_t* drawOpt);
48 size_t copyChildren(
const GuiParent* that);
49 const TGraphInteractive*
findChild(
const char* name);
53 friend class TGraphInteractive;
54 void removeReference(TGraphInteractive* grChild);
55 std::vector<TGraphInteractive*> fChildren;
79 TGraphInteractive(
int n,
const double* x,
const double* y, Option_t* drawOpt =
"");
83 virtual void ExecuteEvent(
int event,
int px,
int py);
86 virtual void DrawGroup(Option_t* opt =
"");
94 virtual void Draw(Option_t* opt =
""){
95 TGraphAligned::Draw(opt);
119 virtual GuiParent* getParent()
const {
return fParent;}
virtual void Draw(Option_t *opt="")
GuiParent * findOriginator() const
Inherit from this to draw interactive TGraphs on top of you.
Namespace which wraps everything in the library.
const TGraphInteractive * findChild(const char *name)
A minimalistic extension to TGraphAligned for some GUI bells and whistles.
virtual void DrawGroup(Option_t *opt="")
Must be overloaded by children (TGraphInteractive*) to return pointer to parent
void SetDrawOpt(Option_t *drawOpt)
virtual void Draw(Option_t *opt)=0
virtual void DrawGroup(Option_t *opt="")
Must be overloaded by children (TGraphInteractive*) to return pointer to parent