20namespace Experimental {
54 static bool IsRemote(
const std::string &
f);
char Text_t
General string (char)
float Float_t
Float 4 bytes (float)
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t r
Float_t fPosX
position in the (0,1) overlay box; the image is centred on it
REveLogo(const REveLogo &)=delete
EImageSource_e
Where the image comes from: a directory registered with SetImageDir() (the default),...
const std::string & GetFile() const
Either a file name inside the registered image directory, or an absolute URL the client fetches direc...
Float_t fSize
height in CSS pixels; width follows the image aspect
Float_t fOpacity
resting opacity; the client brightens it on hover
void SetFile(std::string_view f)
static const std::string & GetImageDir()
void SetOpacity(Float_t o)
void SetSource(EImageSource_e s)
Float_t GetOpacity() const
std::string fFile
file name or URL, interpreted according to fSource
static bool IsRemote(const std::string &f)
Is the file an absolute URL, to be fetched by the client directly?
void BuildRenderData() override
Name the client factory makeLogo. No geometry is sent.
EImageSource_e GetSource() const
Int_t WriteCoreJson(nlohmann::json &j, Int_t rnr_offset) override
Stream the file, source, position, size, opacity and resizability.
static std::string sImageDir
void SetPosition(Float_t x, Float_t y)
REveLogo & operator=(const REveLogo &)=delete
Bool_t GetResizable() const
static bool SetImageDir(std::string_view dir)
Register the directory images are served from, mapped under "eve-images/".
void SetResizable(Bool_t r)