11#ifndef ROOT_TWebSnapshot
12#define ROOT_TWebSnapshot
#define ClassDefOverride(name, id)
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize id
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void on
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t src
std::string fScripts
custom scripts to load
bool fHighlightConnect
does HighlightConnect has connection
TCanvasWebSnapshot(bool readonly=true, bool setids=true)
const std::string & GetScripts() const
void SetScripts(const std::string &src)
bool GetHighlightConnect() const
void SetHighlightConnect(bool on=true)
Mother of all ROOT objects.
TPadWebSnapshot & NewSubPad()
Create new entry for subpad.
std::vector< std::unique_ptr< TWebSnapshot > > fPrimitives
list of all primitives, drawn in the pad
TPadWebSnapshot(bool readonly=true, bool setids=true)
TWebSnapshot & NewSpecials()
Create new entry in list of primitives in the front.
bool fActive
true when pad is active
void SetWithoutPrimitives(bool on=true)
bool fSetObjectIds
! set objects ids
void SetActive(bool on=true)
TWebSnapshot & NewPrimitive(TObject *obj=nullptr, const std::string &opt="")
Create new entry in list of primitives.
bool IsSetObjectIds() const
bool fReadOnly
when canvas or pad are in readonly mode
bool fWithoutPrimitives
true when primitives not send while there are no modifications
Paint state of object to transfer to JavaScript side.
Bool_t fOwner
! if objected owned
void SetObjectIDAsPtr(void *ptr)
Use pointer to assign object id - TString::Hash.
virtual ~TWebSnapshot()
destructor
std::string fOption
object draw option
const char * GetObjectID() const
Int_t fKind
kind of snapshots
void SetOption(const std::string &opt)
TObject * fSnapshot
snapshot data
void SetObjectID(const std::string &id)
void SetSnapshot(Int_t kind, TObject *snapshot, Bool_t owner=kFALSE)
SetUse pointer to assign object id - TString::Hash.
@ kSVG
list of SVG primitives
@ kColors
list of ROOT colors + palette
std::string fObjectID
object identifier
TObject * GetSnapshot() const