Heavy ion Analysis Libriares
|
#include <Painter.h>
Public Member Functions | |
Bool_t | HasParent () const |
Painter (const Painter &other)=delete | |
void | AddPainter (Painter *painter) |
virtual void | SetOption (TString option) |
void | Paint () |
Painter * | GetParent () const |
Painter & | operator= (const Painter &other)=delete |
TCanvas * | GetCanvas (Int_t canvasNo=0) const |
TVirtualPad * | GetPad (Int_t index, Int_t canvasNo=0) const |
void | SetGlobalPadStyle (Hal::PadStyle &pad) |
Protected Member Functions | |
void | SetFlag (Int_t bit, Bool_t state) |
void | SetFlagForced (ULong64_t flag) |
void | ResetFewBits (ULong64_t &flag, std::initializer_list< Int_t > bits, Int_t set=-1) const |
Bool_t | OwnGraphic () const |
Bool_t | CheckOpt (Int_t opt) const |
ULong64_t | GetDrawFlags () const |
virtual ULong64_t | SetOptionInternal (TString opt, ULong64_t prev=0)=0 |
virtual void | OptionsApplied () |
virtual void | SetDefaultFlag () |
virtual Bool_t | CheckPads () const |
Bool_t | CanvasExist (Int_t canvasNo=0) const |
Bool_t | GetPatterns (TString opt, TString flag, std::vector< double > &vals) const |
void | ContitionalPattern (TString &option, TString pattern, ULong64_t &drawOpt, Int_t bit, Bool_t remove=kTRUE) const |
void | LockPad () |
void | UnlockPad () |
Int_t | GetPadsNo (Int_t canvasNo=0) const |
void | GotoPad (Int_t no, Int_t canvasNo=0) |
void | MakeCanvasPads (Int_t x=1, Int_t y=1, Int_t canvasNo=0) |
void | UpdateAllPads () |
void | ClearCanvas (Int_t canvas) |
virtual void | InnerRepaint () |
virtual void | InnerPaint () |
virtual void | MakePadsAndCanvases ()=0 |
void | CleanCommonData () |
Painter * | GetAncestor () const |
Protected Attributes | |
Bool_t | fOptionsChanged = {kFALSE} |
Static Protected Attributes | |
static const int | kHtmlBit = 0 |
static const int | kGridBit = 1 |
class for drawing objects, contains pads, and copies of drawn objects
Hal::Painter::Painter | ( | ) |
Definition at line 23 of file Painter.cxx.
|
virtual |
Definition at line 28 of file Painter.cxx.
void Hal::Painter::AddPainter | ( | Painter * | painter | ) |
|
protected |
Definition at line 208 of file Painter.cxx.
|
inlineprotected |
|
inlineprotectedvirtual |
Reimplemented in Hal::Femto3DCFPainter, and Hal::FemtoSHCFPainter.
|
protected |
clean canvases if own them
Definition at line 213 of file Painter.cxx.
|
protected |
clears main pad
Definition at line 189 of file Painter.cxx.
|
protected |
set given flag depending of pattern if "pattern" is found set bit to 1 if "!pattern" is found set bit to 0, otherwise do nothing
option | option |
pattern | pattern that we want to find |
drawOpt | flag |
bit | bit to set/clean |
remove | if true remowe pattern from string |
Definition at line 174 of file Painter.cxx.
|
protected |
Definition at line 201 of file Painter.cxx.
|
inline |
|
inlineprotected |
TVirtualPad * Hal::Painter::GetPad | ( | Int_t | index, |
Int_t | canvasNo = 0 ) const |
add subpad
index | (staring with 1) if 0 returns pointer to main pad |
Definition at line 196 of file Painter.cxx.
|
inlineprotected |
|
inline |
|
protected |
looks for patterns like {flag=val[0],val[1]..} where val[n] is a float, returns true if found
opt | |
flag | |
vals |
Definition at line 161 of file Painter.cxx.
|
protected |
Bool_t Hal::Painter::HasParent | ( | ) | const |
|
inlineprotectedvirtual |
inner method for pain - without checking ownership
Reimplemented in Hal::CorrFit3DCFPainter, Hal::CorrFitPainter, and Hal::FemtoCFPainter.
|
inlineprotectedvirtual |
inner method for repaint - without checking ownership
Reimplemented in Hal::CorrFitPainter, and Hal::FemtoCFPainter.
|
protected |
keep a current gPad
Definition at line 180 of file Painter.cxx.
|
protected |
|
protectedpure virtual |
creates pads and canvases, should call generate subpads
Implemented in Hal::CorrFitPainter, Hal::Femto1DCFPainter, Hal::Femto3DCFPainter, and Hal::FemtoSHCFPainter.
|
inlineprotectedvirtual |
|
inlineprotected |
void Hal::Painter::Paint | ( | ) |
called when object needs to be draw (should be called only once), it try to paint object if object was painted calls repaint it
Definition at line 42 of file Painter.cxx.
|
protected |
flag | flag to set |
bits | clear listed bits |
set | set this bit if set >0 |
Definition at line 228 of file Painter.cxx.
|
inlineprotectedvirtual |
|
protected |
|
inlineprotected |
void Hal::Painter::SetGlobalPadStyle | ( | Hal::PadStyle & | pad | ) |
Definition at line 206 of file Painter.cxx.
|
virtual |
set options for drawing:
option | options: html - for drawing in HTML mode NOTE - might not be implemented for all objects default - reset flags to default and add additional flags from option default! -reset flags to default and ignore rest of the option keep - keeps old flags, add only new flags skip - ignore this method |
Definition at line 124 of file Painter.cxx.
|
protectedpure virtual |
used internally
opt | option of drawing
|
prev | the staring draw flag |
Implemented in Hal::CorrFitPainter, Hal::Femto3DCFPainter, Hal::FemtoCFPainter, and Hal::FemtoSHCFPainter.
|
protected |
restore LockedPad
Definition at line 182 of file Painter.cxx.
|
protected |
Definition at line 97 of file Painter.cxx.
|
protected |