12#ifndef ROOT7_REveViewer
13#define ROOT7_REveViewer
19namespace Experimental {
127 REveViewer(
const std::string &
n=
"REveViewer",
const std::string &t=
"");
232 REveViewerList(
const std::string &
n=
"REveViewerList",
const std::string &t=
"");
bool Bool_t
Boolean (0=false, 1=true) (bool)
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 Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t Int_t Int_t Window_t TString Int_t GCValues_t GetPrimarySelectionOwner GetDisplay GetScreen GetColormap GetNativeEvent const char const char dpyName wid window const char font_name cursor keysym reg const char only_if_exist regb h Point_t winding char text const char depth char const char Int_t count const char ColorStruct_t color const char Pixmap_t Pixmap_t PictureAttributes_t attr const char char ret_data h unsigned char height h Atom_t Int_t ULong_t ULong_t unsigned char prop_list Atom_t Atom_t Atom_t Time_t type
Eve representation of TGLScene.
REveViewerList List of Viewers providing common operations on REveViewer collections.
void RemoveElementsLocal() override
Decompoundofy children, call base-class version.
REveViewerList & operator=(const REveViewerList &)=delete
void AddElement(REveElement *el) override
Call base-class implementation.
~REveViewerList() override
Destructor.
void SceneDestructing(REveScene *scene)
Callback done from a REveScene destructor allowing proper removal of the scene from affected viewers.
void SetColorBrightness(Float_t b)
Set color brightness.
void RepaintAllViewers(Bool_t resetCameras, Bool_t dropLogicals)
Repaint all viewers.
Bool_t GetShowTooltip() const
virtual void Disconnect()
Disconnect from TGLViewer class-signals.
void SetShowTooltip(Bool_t x)
Float_t GetColorBrightness() const
void RepaintChangedViewers(Bool_t resetCameras, Bool_t dropLogicals)
Repaint viewers that are tagged as changed.
void SwitchColorSet()
Switch background color.
REveViewerList(const REveViewerList &)=delete
virtual void Connect()
Connect to TGLViewer class-signals.
void DeleteAnnotations()
Delete annotations from all viewers.
Bool_t UseLightColorSet() const
void RemoveElementLocal(REveElement *el) override
Decompoundofy el, call base-class version.
REveViewer Reve representation of TGLViewer.
void SetCameraCenter(ECameraCenter c)
Set the point the camera looks at and orbits around, either the world origin or the center of the sce...
static constexpr ECameraType kCameraPerspXOY
static constexpr ECameraType kCameraOrthoZOX
void SetMandatory(bool x)
static constexpr ECameraType kCameraPerspYOZ
void RemoveElementLocal(REveElement *el) override
Remove element 'el' from the list of children and also remove appropriate GLScene from GLViewer's lis...
void DisconnectClient()
Function called from MIR when user closes one of the viewer window.
void ConnectClient()
Function called from MIR when user wants to stream unsubscribed view.
Bool_t fExtrapolateMotion
Let the client extrapolate streamed motion between updates.
static constexpr ECameraType kCameraOrthoXOZ
~REveViewer() override
Destructor.
void SetCamera(ROOT::Experimental::REveCamera *cam)
Set camera reference.
static constexpr ECameraType kCameraOrthoZOY
std::vector< REveCamera * > fCameraList
void RemoveElementsLocal() override
Remove all children, forwarded to GLViewer.
Float_t GetTooltipAlpha() const
Float_t fAxesAtten
Distance attenuation of the 3D axis labels; see SetAxesAtten().
ECameraCenter GetCameraCenter() const
void ClearAxesBBox()
Let the 3D axis follow the scene bounding box again.
void SetRenderMaxHz(Float_t)
Cap the redraw rate of this viewer, in frames per second; 0 is uncapped.
ECameraCenter fCameraCenter
void SetCameraType(REveCamera::ECameraType type)
Set camera by type (backward compatibility with old API)
void SetTooltipAlpha(Float_t a)
Opacity of the plate behind the tooltip and kept annotations.
Float_t fAxesBBox[6]
xmin, ymin, zmin, xmax, ymax, zmax
Float_t GetAxesAtten() const
void SetMotionMaxHz(Float_t)
Cap the rate at which this viewer applies streamed motion; 0 freezes it.
Float_t GetTooltipFontSize() const
Float_t fLightScale
Multiplier on the client's light intensities; see SetLightScale().
Float_t fRenderMaxHz
see SetRenderMaxHz(); 0 is uncapped
Bool_t HasAxesBBox() const
bool GetBlackBackground() const
Float_t fMotionMaxHz
see SetMotionMaxHz(); 0 freezes
void SetAxesFontSize(Float_t s)
Label size for the 3D axis, as a fraction of viewport height, clamped to [0.004, 0....
REveViewer(const REveViewer &)=delete
bool GetSyncCamera() const
void SetExtrapolateMotion(bool)
Enable or disable client-side extrapolation of streamed motion.
EAxesType GetAxesType() const
Bool_t GetExtrapolateMotion() const
EToneMapMode
Tone curve applied to the rendered buffer. Values match the shader.
@ kToneLinear
no curve; exact colours, but anything over 1 clips
@ kToneKnee
identity below the knee, smooth roll-off above
Float_t fTooltipFontSize
Tooltip text size, same units as fAxesFontSize.
Int_t fAutoTuneSerial
Bumped by AutoTuneLights(); the client re-measures when it changes.
REveViewer & operator=(const REveViewer &)=delete
Int_t GetToneMapMode() const
void AutoTuneLights()
Ask the clients to pick a light scale that keeps the brightest channel just below white.
void SetAxesBBox(Float_t xmin, Float_t ymin, Float_t zmin, Float_t xmax, Float_t ymax, Float_t zmax)
Fix the volume the 3D axis spans, as {min, max} per coordinate, instead of following the scene conten...
Bool_t fHasAxesBBox
see SetAxesBBox()
static constexpr ECameraType kCameraOrthoXnOZ
static constexpr ECameraType kCameraOrthoXnOY
ECameraCenter
Point the camera looks at and orbits around after a camera reset.
@ kCameraCenterOrigin
world origin, (0, 0, 0)
@ kCameraCenterBBox
center of the scene bounding box
Int_t fAxesUpAxis
Which axis points up: 0/1/2 for x/y/z, -1 (default) for none.
Int_t GetAxesUpAxis() const
Int_t WriteCoreJson(nlohmann::json &cj, Int_t rnr_offset) override
Stream Camera Info.
void SetCameraByElementId(ElementId_t cameraId)
Float_t GetToneMapKnee() const
std::string fPostStreamFlag
Float_t fTooltipAlpha
Opacity of the plate behind the tooltip and kept annotations, in [0, 1].
void SetAxesAtten(Float_t a)
Distance attenuation of the 3D axis labels.
void SetLightScale(Float_t s)
Multiplier on the client's light intensities, clamped at zero from below.
void Redraw(Bool_t resetCameras=kFALSE)
Redraw viewer immediately.
Float_t GetLightScale() const
virtual void AddScene(REveScene *scene)
Add 'scene' to the list of scenes.
void SetTooltipFontSize(Float_t s)
Label size for the hover tooltip, as a fraction of viewport height.
Float_t GetAxesFontSize() const
static constexpr ECameraType kCameraOrthoXOY
ROOT::Experimental::REveCamera * CreateCamera(ECameraType type)
static constexpr ECameraType kCameraPerspXOZ
void SetToneMapKnee(Float_t k)
Knee position for kToneKnee: colours below this pass through exactly, so raising it buys fidelity and...
static constexpr ECameraType kCameraOrthoZnOX
Float_t fAxesFontSize
3D axis label size, as a fraction of viewport height.
void SetAxesUpAxis(int)
Set the up axis, 0/1/2 for x/y/z; any other value means none.
void SetToneMapMode(Int_t m)
Tone curve, as EToneMapMode.
Float_t GetMotionMaxHz() const
Cap on how often this viewer applies streamed motion, in updates per second, clamped to [0,...
void SetBlackBackground(bool)
Float_t GetRenderMaxHz() const
Cap on how often the animation loop redraws this viewer, in frames per second, clamped to [0,...
REveCamera * GetCamera() const
static constexpr ECameraType kCameraOrthoZnOY