11#ifndef ROOT_TWebSnapshot
12#define ROOT_TWebSnapshot
35#if defined(__clang__) && __clang_major__ < 20
36#pragma clang diagnostic push
37#pragma clang diagnostic ignored "-Wshadow"
40#if defined(__clang__) && __clang_major__ < 20
41#pragma clang diagnostic pop
int Int_t
Signed integer 4 bytes (int).
bool Bool_t
Boolean (0=false, 1=true) (bool).
#define ClassDefOverride(name, id)
std::string fScripts
custom scripts to load
bool fHighlightConnect
does HighlightConnect has connection
TCanvasWebSnapshot(bool readonly=true, bool setids=true, bool batchmode=false)
const std::string & GetScripts() const
void SetScripts(const std::string &src)
void SetFixedSize(bool on=true)
bool GetHighlightConnect() const
bool fFixedSize
if canvas draw size is fixed
void SetHighlightConnect(bool on=true)
Mother of all ROOT objects.
TObject()
TObject constructor.
TPadWebSnapshot & NewSubPad()
Create new entry for subpad.
TWebSnapshot & NewPrimitive(TObject *obj=nullptr, const std::string &opt="", const std::string &suffix="")
Create new entry in list of primitives.
std::vector< std::unique_ptr< TWebSnapshot > > fPrimitives
list of all primitives, drawn in the pad
TWebSnapshot & NewSpecials()
Create new entry in list of primitives in the front.
bool fHasExecs
if true, more interactive events will be delivered from client
bool fActive
true when pad is active
void SetHasExecs(bool on=true)
void SetWithoutPrimitives(bool on=true)
TPadWebSnapshot(bool readonly=true, bool setids=true, bool batchmode=false)
bool fSetObjectIds
! set objects ids
void SetActive(bool on=true)
bool IsSetObjectIds() const
bool fReadOnly
when canvas or pad are in readonly mode
bool fBatchMode
! if object created for image generation
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
std::string fOption
object draw option
const char * GetObjectID() const
Int_t fKind
kind of snapshots
~TWebSnapshot() override
destructor
@ kSVG
list of SVG primitives
@ kColors
list of ROOT colors + palette
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.
std::string fObjectID
object identifier
TObject * GetSnapshot() const
void SetObjectIDAsPtr(void *ptr, const std::string &suffix="")
Use pointer to assign object id - TString::Hash.