Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
ROOT::Experimental::REveViewer Class Reference

REveViewer Reve representation of TGLViewer.

Definition at line 28 of file REveViewer.hxx.

Public Types

typedef std::list< REveAunt * > AuntList_t
 
enum  EAxesType { kAxesNone , kAxesOrigin , kAxesEdge }
 
enum  EBBoxState : UChar_t { kBBoxInvalid , kBBoxNone , kBBoxSet , kBBoxNotInWorld }
 
enum  ECameraCenter { kCameraCenterOrigin , kCameraCenterBBox }
 Point the camera looks at and orbits around after a camera reset. More...
 
using ECameraType = REveCamera::ECameraType
 
enum  EChangeBits {
  kCBCoreJson = (1ULL << ( 0 )) , kCBTrans = (1ULL << ( 1 )) , kCBObjProps = (1ULL << ( 2 )) , kCBFullRebuild = kCBObjProps ,
  kCBVisibility = (1ULL << ( 3 )) , kCBElementAdded = (1ULL << ( 4 ))
}
 
enum  EToneMapMode { kToneReinhard = 0 , kToneExposure = 1 , kToneLinear = 2 , kToneKnee = 3 }
 Tone curve applied to the rendered buffer. Values match the shader. More...
 
typedef std::list< REveElement * > List_t
 
typedef std::set< REveElement * > Set_t
 

Public Member Functions

 REveViewer (const std::string &n="REveViewer", const std::string &t="")
 Constructor.
 
 ~REveViewer () override
 Destructor.
 
virtual Bool_t AcceptElement (REveElement *el)
 Check if el can be added to this element.
 
virtual void AddAunt (REveAunt *au)
 Add el into the list aunts.
 
virtual void AddElement (REveElement *el)
 Add el to the list of children.
 
virtual void AddScene (REveScene *scene)
 Add 'scene' to the list of scenes.
 
virtual void AddStamp (UChar_t bits)
 Add (bitwise or) given stamps to fChangeBits.
 
virtual void Annihilate ()
 Optimized destruction without check of reference-count.
 
virtual void AnnihilateElements ()
 Annihilate elements.
 
Bool_t ApplyVizTag (const TString &tag, const TString &fallback_tag="")
 Set the VizTag, find model-element from the VizDB and copy visualization-parameters from it.
 
EBBoxState AssertBBox ()
 Compute the bounding box if it is invalid, and return its state.
 
virtual void AuntChanged (REveAunt *)
 Called by an aunt that holds this element when the aunt has changed.
 
void AutoTuneLights ()
 Ask the clients to pick a light scale that keeps the brightest channel just below white.
 
virtual void BuildRenderData ()
 Build fRenderData, what the client draws.
 
virtual Bool_t CanEditElement () const
 
virtual Bool_t CanEditMainColor () const
 
virtual Bool_t CanEditMainTrans () const
 
virtual Bool_t CanEditMainTransparency () const
 
virtual void CheckReferenceCount (const std::string &from="<unknown>")
 Check external references to this and eventually auto-destruct the render-element.
 
void ClearAxesBBox ()
 Let the 3D axis follow the scene bounding box again.
 
virtual void ClearStamps ()
 
virtual void CloneChildrenRecurse (REveElement *dest, Int_t level=0) const
 Clone children and attach them to the dest element.
 
virtual REveElement * CloneElement () const
 Clone the element via copy constructor.
 
virtual REveElement * CloneElementRecurse (Int_t level=0) const
 Clone elements and recurse 'level' deep over children.
 
Int_t ComposeSceneTrans (REveTrans &t) const
 Compose into t the matrices of this element and of its mothers up to, not including, its REveScene: the frame the client draws the element in.
 
virtual void ComputeBBox ()
 Compute the bounding box in the element's own frame, before fMainTrans.
 
void ConnectClient ()
 Function called from MIR when user wants to stream unsubscribed view.
 
virtual void CopyVizParams (const REveElement *el)
 Copy visualization parameters from element el.
 
virtual void CopyVizParamsFromDB ()
 Copy visualization parameters from the model-element fVizModel.
 
void CSCApplyMainColorToAllChildren ()
 
void CSCApplyMainColorToMatchingChildren ()
 
void CSCApplyMainTransparencyToAllChildren ()
 
void CSCApplyMainTransparencyToMatchingChildren ()
 
void CSCImplySelectAllChildren ()
 
void CSCTakeMotherAsMaster ()
 
void DecDenyDestroy ()
 Decreases the deny-destroy count of the element.
 
void DecImpliedSelected ()
 
virtual void Destroy ()
 Destroy this element.
 
virtual void DestroyElements ()
 Destroy all children of this element.
 
virtual void DestroyMainTrans ()
 Destroy the main transformation matrix, it will always be taken as identity.
 
virtual void DestroyOrWarn ()
 Destroy this element. Prints a warning if deny-destroy is in force.
 
void DisableListElements (Bool_t rnr_self=kFALSE, Bool_t rnr_children=kFALSE)
 Disable rendering of children and their list contents.
 
void DisconnectClient ()
 Function called from MIR when user closes one of the viewer window.
 
void EnableListElements (Bool_t rnr_self=kTRUE, Bool_t rnr_children=kTRUE)
 Enable rendering of children and their list contents.
 
virtual void ExportToInterpreter (const char *var_name)
 Export render-element to Cling with variable name var_name.
 
virtual void FillExtraSelectionData (nlohmann::json &, const std::set< int > &) const
 
virtual void FillImpliedSelectedSet (Set_t &impSelSet, const std::set< int > &)
 Populate set impSelSet with derived / dependant elements.
 
REveElement * FindChild (const TString &name, const TClass *cls=nullptr)
 Find the first child with given name.
 
REveElement * FindChild (TPRegexp &regexp, const TClass *cls=nullptr)
 Find the first child whose name matches regexp.
 
Int_t FindChildren (List_t &matches, const TString &name, const TClass *cls=nullptr)
 Find all children with given name and append them to matches list.
 
Int_t FindChildren (List_t &matches, TPRegexp &regexp, const TClass *cls=nullptr)
 Find all children whose name matches regexp and append them to matches list.
 
REveElement * FirstChild () const
 Returns the first child element or 0 if the list is empty.
 
Float_t GetAxesAtten () const
 
Float_t GetAxesFontSize () const
 
EAxesType GetAxesType () const
 
Int_t GetAxesUpAxis () const
 
const REveVector & GetBBoxMax () const
 
const REveVector & GetBBoxMin () const
 
EBBoxState GetBBoxState () const
 
bool GetBlackBackground () const
 
REveCamera * GetCamera () const
 
ECameraCenter GetCameraCenter () const
 
UChar_t GetChangeBits () const
 
TClass * GetChildClass () const
 
const char * GetCName () const
 
REveCompound * GetCompound ()
 
const char * GetCTitle () const
 
Int_t GetDenyDestroy () const
 Returns the number of times deny-destroy has been requested on the element.
 
Bool_t GetDestroyOnZeroRefCnt () const
 Returns state of flag determining if the element will be destroyed when reference count reaches zero.
 
ElementId_t GetElementId () const
 
Bool_t GetExtrapolateMotion () const
 
virtual std::string GetHighlightTooltip (const std::set< int > &) const
 
int GetImpliedSelected ()
 
Float_t GetLightScale () const
 
virtual Color_t GetMainColor () const
 
Color_t * GetMainColorPtr () const
 
virtual Char_t GetMainTransparency () const
 
bool GetMandatory ()
 
REveElement * GetMother ()
 
const std::string & GetName () const
 
REveRenderData * GetRenderData () const
 
Float_t GetRenderMaxHz () const
 Cap on how often the animation loop redraws this viewer, in frames per second, clamped to [0, 240].
 
virtual Bool_t GetRnrAnything () const
 
virtual Bool_t GetRnrChildren () const
 
virtual Bool_t GetRnrSelf () const
 
virtual Bool_t GetRnrState () const
 
REveScene * GetScene ()
 
virtual REveElement * GetSelectionMaster ()
 Returns the master element - that is:
 
bool GetSyncCamera () const
 
const std::string & GetTitle () const
 
Float_t GetToneMapKnee () const
 
Int_t GetToneMapMode () const
 
Float_t GetTooltipAlpha () const
 
Float_t GetTooltipFontSize () const
 
void * GetUserData () const
 
REveElement * GetVizModel () const
 
const TString & GetVizTag () const
 
Bool_t HasAunts () const
 
Bool_t HasAxesBBox () const
 
Bool_t HasChild (REveElement *el)
 Check if element el is a child of this element.
 
Bool_t HasChildren () const
 
virtual Bool_t HasMainColor () const
 
virtual Bool_t HasMainTrans () const
 
bool HasMother ()
 
bool HasScene ()
 
void IncDenyDestroy ()
 Increases the deny-destroy count of the element.
 
void IncImpliedSelected ()
 
virtual void InitMainTrans (Bool_t can_edit=kTRUE)
 Initialize the main transformation to identity matrix, without motion.
 
TClass * IsA () const
 Return class for this element Return REveElement class in case dicitonary is not exisiting.
 
Bool_t IsPickable () const
 
REveElement * LastChild () const
 Returns the last child element or 0 if the list is empty.
 
virtual void NameTitleChanged ()
 Virtual function called when a name or title of the element has been changed.
 
Int_t NumAunts () const
 
Int_t NumChildren () const
 
virtual void ProjectAllChildren (Bool_t same_depth=kTRUE)
 If this is a projectable, loop over all projected replicas and add the projected image of all children there.
 
virtual void ProjectChild (REveElement *el, Bool_t same_depth=kTRUE)
 If this is a projectable, loop over all projected replicas and add the projected image of child 'el' there.
 
virtual void PropagateMainColorToProjecteds (Color_t color, Color_t old_color)
 Propagate color to projected elements.
 
virtual void PropagateMainTransparencyToProjecteds (Char_t t, Char_t old_t)
 Propagate transparency to projected elements.
 
virtual void PropagateRnrStateToProjecteds ()
 Propagate render state to the projected replicas of this element.
 
virtual void PropagateVizParamsToChildren (REveElement *el=nullptr)
 Propagate visualization parameters from element el (defaulting to this) to all children.
 
virtual void PropagateVizParamsToProjecteds ()
 Propagate visualization parameters to dependent elements.
 
virtual REveTrans * PtrMainTrans (Bool_t create=kTRUE)
 Return pointer to main transformation.
 
void RecheckImpliedSelections ()
 Call this if it is possible that implied-selection or highlight has changed for this element or for implied-selection this element is member of and you want to maintain consistent selection state.
 
void Redraw (Bool_t resetCameras=kFALSE)
 Redraw viewer immediately.
 
AuntList_t & RefAunts ()
 
const AuntList_t & RefAunts () const
 
List_t & RefChildren ()
 
const List_t & RefChildren () const
 
virtual REveTrans & RefMainTrans ()
 Return reference to main transformation.
 
virtual void RemoveAunt (REveAunt *au)
 Remove el from the list of aunts.
 
virtual void RemoveElement (REveElement *el)
 Remove el from the list of children.
 
void RemoveElementLocal (REveElement *el) override
 Remove element 'el' from the list of children and also remove appropriate GLScene from GLViewer's list of scenes.
 
virtual void RemoveElements ()
 Remove all elements.
 
void RemoveElementsLocal () override
 Remove all children, forwarded to GLViewer.
 
virtual bool RequiresExtraSelectionData () const
 
void ResetAllCSCBits ()
 
void ResetBBox ()
 
void ResetCSCBits (UChar_t f)
 
void SaveVizParams (std::ostream &out, const TString &tag, const TString &var)
 Save visualization parameters for this element with given tag.
 
void SetAxesAtten (Float_t a)
 Distance attenuation of the 3D axis labels.
 
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 contents.
 
void SetAxesFontSize (Float_t s)
 Label size for the 3D axis, as a fraction of viewport height, clamped to [0.004, 0.05].
 
void SetAxesType (int)
 
void SetAxesUpAxis (int)
 Set the up axis, 0/1/2 for x/y/z; any other value means none.
 
void SetBlackBackground (bool)
 
void SetCamera (ROOT::Experimental::REveCamera *cam)
 Set camera reference.
 
void SetCameraByElementId (ElementId_t cameraId)
 
void SetCameraCenter (ECameraCenter c)
 Set the point the camera looks at and orbits around, either the world origin or the center of the scene bounding box.
 
void SetCameraType (REveCamera::ECameraType type)
 Set camera by type (backward compatibility with old API)
 
void SetChildClass (TClass *c)
 
void SetCompound (REveCompound *c)
 
void SetCSCBits (UChar_t f)
 
void SetDestroyOnZeroRefCnt (Bool_t d)
 Sets the state of flag determining if the element will be destroyed when reference count reaches zero.
 
void SetEditMainColor (Bool_t x)
 
void SetEditMainTransparency (Bool_t x)
 
void SetExtrapolateMotion (bool)
 Enable or disable client-side extrapolation of streamed motion.
 
void SetLightScale (Float_t s)
 Multiplier on the client's light intensities, clamped at zero from below.
 
void SetMainAlpha (Float_t alpha)
 Set main-transparency via float alpha variable.
 
virtual void SetMainColor (Color_t color)
 Set main color of the element.
 
void SetMainColorPixel (Pixel_t pixel)
 Convert pixel to Color_t and call SetMainColor().
 
void SetMainColorPtr (Color_t *colptr)
 
void SetMainColorRGB (Float_t r, Float_t g, Float_t b)
 Convert RGB values to Color_t and call SetMainColor.
 
void SetMainColorRGB (UChar_t r, UChar_t g, UChar_t b)
 Convert RGB values to Color_t and call SetMainColor.
 
virtual void SetMainTransparency (Char_t t)
 Set main-transparency.
 
void SetMandatory (bool x)
 
void SetName (const std::string &name)
 Set name of an element.
 
void SetNameTitle (const std::string &name, const std::string &title)
 Set name and title of an element.
 
void SetPickable (Bool_t p)
 
void SetPickableRecursively (Bool_t p)
 Set pickable state on the element and all its children.
 
void SetRenderMaxHz (Float_t)
 Cap the redraw rate of this viewer, in frames per second; 0 is uncapped.
 
virtual Bool_t SetRnrChildren (Bool_t rnr)
 Set render state of this element's children, i.e.
 
virtual Bool_t SetRnrSelf (Bool_t rnr)
 Set render state of this element, i.e.
 
virtual Bool_t SetRnrSelfChildren (Bool_t rnr_self, Bool_t rnr_children)
 Set state for rendering of this element and its children.
 
virtual Bool_t SetRnrState (Bool_t rnr)
 Set render state of this element and of its children to the same value.
 
void SetSelectionMaster (REveElement *el)
 
void SetTitle (const std::string &title)
 Set title of an element.
 
void SetToneMapKnee (Float_t k)
 Knee position for kToneKnee: colours below this pass through exactly, so raising it buys fidelity and spends highlight gradient.
 
void SetToneMapMode (Int_t m)
 Tone curve, as EToneMapMode.
 
void SetTooltipAlpha (Float_t a)
 Opacity of the plate behind the tooltip and kept annotations.
 
void SetTooltipFontSize (Float_t s)
 Label size for the hover tooltip, as a fraction of viewport height.
 
virtual void SetTransMatrix (const TGeoMatrix &mat)
 Set transformation matrix from TGeo's matrix.
 
virtual void SetTransMatrix (Double_t *carr)
 Set transformation matrix from column-major array.
 
void SetupDefaultColorAndTransparency (Color_t col, Bool_t can_edit_color, Bool_t can_edit_transparency)
 Set up element to use built-in main color and set flags allowing editing of main color and transparency.
 
void SetUserData (void *ud)
 
void SetVizModel (REveElement *model)
 Set visualization-parameter model element.
 
Bool_t SetVizModelByTag ()
 Find model element in VizDB that corresponds to previously assigned fVizTag and set fVizModel accordingly.
 
void SetVizTag (const TString &tag)
 
virtual Bool_t SingleRnrState () const
 
void Stamp ()
 
void StampCoreJson ()
 
void StampElementAdded ()
 
void StampObjProps ()
 
void StampTrans ()
 
void StampVisibility ()
 
void SyncCamera (bool s)
 
Bool_t TestCSCBits (UChar_t f) const
 
void VizDB_Apply (const std::string &tag)
 Set visual parameters for this object for given tag.
 
void VizDB_Insert (const std::string &tag, Bool_t replace=kTRUE, Bool_t update=kTRUE)
 Create a replica of element and insert it into VizDB with given tag.
 
void VizDB_Reapply ()
 Reset visual parameters for this object from VizDB.
 
void VizDB_UpdateModel (Bool_t update=kTRUE)
 Copy visual parameters from this element to viz-db model.
 
Int_t WriteCoreJson (nlohmann::json &cj, Int_t rnr_offset) override
 Stream Camera Info.
 
virtual void WriteTransJson (nlohmann::json &cj)
 Write the main transformation and its motion for a kCBTrans update.
 
virtual void WriteVizParams (std::ostream &out, const TString &var)
 Write-out visual parameters for this object.
 

Static Public Attributes

static constexpr ECameraType kCameraOrthoXnOY = REveCamera::kCameraOrthoXnOY
 
static constexpr ECameraType kCameraOrthoXnOZ = REveCamera::kCameraOrthoXnOZ
 
static constexpr ECameraType kCameraOrthoXOY = REveCamera::kCameraOrthoXOY
 
static constexpr ECameraType kCameraOrthoXOZ = REveCamera::kCameraOrthoXOZ
 
static constexpr ECameraType kCameraOrthoZnOX = REveCamera::kCameraOrthoZnOX
 
static constexpr ECameraType kCameraOrthoZnOY = REveCamera::kCameraOrthoZnOY
 
static constexpr ECameraType kCameraOrthoZOX = REveCamera::kCameraOrthoZOX
 
static constexpr ECameraType kCameraOrthoZOY = REveCamera::kCameraOrthoZOY
 
static constexpr ECameraType kCameraPerspXOY = REveCamera::kCameraPerspXOY
 
static constexpr ECameraType kCameraPerspXOZ = REveCamera::kCameraPerspXOZ
 
static constexpr ECameraType kCameraPerspYOZ = REveCamera::kCameraPerspYOZ
 

Protected Types

enum  ECompoundSelectionColorBits {
  kCSCBImplySelectAllChildren = (1ULL << ( 0 )) , kCSCBTakeMotherAsMaster = (1ULL << ( 1 )) , kCSCBApplyMainColorToAllChildren = (1ULL << ( 2 )) , kCSCBApplyMainColorToMatchingChildren = (1ULL << ( 3 )) ,
  kCSCBApplyMainTransparencyToAllChildren = (1ULL << ( 4 )) , kCSCBApplyMainTransparencyToMatchingChildren = (1ULL << ( 5 ))
}
 
enum  EDestruct { kNone , kStandard , kAnnihilate }
 

Protected Member Functions

virtual void AnnihilateRecursively ()
 Protected member function called from REveElement::Annihilate().
 
void AssertBBoxExtents (Float_t epsilon=0.005)
 Widen every side of the bounding box shorter than epsilon to epsilon, keeping its centre.
 
void assign_element_id_recurisvely ()
 
void assign_scene_recursively (REveScene *s)
 
void BBoxCheckBox (const REveVector &c, const REveVector &h)
 Grow the box to hold the axis-aligned box with centre c and half sizes h.
 
void BBoxCheckPoint (const Float_t *p)
 
void BBoxCheckPoint (const REveVector &v)
 
void BBoxCheckPoint (Float_t x, Float_t y, Float_t z)
 
void BBoxClear ()
 
void BBoxInit ()
 Start filling the bounding box with BBoxCheckPoint(): min at +infinity, max at -infinity, so the first point sets both.
 
void BBoxNotInWorld ()
 
void BBoxZero (Float_t epsilon=0, Float_t x=0, Float_t y=0, Float_t z=0)
 Set the bounding box to a cube of half-side epsilon at (x, y, z); with the defaults, a point at the origin.
 
ElementId_t get_mother_id () const
 
ElementId_t get_scene_id () const
 
virtual void PreDeleteElement ()
 Called before the element is deleted, thus offering the last chance to detach from acquired resources and from the framework itself.
 
virtual void RemoveElementsInternal ()
 Remove all elements.
 

Static Protected Member Functions

static void AppendMirErrorString (std::string_view err_str)
 
static void ClearMirContext ()
 
static void SetMirContext (REveElement *el)
 
static void SetMirError (int error, std::string_view err_str="")
 
static const std::string & ToString (Bool_t b)
 Convert Bool_t to string - kTRUE or kFALSE.
 

Protected Attributes

AuntList_t fAunts
 
REveVector fBBoxMax
 !
 
REveVector fBBoxMin
 ! Bounding box in the element's own frame.
 
EBBoxState fBBoxState {kBBoxInvalid}
 !
 
Bool_t fCanEditMainColor {kFALSE}
 
Bool_t fCanEditMainTrans {kFALSE}
 
Bool_t fCanEditMainTransparency {kFALSE}
 
UChar_t fChangeBits {0}
 !
 
TClass * fChildClass {nullptr}
 
List_t fChildren
 
REveCompound * fCompound {nullptr}
 
UChar_t fCSCBits {0}
 
Color_t fDefaultColor {kPink}
 
Int_t fDenyDestroy {0}
 ! Deny-destroy count.
 
Bool_t fDestroyOnZeroRefCnt {kTRUE}
 
Char_t fDestructing {kNone}
 !
 
Short_t fImpliedSelected {0}
 
Color_t * fMainColorPtr {nullptr}
 
std::unique_ptr< REveTrans > fMainTrans
 
Char_t fMainTransparency {0}
 
REveElement * fMother {nullptr}
 
std::string fName
 
Bool_t fPickable {false}
 
std::unique_ptr< REveRenderData > fRenderData
 ! Vertex / normal / triangle index information for rendering.
 
Bool_t fRnrChildren {kTRUE}
 
Bool_t fRnrSelf {kTRUE}
 
REveScene * fScene {nullptr}
 
REveElement * fSelectionMaster {nullptr}
 
std::string fTitle
 
void * fUserData {nullptr}
 ! Externally assigned and controlled user data.
 
REveElement * fVizModel {nullptr}
 ! Element used as model from VizDB.
 
TString fVizTag
 

Static Protected Attributes

static thread_local REveElement * stlMirAlpha = nullptr
 
static thread_local int stlMirError = 0
 
static thread_local std::string stlMirErrorString
 

Private Member Functions

 REveViewer (const REveViewer &)=delete
 
ROOT::Experimental::REveCamera * CreateCamera (ECameraType type)
 
REveViewer & operator= (const REveViewer &)=delete
 

Private Attributes

Int_t fAutoTuneSerial {0}
 Bumped by AutoTuneLights(); the client re-measures when it changes.
 
Float_t fAxesAtten {1.f}
 Distance attenuation of the 3D axis labels; see SetAxesAtten().
 
Float_t fAxesBBox [6] {}
 xmin, ymin, zmin, xmax, ymax, zmax
 
Float_t fAxesFontSize {0.015f}
 3D axis label size, as a fraction of viewport height.
 
EAxesType fAxesType {kAxesNone}
 
Int_t fAxesUpAxis {-1}
 Which axis points up: 0/1/2 for x/y/z, -1 (default) for none.
 
bool fBlackBackground {false}
 
REveCamera * fCamera {0}
 
ECameraCenter fCameraCenter {kCameraCenterOrigin}
 
std::vector< REveCamera * > fCameraList
 
ElementId_t fElementId {0}
 
Bool_t fExtrapolateMotion {kTRUE}
 Let the client extrapolate streamed motion between updates.
 
Bool_t fHasAxesBBox {kFALSE}
 see SetAxesBBox()
 
Float_t fLightScale {0.85}
 Multiplier on the client's light intensities; see SetLightScale().
 
bool fMandatory {true}
 
std::string fPostStreamFlag
 
Float_t fRenderMaxHz {0.f}
 see SetRenderMaxHz(); 0 is uncapped
 
bool fSyncCamera {true}
 
Float_t fToneMapKnee {0.95}
 
Int_t fToneMapMode {kToneKnee}
 
Float_t fTooltipAlpha {0.85f}
 Opacity of the plate behind the tooltip and kept annotations, in [0, 1].
 
Float_t fTooltipFontSize {0.012f}
 Tooltip text size, same units as fAxesFontSize.
 

#include <ROOT/REveViewer.hxx>

Inheritance diagram for ROOT::Experimental::REveViewer:
[legend]

Member Typedef Documentation

◆ AuntList_t

Definition at line 58 of file REveElement.hxx.

◆ ECameraType

◆ List_t

Definition at line 54 of file REveElement.hxx.

◆ Set_t

Definition at line 56 of file REveElement.hxx.

Member Enumeration Documentation

◆ EAxesType

Enumerator
kAxesNone 
kAxesOrigin 
kAxesEdge 

Definition at line 47 of file REveViewer.hxx.

◆ EBBoxState

Enumerator
kBBoxInvalid 
kBBoxNone 
kBBoxSet 
kBBoxNotInWorld 

Definition at line 104 of file REveElement.hxx.

◆ ECameraCenter

Point the camera looks at and orbits around after a camera reset.

Enumerator
kCameraCenterOrigin 

world origin, (0, 0, 0)

kCameraCenterBBox 

center of the scene bounding box

Definition at line 54 of file REveViewer.hxx.

◆ EChangeBits

Enumerator
kCBCoreJson 
kCBTrans 
kCBObjProps 
kCBFullRebuild 
kCBVisibility 
kCBElementAdded 

Definition at line 377 of file REveElement.hxx.

◆ ECompoundSelectionColorBits

Enumerator
kCSCBImplySelectAllChildren 
kCSCBTakeMotherAsMaster 
kCSCBApplyMainColorToAllChildren 
kCSCBApplyMainColorToMatchingChildren 
kCSCBApplyMainTransparencyToAllChildren 
kCSCBApplyMainTransparencyToMatchingChildren 

Definition at line 319 of file REveElement.hxx.

◆ EDestruct

Enumerator
kNone 
kStandard 
kAnnihilate 

Definition at line 329 of file REveElement.hxx.

◆ EToneMapMode

Tone curve applied to the rendered buffer. Values match the shader.

Enumerator
kToneReinhard 
kToneExposure 
kToneLinear 

no curve; exact colours, but anything over 1 clips

kToneKnee 

identity below the knee, smooth roll-off above

Definition at line 61 of file REveViewer.hxx.

Constructor & Destructor Documentation

◆ REveViewer() [1/2]

ROOT::Experimental::REveViewer::REveViewer ( const REveViewer & )
privatedelete

◆ REveViewer() [2/2]

REveViewer::REveViewer ( const std::string & n = "REveViewer",
const std::string & t = "" )

Constructor.

Definition at line 36 of file REveViewer.cxx.

◆ ~REveViewer()

REveViewer::~REveViewer ( )
override

Destructor.

Definition at line 46 of file REveViewer.cxx.

Member Function Documentation

◆ AcceptElement()

Bool_t REveElement::AcceptElement ( REveElement * el)
virtualinherited

Check if el can be added to this element.

Here we make sure the new child is not equal to this and, if fChildClass is set, that it is inherited from it.

Reimplemented in ROOT::Experimental::REveSceneInfo.

Definition at line 911 of file REveElement.cxx.

◆ AddAunt()

void REveElement::AddAunt ( REveAunt * au)
virtualinherited

Add el into the list aunts.

Adding aunt is subordinate to adding a niece. This is an internal function.

Definition at line 551 of file REveElement.cxx.

◆ AddElement()

void REveElement::AddElement ( REveElement * el)
virtualinherited

Add el to the list of children.

Reimplemented in ROOT::Experimental::REveCompound, and ROOT::Experimental::REveViewerList.

Definition at line 923 of file REveElement.cxx.

◆ AddScene()

void REveViewer::AddScene ( REveScene * scene)
virtual

Add 'scene' to the list of scenes.

Definition at line 61 of file REveViewer.cxx.

◆ AddStamp()

void REveElement::AddStamp ( UChar_t bits)
virtualinherited

Add (bitwise or) given stamps to fChangeBits.

Register this element to REX::gEve as stamped. This method is virtual so that sub-classes can add additional actions. The base-class method should still be called (or replicated).

Definition at line 1492 of file REveElement.cxx.

◆ Annihilate()

void REveElement::Annihilate ( )
virtualinherited

Optimized destruction without check of reference-count.

Parents are not notified about child destruction. The method should only be used when an element does not have more than one parent – otherwise an exception is thrown.

Definition at line 1259 of file REveElement.cxx.

◆ AnnihilateElements()

void REveElement::AnnihilateElements ( )
virtualinherited

Annihilate elements.

Definition at line 1288 of file REveElement.cxx.

◆ AnnihilateRecursively()

void REveElement::AnnihilateRecursively ( )
protectedvirtualinherited

Protected member function called from REveElement::Annihilate().

Definition at line 1233 of file REveElement.cxx.

◆ AppendMirErrorString()

void REveElement::AppendMirErrorString ( std::string_view err_str)
staticprotectedinherited

Definition at line 147 of file REveElement.cxx.

◆ ApplyVizTag()

Bool_t REveElement::ApplyVizTag ( const TString & tag,
const TString & fallback_tag = "" )
inherited

Set the VizTag, find model-element from the VizDB and copy visualization-parameters from it.

If the model is not found and fallback_tag is non-null, search for it is attempted as well. For example: ApplyVizTag("TPC Clusters", "Clusters");

If the model-element can not be found a warning is printed and false is returned.

Definition at line 342 of file REveElement.cxx.

◆ AssertBBox()

REveElement::EBBoxState REveElement::AssertBBox ( )
inherited

Compute the bounding box if it is invalid, and return its state.

Definition at line 1566 of file REveElement.cxx.

◆ AssertBBoxExtents()

void REveElement::AssertBBoxExtents ( Float_t epsilon = 0.005)
protectedinherited

Widen every side of the bounding box shorter than epsilon to epsilon, keeping its centre.

Definition at line 1539 of file REveElement.cxx.

◆ assign_element_id_recurisvely()

void REveElement::assign_element_id_recurisvely ( )
protectedinherited

Definition at line 172 of file REveElement.cxx.

◆ assign_scene_recursively()

void REveElement::assign_scene_recursively ( REveScene * s)
protectedinherited

Definition at line 193 of file REveElement.cxx.

◆ AuntChanged()

virtual void ROOT::Experimental::REveElement::AuntChanged ( REveAunt * )
inlinevirtualinherited

Called by an aunt that holds this element when the aunt has changed.

Reimplemented in ROOT::Experimental::REveProjectionAxis.

Definition at line 192 of file REveElement.hxx.

◆ AutoTuneLights()

void REveViewer::AutoTuneLights ( )

Ask the clients to pick a light scale that keeps the brightest channel just below white.

Only a client can measure that, so it reports its choice back through SetLightScale().

Definition at line 266 of file REveViewer.cxx.

◆ BBoxCheckBox()

void ROOT::Experimental::REveElement::BBoxCheckBox ( const REveVector & c,
const REveVector & h )
inlineprotectedinherited

Grow the box to hold the axis-aligned box with centre c and half sizes h.

Definition at line 128 of file REveElement.hxx.

◆ BBoxCheckPoint() [1/3]

void ROOT::Experimental::REveElement::BBoxCheckPoint ( const Float_t * p)
inlineprotectedinherited

Definition at line 126 of file REveElement.hxx.

◆ BBoxCheckPoint() [2/3]

void ROOT::Experimental::REveElement::BBoxCheckPoint ( const REveVector & v)
inlineprotectedinherited

Definition at line 120 of file REveElement.hxx.

◆ BBoxCheckPoint() [3/3]

void ROOT::Experimental::REveElement::BBoxCheckPoint ( Float_t x,
Float_t y,
Float_t z )
inlineprotectedinherited

Definition at line 125 of file REveElement.hxx.

◆ BBoxClear()

void ROOT::Experimental::REveElement::BBoxClear ( )
inlineprotectedinherited

Definition at line 118 of file REveElement.hxx.

◆ BBoxInit()

void REveElement::BBoxInit ( )
protectedinherited

Start filling the bounding box with BBoxCheckPoint(): min at +infinity, max at -infinity, so the first point sets both.

A box that no point reached stays inverted, and AssertBBox() reports it as kBBoxNone.

Definition at line 1516 of file REveElement.cxx.

◆ BBoxNotInWorld()

void ROOT::Experimental::REveElement::BBoxNotInWorld ( )
inlineprotectedinherited

Definition at line 119 of file REveElement.hxx.

◆ BBoxZero()

void REveElement::BBoxZero ( Float_t epsilon = 0,
Float_t x = 0,
Float_t y = 0,
Float_t z = 0 )
protectedinherited

Set the bounding box to a cube of half-side epsilon at (x, y, z); with the defaults, a point at the origin.

Definition at line 1528 of file REveElement.cxx.

◆ BuildRenderData()

◆ CanEditElement()

virtual Bool_t ROOT::Experimental::REveElement::CanEditElement ( ) const
inlinevirtualinherited

Definition at line 250 of file REveElement.hxx.

◆ CanEditMainColor()

virtual Bool_t ROOT::Experimental::REveElement::CanEditMainColor ( ) const
inlinevirtualinherited

Definition at line 264 of file REveElement.hxx.

◆ CanEditMainTrans()

virtual Bool_t ROOT::Experimental::REveElement::CanEditMainTrans ( ) const
inlinevirtualinherited

Definition at line 284 of file REveElement.hxx.

◆ CanEditMainTransparency()

virtual Bool_t ROOT::Experimental::REveElement::CanEditMainTransparency ( ) const
inlinevirtualinherited

Definition at line 277 of file REveElement.hxx.

◆ CheckReferenceCount()

void REveElement::CheckReferenceCount ( const std::string & from = "<unknown>")
virtualinherited

Check external references to this and eventually auto-destruct the render-element.

Reimplemented in ROOT::Experimental::REveTrackPropagator.

Definition at line 576 of file REveElement.cxx.

◆ ClearAxesBBox()

void REveViewer::ClearAxesBBox ( )

Let the 3D axis follow the scene bounding box again.

Definition at line 139 of file REveViewer.cxx.

◆ ClearMirContext()

void REveElement::ClearMirContext ( )
staticprotectedinherited

Definition at line 130 of file REveElement.cxx.

◆ ClearStamps()

virtual void ROOT::Experimental::REveElement::ClearStamps ( )
inlinevirtualinherited

Definition at line 416 of file REveElement.hxx.

◆ CloneChildrenRecurse()

void REveElement::CloneChildrenRecurse ( REveElement * dest,
Int_t level = 0 ) const
virtualinherited

Clone children and attach them to the dest element.

If level == 0, only the direct descendants are cloned (default). If level == -1, all the hierarchy is cloned.

Definition at line 252 of file REveElement.cxx.

◆ CloneElement()

REveElement * REveElement::CloneElement ( ) const
virtualinherited

Clone the element via copy constructor.

Should be implemented for all classes that require cloning support.

Reimplemented in ROOT::Experimental::REvePointSet.

Definition at line 227 of file REveElement.cxx.

◆ CloneElementRecurse()

REveElement * REveElement::CloneElementRecurse ( Int_t level = 0) const
virtualinherited

Clone elements and recurse 'level' deep over children.

  • If level == 0, only the element itself is cloned (default).
  • If level == -1, all the hierarchy is cloned.

Definition at line 237 of file REveElement.cxx.

◆ ComposeSceneTrans()

Int_t REveElement::ComposeSceneTrans ( REveTrans & t) const
inherited

Compose into t the matrices of this element and of its mothers up to, not including, its REveScene: the frame the client draws the element in.

Returns the number of matrices; t is set only when it is non-zero.

Definition at line 891 of file REveElement.cxx.

◆ ComputeBBox()

◆ ConnectClient()

void REveViewer::ConnectClient ( )

Function called from MIR when user wants to stream unsubscribed view.

Definition at line 319 of file REveViewer.cxx.

◆ CopyVizParams()

void REveElement::CopyVizParams ( const REveElement * el)
virtualinherited

Copy visualization parameters from element el.

This method needs to be overriden by any class that introduces new parameters.

Reimplemented in ROOT::Experimental::REveLine, ROOT::Experimental::REvePointSet, ROOT::Experimental::REveShape, ROOT::Experimental::REveStraightLineSet, ROOT::Experimental::REveTrack, and ROOT::Experimental::REveTrackList.

Definition at line 405 of file REveElement.cxx.

◆ CopyVizParamsFromDB()

void REveElement::CopyVizParamsFromDB ( )
virtualinherited

Copy visualization parameters from the model-element fVizModel.

A warning is printed if the model-element fVizModel is not set.

Definition at line 419 of file REveElement.cxx.

◆ CreateCamera()

REveCamera * REveViewer::CreateCamera ( ECameraType type)
private

Definition at line 569 of file REveViewer.cxx.

◆ CSCApplyMainColorToAllChildren()

void ROOT::Experimental::REveElement::CSCApplyMainColorToAllChildren ( )
inlineinherited

Definition at line 363 of file REveElement.hxx.

◆ CSCApplyMainColorToMatchingChildren()

void ROOT::Experimental::REveElement::CSCApplyMainColorToMatchingChildren ( )
inlineinherited

Definition at line 364 of file REveElement.hxx.

◆ CSCApplyMainTransparencyToAllChildren()

void ROOT::Experimental::REveElement::CSCApplyMainTransparencyToAllChildren ( )
inlineinherited

Definition at line 365 of file REveElement.hxx.

◆ CSCApplyMainTransparencyToMatchingChildren()

void ROOT::Experimental::REveElement::CSCApplyMainTransparencyToMatchingChildren ( )
inlineinherited

Definition at line 366 of file REveElement.hxx.

◆ CSCImplySelectAllChildren()

void ROOT::Experimental::REveElement::CSCImplySelectAllChildren ( )
inlineinherited

Definition at line 361 of file REveElement.hxx.

◆ CSCTakeMotherAsMaster()

void ROOT::Experimental::REveElement::CSCTakeMotherAsMaster ( )
inlineinherited

Definition at line 362 of file REveElement.hxx.

◆ DecDenyDestroy()

void REveElement::DecDenyDestroy ( )
inherited

Decreases the deny-destroy count of the element.

Call this after releasing an external pointer to the element.

Definition at line 1399 of file REveElement.cxx.

◆ DecImpliedSelected()

void ROOT::Experimental::REveElement::DecImpliedSelected ( )
inlineinherited

Definition at line 351 of file REveElement.hxx.

◆ Destroy()

void REveElement::Destroy ( )
virtualinherited

Destroy this element.

Throws an exception if deny-destroy is in force. This method should be called instead of a destructor. Note that an exception will be thrown if the element has been protected against destruction with IncDenyDestroy().

Definition at line 1303 of file REveElement.cxx.

◆ DestroyElements()

void REveElement::DestroyElements ( )
virtualinherited

Destroy all children of this element.

Definition at line 1333 of file REveElement.cxx.

◆ DestroyMainTrans()

void REveElement::DestroyMainTrans ( )
virtualinherited

Destroy the main transformation matrix, it will always be taken as identity.

Editing of transformation parameters is disabled. The motion goes with it.

Definition at line 861 of file REveElement.cxx.

◆ DestroyOrWarn()

void REveElement::DestroyOrWarn ( )
virtualinherited

Destroy this element. Prints a warning if deny-destroy is in force.

Definition at line 1318 of file REveElement.cxx.

◆ DisableListElements()

void REveElement::DisableListElements ( Bool_t rnr_self = kFALSE,
Bool_t rnr_children = kFALSE )
inherited

Disable rendering of children and their list contents.

Arguments control how to set self/child rendering.

Same as above function, but default arguments are different. This is convenient for calls via context menu.

Definition at line 1224 of file REveElement.cxx.

◆ DisconnectClient()

void REveViewer::DisconnectClient ( )

Function called from MIR when user closes one of the viewer window.

Definition at line 312 of file REveViewer.cxx.

◆ EnableListElements()

void REveElement::EnableListElements ( Bool_t rnr_self = kTRUE,
Bool_t rnr_children = kTRUE )
inherited

Enable rendering of children and their list contents.

Arguments control how to set self/child rendering.

Definition at line 1211 of file REveElement.cxx.

◆ ExportToInterpreter()

void REveElement::ExportToInterpreter ( const char * var_name)
virtualinherited

Export render-element to Cling with variable name var_name.

Definition at line 610 of file REveElement.cxx.

◆ FillExtraSelectionData()

virtual void ROOT::Experimental::REveElement::FillExtraSelectionData ( nlohmann::json & ,
const std::set< int > &  ) const
inlinevirtualinherited

Reimplemented in ROOT::Experimental::REveCaloData, and ROOT::Experimental::REveDigitSet.

Definition at line 369 of file REveElement.hxx.

◆ FillImpliedSelectedSet()

void REveElement::FillImpliedSelectedSet ( Set_t & impSelSet,
const std::set< int > &  )
virtualinherited

Populate set impSelSet with derived / dependant elements.

If this is a REveProjectable, the projected replicas are added to the set. Thus it does not have to be reimplemented for each sub-class of REveProjected.

Note that this also takes care of projections of REveCompound class, which is also a projectable.

Reimplemented in ROOT::Experimental::REveCompound, ROOT::Experimental::REveCaloData, and ROOT::Experimental::REveDataItemList.

Definition at line 1452 of file REveElement.cxx.

◆ FindChild() [1/2]

REveElement * REveElement::FindChild ( const TString & name,
const TClass * cls = nullptr )
inherited

Find the first child with given name.

If cls is specified (non 0), it is also checked.

Returns nullptr if not found.

Definition at line 1111 of file REveElement.cxx.

◆ FindChild() [2/2]

REveElement * REveElement::FindChild ( TPRegexp & regexp,
const TClass * cls = nullptr )
inherited

Find the first child whose name matches regexp.

If cls is specified (non 0), it is also checked.

Returns nullptr if not found.

Definition at line 1130 of file REveElement.cxx.

◆ FindChildren() [1/2]

Int_t REveElement::FindChildren ( List_t & matches,
const TString & name,
const TClass * cls = nullptr )
inherited

Find all children with given name and append them to matches list.

If class is specified (non 0), it is also checked.

Returns number of elements added to the list.

Definition at line 1149 of file REveElement.cxx.

◆ FindChildren() [2/2]

Int_t REveElement::FindChildren ( List_t & matches,
TPRegexp & regexp,
const TClass * cls = nullptr )
inherited

Find all children whose name matches regexp and append them to matches list.

Returns number of elements added to the list.

Definition at line 1173 of file REveElement.cxx.

◆ FirstChild()

REveElement * REveElement::FirstChild ( ) const
inherited

Returns the first child element or 0 if the list is empty.

Definition at line 1194 of file REveElement.cxx.

◆ get_mother_id()

ElementId_t REveElement::get_mother_id ( ) const
protectedinherited

Definition at line 162 of file REveElement.cxx.

◆ get_scene_id()

ElementId_t REveElement::get_scene_id ( ) const
protectedinherited

Definition at line 167 of file REveElement.cxx.

◆ GetAxesAtten()

Float_t ROOT::Experimental::REveViewer::GetAxesAtten ( ) const
inline

Definition at line 172 of file REveViewer.hxx.

◆ GetAxesFontSize()

Float_t ROOT::Experimental::REveViewer::GetAxesFontSize ( ) const
inline

Definition at line 175 of file REveViewer.hxx.

◆ GetAxesType()

EAxesType ROOT::Experimental::REveViewer::GetAxesType ( ) const
inline

Definition at line 145 of file REveViewer.hxx.

◆ GetAxesUpAxis()

Int_t ROOT::Experimental::REveViewer::GetAxesUpAxis ( ) const
inline

Definition at line 155 of file REveViewer.hxx.

◆ GetBBoxMax()

const REveVector & ROOT::Experimental::REveElement::GetBBoxMax ( ) const
inlineinherited

Definition at line 306 of file REveElement.hxx.

◆ GetBBoxMin()

const REveVector & ROOT::Experimental::REveElement::GetBBoxMin ( ) const
inlineinherited

Definition at line 305 of file REveElement.hxx.

◆ GetBBoxState()

EBBoxState ROOT::Experimental::REveElement::GetBBoxState ( ) const
inlineinherited

Definition at line 304 of file REveElement.hxx.

◆ GetBlackBackground()

bool ROOT::Experimental::REveViewer::GetBlackBackground ( ) const
inline

Definition at line 169 of file REveViewer.hxx.

◆ GetCamera()

REveCamera * ROOT::Experimental::REveViewer::GetCamera ( ) const
inline

Definition at line 136 of file REveViewer.hxx.

◆ GetCameraCenter()

ECameraCenter ROOT::Experimental::REveViewer::GetCameraCenter ( ) const
inline

Definition at line 148 of file REveViewer.hxx.

◆ GetChangeBits()

UChar_t ROOT::Experimental::REveElement::GetChangeBits ( ) const
inlineinherited

Definition at line 420 of file REveElement.hxx.

◆ GetChildClass()

TClass * ROOT::Experimental::REveElement::GetChildClass ( ) const
inlineinherited

Definition at line 200 of file REveElement.hxx.

◆ GetCName()

const char * ROOT::Experimental::REveElement::GetCName ( ) const
inlineinherited

Definition at line 153 of file REveElement.hxx.

◆ GetCompound()

REveCompound * ROOT::Experimental::REveElement::GetCompound ( )
inlineinherited

Definition at line 180 of file REveElement.hxx.

◆ GetCTitle()

const char * ROOT::Experimental::REveElement::GetCTitle ( ) const
inlineinherited

Definition at line 155 of file REveElement.hxx.

◆ GetDenyDestroy()

Int_t REveElement::GetDenyDestroy ( ) const
inherited

Returns the number of times deny-destroy has been requested on the element.

Definition at line 1381 of file REveElement.cxx.

◆ GetDestroyOnZeroRefCnt()

Bool_t REveElement::GetDestroyOnZeroRefCnt ( ) const
inherited

Returns state of flag determining if the element will be destroyed when reference count reaches zero.

This is true by default.

Definition at line 1362 of file REveElement.cxx.

◆ GetElementId()

ElementId_t ROOT::Experimental::REveElement::GetElementId ( ) const
inlineinherited

Definition at line 146 of file REveElement.hxx.

◆ GetExtrapolateMotion()

Bool_t ROOT::Experimental::REveViewer::GetExtrapolateMotion ( ) const
inline

Definition at line 152 of file REveViewer.hxx.

◆ GetHighlightTooltip()

◆ GetImpliedSelected()

int ROOT::Experimental::REveElement::GetImpliedSelected ( )
inlineinherited

Definition at line 352 of file REveElement.hxx.

◆ GetLightScale()

Float_t ROOT::Experimental::REveViewer::GetLightScale ( ) const
inline

Definition at line 184 of file REveViewer.hxx.

◆ GetMainColor()

virtual Color_t ROOT::Experimental::REveElement::GetMainColor ( ) const
inlinevirtualinherited

Definition at line 270 of file REveElement.hxx.

◆ GetMainColorPtr()

Color_t * ROOT::Experimental::REveElement::GetMainColorPtr ( ) const
inlineinherited

Definition at line 266 of file REveElement.hxx.

◆ GetMainTransparency()

virtual Char_t ROOT::Experimental::REveElement::GetMainTransparency ( ) const
inlinevirtualinherited

Definition at line 279 of file REveElement.hxx.

◆ GetMandatory()

bool ROOT::Experimental::REveViewer::GetMandatory ( )
inline

Definition at line 199 of file REveViewer.hxx.

◆ GetMother()

REveElement * ROOT::Experimental::REveElement::GetMother ( )
inlineinherited

Definition at line 187 of file REveElement.hxx.

◆ GetName()

const std::string & ROOT::Experimental::REveElement::GetName ( ) const
inlineinherited

Definition at line 152 of file REveElement.hxx.

◆ GetRenderData()

REveRenderData * ROOT::Experimental::REveElement::GetRenderData ( ) const
inlineinherited

Definition at line 311 of file REveElement.hxx.

◆ GetRenderMaxHz()

Float_t ROOT::Experimental::REveViewer::GetRenderMaxHz ( ) const
inline

Cap on how often the animation loop redraws this viewer, in frames per second, clamped to [0, 240].

Zero means uncapped.

Definition at line 165 of file REveViewer.hxx.

◆ GetRnrAnything()

virtual Bool_t ROOT::Experimental::REveElement::GetRnrAnything ( ) const
inlinevirtualinherited

Definition at line 255 of file REveElement.hxx.

◆ GetRnrChildren()

virtual Bool_t ROOT::Experimental::REveElement::GetRnrChildren ( ) const
inlinevirtualinherited

Definition at line 253 of file REveElement.hxx.

◆ GetRnrSelf()

virtual Bool_t ROOT::Experimental::REveElement::GetRnrSelf ( ) const
inlinevirtualinherited

Definition at line 252 of file REveElement.hxx.

◆ GetRnrState()

virtual Bool_t ROOT::Experimental::REveElement::GetRnrState ( ) const
inlinevirtualinherited

Definition at line 254 of file REveElement.hxx.

◆ GetScene()

REveScene * ROOT::Experimental::REveElement::GetScene ( )
inlineinherited

Definition at line 186 of file REveElement.hxx.

◆ GetSelectionMaster()

REveElement * REveElement::GetSelectionMaster ( )
virtualinherited

Returns the master element - that is:

  • master of projectable, if this is a projected;
  • master of compound, if fCompound is set;
  • master of mother, if kSCBTakeMotherAsMaster bit is set; If non of the above is true, this is returned.

Reimplemented in ROOT::Experimental::REveCollectionCompound.

Definition at line 1422 of file REveElement.cxx.

◆ GetSyncCamera()

bool ROOT::Experimental::REveViewer::GetSyncCamera ( ) const
inline

Definition at line 141 of file REveViewer.hxx.

◆ GetTitle()

const std::string & ROOT::Experimental::REveElement::GetTitle ( ) const
inlineinherited

Definition at line 154 of file REveElement.hxx.

◆ GetToneMapKnee()

Float_t ROOT::Experimental::REveViewer::GetToneMapKnee ( ) const
inline

Definition at line 190 of file REveViewer.hxx.

◆ GetToneMapMode()

Int_t ROOT::Experimental::REveViewer::GetToneMapMode ( ) const
inline

Definition at line 187 of file REveViewer.hxx.

◆ GetTooltipAlpha()

Float_t ROOT::Experimental::REveViewer::GetTooltipAlpha ( ) const
inline

Definition at line 181 of file REveViewer.hxx.

◆ GetTooltipFontSize()

Float_t ROOT::Experimental::REveViewer::GetTooltipFontSize ( ) const
inline

Definition at line 178 of file REveViewer.hxx.

◆ GetUserData()

void * ROOT::Experimental::REveElement::GetUserData ( ) const
inlineinherited

Definition at line 308 of file REveElement.hxx.

◆ GetVizModel()

REveElement * ROOT::Experimental::REveElement::GetVizModel ( ) const
inlineinherited

Definition at line 167 of file REveElement.hxx.

◆ GetVizTag()

const TString & ROOT::Experimental::REveElement::GetVizTag ( ) const
inlineinherited

Definition at line 164 of file REveElement.hxx.

◆ HasAunts()

Bool_t ROOT::Experimental::REveElement::HasAunts ( ) const
inlineinherited

Definition at line 198 of file REveElement.hxx.

◆ HasAxesBBox()

Bool_t ROOT::Experimental::REveViewer::HasAxesBBox ( ) const
inline

Definition at line 161 of file REveViewer.hxx.

◆ HasChild()

Bool_t REveElement::HasChild ( REveElement * el)
inherited

Check if element el is a child of this element.

Definition at line 1100 of file REveElement.cxx.

◆ HasChildren()

Bool_t ROOT::Experimental::REveElement::HasChildren ( ) const
inlineinherited

Definition at line 206 of file REveElement.hxx.

◆ HasMainColor()

virtual Bool_t ROOT::Experimental::REveElement::HasMainColor ( ) const
inlinevirtualinherited

Definition at line 269 of file REveElement.hxx.

◆ HasMainTrans()

virtual Bool_t ROOT::Experimental::REveElement::HasMainTrans ( ) const
inlinevirtualinherited

Definition at line 285 of file REveElement.hxx.

◆ HasMother()

bool ROOT::Experimental::REveElement::HasMother ( )
inlineinherited

Definition at line 184 of file REveElement.hxx.

◆ HasScene()

bool ROOT::Experimental::REveElement::HasScene ( )
inlineinherited

Definition at line 183 of file REveElement.hxx.

◆ IncDenyDestroy()

void REveElement::IncDenyDestroy ( )
inherited

Increases the deny-destroy count of the element.

Call this if you store an external pointer to the element.

Definition at line 1390 of file REveElement.cxx.

◆ IncImpliedSelected()

void ROOT::Experimental::REveElement::IncImpliedSelected ( )
inlineinherited

Definition at line 350 of file REveElement.hxx.

◆ InitMainTrans()

void REveElement::InitMainTrans ( Bool_t can_edit = kTRUE)
virtualinherited

Initialize the main transformation to identity matrix, without motion.

If can_edit is true (default), the user will be able to edit the transformation parameters via GUI.

Definition at line 844 of file REveElement.cxx.

◆ IsA()

TClass * REveElement::IsA ( ) const
inherited

Return class for this element Return REveElement class in case dicitonary is not exisiting.

Definition at line 597 of file REveElement.cxx.

◆ IsPickable()

Bool_t ROOT::Experimental::REveElement::IsPickable ( ) const
inlineinherited

Definition at line 341 of file REveElement.hxx.

◆ LastChild()

REveElement * REveElement::LastChild ( ) const
inherited

Returns the last child element or 0 if the list is empty.

Definition at line 1202 of file REveElement.cxx.

◆ NameTitleChanged()

void REveElement::NameTitleChanged ( )
virtualinherited

Virtual function called when a name or title of the element has been changed.

Stamps kCBCoreJson, which streams both to the client. If you override this, call also the version of your direct base-class.

Definition at line 297 of file REveElement.cxx.

◆ NumAunts()

Int_t ROOT::Experimental::REveElement::NumAunts ( ) const
inlineinherited

Definition at line 197 of file REveElement.hxx.

◆ NumChildren()

Int_t ROOT::Experimental::REveElement::NumChildren ( ) const
inlineinherited

Definition at line 205 of file REveElement.hxx.

◆ operator=()

REveViewer & ROOT::Experimental::REveViewer::operator= ( const REveViewer & )
privatedelete

◆ PreDeleteElement()

void REveElement::PreDeleteElement ( )
protectedvirtualinherited

Called before the element is deleted, thus offering the last chance to detach from acquired resources and from the framework itself.

Here the request is just passed to REveManager. If you override it, make sure to call base-class version.

Definition at line 215 of file REveElement.cxx.

◆ ProjectAllChildren()

void REveElement::ProjectAllChildren ( Bool_t same_depth = kTRUE)
virtualinherited

If this is a projectable, loop over all projected replicas and add the projected image of all children there.

This is supposed to be called after you destroy all children and then add new ones after this element has already been projected. You might also want to call RecheckImpliedSelections() on this element.

If 'same_depth' flag is true, the same depth as for the projected element is used in every projection. Otherwise current depth of each relevant projection-manager is used.

Definition at line 1079 of file REveElement.cxx.

◆ ProjectChild()

void REveElement::ProjectChild ( REveElement * el,
Bool_t same_depth = kTRUE )
virtualinherited

If this is a projectable, loop over all projected replicas and add the projected image of child 'el' there.

This is supposed to be called after you add a child to a projectable after it has already been projected. You might also want to call RecheckImpliedSelections() on this element or 'el'.

If 'same_depth' flag is true, the same depth as for parent object is used in every projection. Otherwise current depth of each relevant projection-manager is used.

Definition at line 1049 of file REveElement.cxx.

◆ PropagateMainColorToProjecteds()

void REveElement::PropagateMainColorToProjecteds ( Color_t color,
Color_t old_color )
virtualinherited

Propagate color to projected elements.

Definition at line 768 of file REveElement.cxx.

◆ PropagateMainTransparencyToProjecteds()

void REveElement::PropagateMainTransparencyToProjecteds ( Char_t t,
Char_t old_t )
virtualinherited

Propagate transparency to projected elements.

Definition at line 806 of file REveElement.cxx.

◆ PropagateRnrStateToProjecteds()

void REveElement::PropagateRnrStateToProjecteds ( )
virtualinherited

Propagate render state to the projected replicas of this element.

Maybe this should be optional on REX::gEve/element level.

Definition at line 704 of file REveElement.cxx.

◆ PropagateVizParamsToChildren()

void REveElement::PropagateVizParamsToChildren ( REveElement * el = nullptr)
virtualinherited

Propagate visualization parameters from element el (defaulting to this) to all children.

The primary use of this is for model-elements from visualization-parameter database.

Definition at line 390 of file REveElement.cxx.

◆ PropagateVizParamsToProjecteds()

void REveElement::PropagateVizParamsToProjecteds ( )
virtualinherited

Propagate visualization parameters to dependent elements.

MainColor is propagated independently in SetMainColor(). In this case, as fMainColor is a pointer to Color_t, it should be set in TProperClass::CopyVizParams().

Render state is not propagated. Maybe it should be, at least optionally.

Definition at line 374 of file REveElement.cxx.

◆ PtrMainTrans()

REveTrans * REveElement::PtrMainTrans ( Bool_t create = kTRUE)
virtualinherited

Return pointer to main transformation.

If 'create' flag is set (default) it is created if not yet existing.

Definition at line 819 of file REveElement.cxx.

◆ RecheckImpliedSelections()

void REveElement::RecheckImpliedSelections ( )
inherited

Call this if it is possible that implied-selection or highlight has changed for this element or for implied-selection this element is member of and you want to maintain consistent selection state.

This can happen if you add elements into compounds in response to user-interaction.

Definition at line 1467 of file REveElement.cxx.

◆ Redraw()

void REveViewer::Redraw ( Bool_t resetCameras = kFALSE)

Redraw viewer immediately.

Definition at line 52 of file REveViewer.cxx.

◆ RefAunts() [1/2]

AuntList_t & ROOT::Experimental::REveElement::RefAunts ( )
inlineinherited

Definition at line 195 of file REveElement.hxx.

◆ RefAunts() [2/2]

const AuntList_t & ROOT::Experimental::REveElement::RefAunts ( ) const
inlineinherited

Definition at line 196 of file REveElement.hxx.

◆ RefChildren() [1/2]

List_t & ROOT::Experimental::REveElement::RefChildren ( )
inlineinherited

Definition at line 203 of file REveElement.hxx.

◆ RefChildren() [2/2]

const List_t & ROOT::Experimental::REveElement::RefChildren ( ) const
inlineinherited

Definition at line 204 of file REveElement.hxx.

◆ RefMainTrans()

REveTrans & REveElement::RefMainTrans ( )
virtualinherited

Return reference to main transformation.

It is created if not yet existing.

Definition at line 831 of file REveElement.cxx.

◆ RemoveAunt()

void REveElement::RemoveAunt ( REveAunt * au)
virtualinherited

Remove el from the list of aunts.

Removing aunt is subordinate to removing a niece. This is an internal function.

Reimplemented in ROOT::Experimental::REveProjectionAxis, and ROOT::Experimental::REveText.

Definition at line 563 of file REveElement.cxx.

◆ RemoveElement()

void REveElement::RemoveElement ( REveElement * el)
virtualinherited

Remove el from the list of children.

Definition at line 956 of file REveElement.cxx.

◆ RemoveElementLocal()

void REveViewer::RemoveElementLocal ( REveElement * el)
overridevirtual

Remove element 'el' from the list of children and also remove appropriate GLScene from GLViewer's list of scenes.

Virtual from REveElement.

Reimplemented from ROOT::Experimental::REveElement.

Definition at line 83 of file REveViewer.cxx.

◆ RemoveElements()

void REveElement::RemoveElements ( )
virtualinherited

Remove all elements.

This assumes removing of all elements can be done more efficiently then looping over them and removing them one by one.

Definition at line 1020 of file REveElement.cxx.

◆ RemoveElementsInternal()

void REveElement::RemoveElementsInternal ( )
protectedvirtualinherited

Remove all elements.

This assumes removing of all elements can be done more efficiently then looping over them and removing one by one. This protected function performs the removal on the level of REveElement.

Definition at line 999 of file REveElement.cxx.

◆ RemoveElementsLocal()

void REveViewer::RemoveElementsLocal ( )
overridevirtual

Remove all children, forwarded to GLViewer.

Virtual from REveElement.

Reimplemented from ROOT::Experimental::REveElement.

Definition at line 94 of file REveViewer.cxx.

◆ RequiresExtraSelectionData()

virtual bool ROOT::Experimental::REveElement::RequiresExtraSelectionData ( ) const
inlinevirtualinherited

◆ ResetAllCSCBits()

void ROOT::Experimental::REveElement::ResetAllCSCBits ( )
inlineinherited

Definition at line 360 of file REveElement.hxx.

◆ ResetBBox()

void ROOT::Experimental::REveElement::ResetBBox ( )
inlineinherited

Definition at line 303 of file REveElement.hxx.

◆ ResetCSCBits()

void ROOT::Experimental::REveElement::ResetCSCBits ( UChar_t f)
inlineinherited

Definition at line 357 of file REveElement.hxx.

◆ SaveVizParams()

void REveElement::SaveVizParams ( std::ostream & out,
const TString & tag,
const TString & var )
inherited

Save visualization parameters for this element with given tag.

This function creates the instantiation code, calls virtual WriteVizParams() and, at the end, writes out the code for registration of the model into the VizDB.

Definition at line 438 of file REveElement.cxx.

◆ SetAxesAtten()

void REveViewer::SetAxesAtten ( Float_t a)

Distance attenuation of the 3D axis labels.

0 keeps a constant pixel size and 1 scales them like geometry. The clamp is [-4, 8] because inside [0, 1] the effect is hard to see on a scene viewed from outside. Below 0 the far labels are the larger ones.

Definition at line 189 of file REveViewer.cxx.

◆ SetAxesBBox()

void REveViewer::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 contents.

Only the axis and the clip box use it; camera framing uses the content.

Definition at line 126 of file REveViewer.cxx.

◆ SetAxesFontSize()

void REveViewer::SetAxesFontSize ( Float_t s)

Label size for the 3D axis, as a fraction of viewport height, clamped to [0.004, 0.05].

Above 0.05 the labels of a box axis start to meet.

Definition at line 199 of file REveViewer.cxx.

◆ SetAxesType()

void REveViewer::SetAxesType ( int at)

Definition at line 109 of file REveViewer.cxx.

◆ SetAxesUpAxis()

void REveViewer::SetAxesUpAxis ( int a)

Set the up axis, 0/1/2 for x/y/z; any other value means none.

Definition at line 168 of file REveViewer.cxx.

◆ SetBlackBackground()

void REveViewer::SetBlackBackground ( bool x)

Definition at line 227 of file REveViewer.cxx.

◆ SetCamera()

void REveViewer::SetCamera ( ROOT::Experimental::REveCamera * cam)

Set camera reference.

Definition at line 339 of file REveViewer.cxx.

◆ SetCameraByElementId()

void REveViewer::SetCameraByElementId ( ElementId_t cameraId)

Definition at line 540 of file REveViewer.cxx.

◆ SetCameraCenter()

void REveViewer::SetCameraCenter ( ECameraCenter c)

Set the point the camera looks at and orbits around, either the world origin or the center of the scene bounding box.

Clients reset their camera when this changes.

Definition at line 159 of file REveViewer.cxx.

◆ SetCameraType()

void REveViewer::SetCameraType ( REveCamera::ECameraType type)

Set camera by type (backward compatibility with old API)

Definition at line 554 of file REveViewer.cxx.

◆ SetChildClass()

void ROOT::Experimental::REveElement::SetChildClass ( TClass * c)
inlineinherited

Definition at line 201 of file REveElement.hxx.

◆ SetCompound()

void ROOT::Experimental::REveElement::SetCompound ( REveCompound * c)
inlineinherited

Definition at line 181 of file REveElement.hxx.

◆ SetCSCBits()

void ROOT::Experimental::REveElement::SetCSCBits ( UChar_t f)
inlineinherited

Definition at line 356 of file REveElement.hxx.

◆ SetDestroyOnZeroRefCnt()

void REveElement::SetDestroyOnZeroRefCnt ( Bool_t d)
inherited

Sets the state of flag determining if the element will be destroyed when reference count reaches zero.

This is true by default.

Definition at line 1372 of file REveElement.cxx.

◆ SetEditMainColor()

void ROOT::Experimental::REveElement::SetEditMainColor ( Bool_t x)
inlineinherited

Definition at line 265 of file REveElement.hxx.

◆ SetEditMainTransparency()

void ROOT::Experimental::REveElement::SetEditMainTransparency ( Bool_t x)
inlineinherited

Definition at line 278 of file REveElement.hxx.

◆ SetExtrapolateMotion()

void REveViewer::SetExtrapolateMotion ( bool x)

Enable or disable client-side extrapolation of streamed motion.

Definition at line 177 of file REveViewer.cxx.

◆ SetLightScale()

void REveViewer::SetLightScale ( Float_t s)

Multiplier on the client's light intensities, clamped at zero from below.

Definition at line 236 of file REveViewer.cxx.

◆ SetMainAlpha()

void REveElement::SetMainAlpha ( Float_t alpha)
inherited

Set main-transparency via float alpha variable.

Value of alpha is clamped t0 [0, 1].

Definition at line 796 of file REveElement.cxx.

◆ SetMainColor()

◆ SetMainColorPixel()

void REveElement::SetMainColorPixel ( Pixel_t pixel)
inherited

Convert pixel to Color_t and call SetMainColor().

Definition at line 744 of file REveElement.cxx.

◆ SetMainColorPtr()

void ROOT::Experimental::REveElement::SetMainColorPtr ( Color_t * colptr)
inlineinherited

Definition at line 267 of file REveElement.hxx.

◆ SetMainColorRGB() [1/2]

void REveElement::SetMainColorRGB ( Float_t r,
Float_t g,
Float_t b )
inherited

Convert RGB values to Color_t and call SetMainColor.

Definition at line 760 of file REveElement.cxx.

◆ SetMainColorRGB() [2/2]

void REveElement::SetMainColorRGB ( UChar_t r,
UChar_t g,
UChar_t b )
inherited

Convert RGB values to Color_t and call SetMainColor.

Definition at line 752 of file REveElement.cxx.

◆ SetMainTransparency()

void REveElement::SetMainTransparency ( Char_t t)
virtualinherited

Set main-transparency.

Transparency is clamped to [0, 100].

Reimplemented in ROOT::Experimental::REveCompound.

Definition at line 781 of file REveElement.cxx.

◆ SetMandatory()

void REveViewer::SetMandatory ( bool x)

Definition at line 327 of file REveViewer.cxx.

◆ SetMirContext()

void REveElement::SetMirContext ( REveElement * el)
staticprotectedinherited

Definition at line 136 of file REveElement.cxx.

◆ SetMirError()

void REveElement::SetMirError ( int error,
std::string_view err_str = "" )
staticprotectedinherited

Definition at line 140 of file REveElement.cxx.

◆ SetName()

void REveElement::SetName ( const std::string & name)
inherited

Set name of an element.

Definition at line 264 of file REveElement.cxx.

◆ SetNameTitle()

void REveElement::SetNameTitle ( const std::string & name,
const std::string & title )
inherited

Set name and title of an element.

Here we attempt to cast the assigned object into TNamed and call SetNameTitle() there. If you override this call NameTitleChanged() from there.

Definition at line 285 of file REveElement.cxx.

◆ SetPickable()

void ROOT::Experimental::REveElement::SetPickable ( Bool_t p)
inlineinherited

Definition at line 342 of file REveElement.hxx.

◆ SetPickableRecursively()

void REveElement::SetPickableRecursively ( Bool_t p)
inherited

Set pickable state on the element and all its children.

Definition at line 1408 of file REveElement.cxx.

◆ SetRenderMaxHz()

void REveViewer::SetRenderMaxHz ( Float_t hz)

Cap the redraw rate of this viewer, in frames per second; 0 is uncapped.

Definition at line 148 of file REveViewer.cxx.

◆ SetRnrChildren()

Bool_t REveElement::SetRnrChildren ( Bool_t rnr)
virtualinherited

Set render state of this element's children, i.e.

if they will be published on next scene update pass. Returns true if the state has changed.

Definition at line 644 of file REveElement.cxx.

◆ SetRnrSelf()

Bool_t REveElement::SetRnrSelf ( Bool_t rnr)
virtualinherited

Set render state of this element, i.e.

if it will be published on next scene update pass. Returns true if the state has changed.

Definition at line 621 of file REveElement.cxx.

◆ SetRnrSelfChildren()

Bool_t REveElement::SetRnrSelfChildren ( Bool_t rnr_self,
Bool_t rnr_children )
virtualinherited

Set state for rendering of this element and its children.

Returns true if the state has changed.

Definition at line 665 of file REveElement.cxx.

◆ SetRnrState()

Bool_t REveElement::SetRnrState ( Bool_t rnr)
virtualinherited

Set render state of this element and of its children to the same value.

Returns true if the state has changed.

Reimplemented in ROOT::Experimental::REveDataItemList, and ROOT::Experimental::REveDataCollection.

Definition at line 688 of file REveElement.cxx.

◆ SetSelectionMaster()

void ROOT::Experimental::REveElement::SetSelectionMaster ( REveElement * el)
inlineinherited

Definition at line 346 of file REveElement.hxx.

◆ SetTitle()

void REveElement::SetTitle ( const std::string & title)
inherited

Set title of an element.

Definition at line 273 of file REveElement.cxx.

◆ SetToneMapKnee()

void REveViewer::SetToneMapKnee ( Float_t k)

Knee position for kToneKnee: colours below this pass through exactly, so raising it buys fidelity and spends highlight gradient.

Definition at line 255 of file REveViewer.cxx.

◆ SetToneMapMode()

void REveViewer::SetToneMapMode ( Int_t m)

Tone curve, as EToneMapMode.

Definition at line 245 of file REveViewer.cxx.

◆ SetTooltipAlpha()

void REveViewer::SetTooltipAlpha ( Float_t a)

Opacity of the plate behind the tooltip and kept annotations.

0 leaves the text floating on the scene, 1 hides whatever is behind it.

Definition at line 219 of file REveViewer.cxx.

◆ SetTooltipFontSize()

void REveViewer::SetTooltipFontSize ( Float_t s)

Label size for the hover tooltip, as a fraction of viewport height.

Same range as the axis labels; see SetAxesFontSize.

Definition at line 209 of file REveViewer.cxx.

◆ SetTransMatrix() [1/2]

void REveElement::SetTransMatrix ( const TGeoMatrix & mat)
virtualinherited

Set transformation matrix from TGeo's matrix.

Definition at line 880 of file REveElement.cxx.

◆ SetTransMatrix() [2/2]

void REveElement::SetTransMatrix ( Double_t * carr)
virtualinherited

Set transformation matrix from column-major array.

Definition at line 871 of file REveElement.cxx.

◆ SetupDefaultColorAndTransparency()

void REveElement::SetupDefaultColorAndTransparency ( Color_t col,
Bool_t can_edit_color,
Bool_t can_edit_transparency )
inherited

Set up element to use built-in main color and set flags allowing editing of main color and transparency.

Definition at line 717 of file REveElement.cxx.

◆ SetUserData()

void ROOT::Experimental::REveElement::SetUserData ( void * ud)
inlineinherited

Definition at line 309 of file REveElement.hxx.

◆ SetVizModel()

void REveElement::SetVizModel ( REveElement * model)
inherited

Set visualization-parameter model element.

Calling of this function from outside of EVE should in principle be avoided as it can lead to dis-synchronization of viz-tag and viz-model.

Definition at line 308 of file REveElement.cxx.

◆ SetVizModelByTag()

Bool_t REveElement::SetVizModelByTag ( )
inherited

Find model element in VizDB that corresponds to previously assigned fVizTag and set fVizModel accordingly.

If the tag is not found in VizDB, the old model-element is kept and false is returned.

Definition at line 319 of file REveElement.cxx.

◆ SetVizTag()

void ROOT::Experimental::REveElement::SetVizTag ( const TString & tag)
inlineinherited

Definition at line 165 of file REveElement.hxx.

◆ SingleRnrState()

virtual Bool_t ROOT::Experimental::REveElement::SingleRnrState ( ) const
inlinevirtualinherited

◆ Stamp()

void ROOT::Experimental::REveElement::Stamp ( )
inlineinherited

Definition at line 418 of file REveElement.hxx.

◆ StampCoreJson()

void ROOT::Experimental::REveElement::StampCoreJson ( )
inlineinherited

Definition at line 404 of file REveElement.hxx.

◆ StampElementAdded()

void ROOT::Experimental::REveElement::StampElementAdded ( )
inlineinherited

Definition at line 413 of file REveElement.hxx.

◆ StampObjProps()

void ROOT::Experimental::REveElement::StampObjProps ( )
inlineinherited

Definition at line 406 of file REveElement.hxx.

◆ StampTrans()

void ROOT::Experimental::REveElement::StampTrans ( )
inlineinherited

Definition at line 405 of file REveElement.hxx.

◆ StampVisibility()

void ROOT::Experimental::REveElement::StampVisibility ( )
inlineinherited

Definition at line 412 of file REveElement.hxx.

◆ SyncCamera()

void ROOT::Experimental::REveViewer::SyncCamera ( bool s)
inline

Definition at line 140 of file REveViewer.hxx.

◆ TestCSCBits()

Bool_t ROOT::Experimental::REveElement::TestCSCBits ( UChar_t f) const
inlineinherited

Definition at line 358 of file REveElement.hxx.

◆ ToString()

const std::string & REveElement::ToString ( Bool_t b)
staticprotectedinherited

Convert Bool_t to string - kTRUE or kFALSE.

Needed in WriteVizParams().

Definition at line 1639 of file REveElement.cxx.

◆ VizDB_Apply()

void REveElement::VizDB_Apply ( const std::string & tag)
inherited

Set visual parameters for this object for given tag.

Definition at line 479 of file REveElement.cxx.

◆ VizDB_Insert()

void REveElement::VizDB_Insert ( const std::string & tag,
Bool_t replace = kTRUE,
Bool_t update = kTRUE )
inherited

Create a replica of element and insert it into VizDB with given tag.

If replace is true an existing element with the same tag will be replaced. If update is true, existing client of tag will be updated.

Definition at line 531 of file REveElement.cxx.

◆ VizDB_Reapply()

void REveElement::VizDB_Reapply ( )
inherited

Reset visual parameters for this object from VizDB.

The model object must be already set.

Definition at line 491 of file REveElement.cxx.

◆ VizDB_UpdateModel()

void REveElement::VizDB_UpdateModel ( Bool_t update = kTRUE)
inherited

Copy visual parameters from this element to viz-db model.

If update is set, all clients of the model will be updated to the new value. A warning is printed if the model-element fVizModel is not set.

Definition at line 506 of file REveElement.cxx.

◆ WriteCoreJson()

int REveViewer::WriteCoreJson ( nlohmann::json & j,
Int_t rnr_offset )
overridevirtual

Stream Camera Info.

Virtual from REveElement.

Reimplemented from ROOT::Experimental::REveElement.

Definition at line 275 of file REveViewer.cxx.

◆ WriteTransJson()

void REveElement::WriteTransJson ( nlohmann::json & cj)
virtualinherited

Write the main transformation and its motion for a kCBTrans update.

No render data is written; the client applies it to the object it already has. It goes out as JSON, so no offset is reserved in the binary blob for a message that carries no geometry.

Definition at line 1621 of file REveElement.cxx.

◆ WriteVizParams()

void REveElement::WriteVizParams ( std::ostream & out,
const TString & var )
virtualinherited

Write-out visual parameters for this object.

This is a virtual function and all sub-classes are required to first call the base-element version. The name of the element pointer is 'x%03d', due to historical CINT limitations. Three spaces should be used for indentation, same as in SavePrimitive() methods.

Reimplemented in ROOT::Experimental::REveLine, ROOT::Experimental::REvePointSet, ROOT::Experimental::REveShape, ROOT::Experimental::REveStraightLineSet, ROOT::Experimental::REveTrack, and ROOT::Experimental::REveTrackList.

Definition at line 465 of file REveElement.cxx.

Member Data Documentation

◆ fAunts

AuntList_t ROOT::Experimental::REveElement::fAunts
protectedinherited

Definition at line 77 of file REveElement.hxx.

◆ fAutoTuneSerial

Int_t ROOT::Experimental::REveViewer::fAutoTuneSerial {0}
private

Bumped by AutoTuneLights(); the client re-measures when it changes.

Definition at line 113 of file REveViewer.hxx.

◆ fAxesAtten

Float_t ROOT::Experimental::REveViewer::fAxesAtten {1.f}
private

Distance attenuation of the 3D axis labels; see SetAxesAtten().

Definition at line 95 of file REveViewer.hxx.

◆ fAxesBBox

Float_t ROOT::Experimental::REveViewer::fAxesBBox[6] {}
private

xmin, ymin, zmin, xmax, ymax, zmax

Definition at line 89 of file REveViewer.hxx.

◆ fAxesFontSize

Float_t ROOT::Experimental::REveViewer::fAxesFontSize {0.015f}
private

3D axis label size, as a fraction of viewport height.

Baked into the glyph geometry, so a change costs a rebuild on the client.

Definition at line 99 of file REveViewer.hxx.

◆ fAxesType

EAxesType ROOT::Experimental::REveViewer::fAxesType {kAxesNone}
private

Definition at line 75 of file REveViewer.hxx.

◆ fAxesUpAxis

Int_t ROOT::Experimental::REveViewer::fAxesUpAxis {-1}
private

Which axis points up: 0/1/2 for x/y/z, -1 (default) for none.

When set, the box axis draws the floor panel along it instead of the far face.

Definition at line 85 of file REveViewer.hxx.

◆ fBBoxMax

REveVector ROOT::Experimental::REveElement::fBBoxMax
protectedinherited

!

Definition at line 113 of file REveElement.hxx.

◆ fBBoxMin

REveVector ROOT::Experimental::REveElement::fBBoxMin
protectedinherited

! Bounding box in the element's own frame.

Definition at line 112 of file REveElement.hxx.

◆ fBBoxState

EBBoxState ROOT::Experimental::REveElement::fBBoxState {kBBoxInvalid}
protectedinherited

!

Definition at line 114 of file REveElement.hxx.

◆ fBlackBackground

bool ROOT::Experimental::REveViewer::fBlackBackground {false}
private

Definition at line 92 of file REveViewer.hxx.

◆ fCamera

REveCamera* ROOT::Experimental::REveViewer::fCamera {0}
private

Definition at line 73 of file REveViewer.hxx.

◆ fCameraCenter

ECameraCenter ROOT::Experimental::REveViewer::fCameraCenter {kCameraCenterOrigin}
private

Definition at line 77 of file REveViewer.hxx.

◆ fCameraList

std::vector<REveCamera*> ROOT::Experimental::REveViewer::fCameraList
private

Definition at line 119 of file REveViewer.hxx.

◆ fCanEditMainColor

Bool_t ROOT::Experimental::REveElement::fCanEditMainColor {kFALSE}
protectedinherited

Definition at line 89 of file REveElement.hxx.

◆ fCanEditMainTrans

Bool_t ROOT::Experimental::REveElement::fCanEditMainTrans {kFALSE}
protectedinherited

Definition at line 91 of file REveElement.hxx.

◆ fCanEditMainTransparency

Bool_t ROOT::Experimental::REveElement::fCanEditMainTransparency {kFALSE}
protectedinherited

Definition at line 90 of file REveElement.hxx.

◆ fChangeBits

UChar_t ROOT::Experimental::REveElement::fChangeBits {0}
protectedinherited

!

Definition at line 392 of file REveElement.hxx.

◆ fChildClass

TClass* ROOT::Experimental::REveElement::fChildClass {nullptr}
protectedinherited

Definition at line 79 of file REveElement.hxx.

◆ fChildren

List_t ROOT::Experimental::REveElement::fChildren
protectedinherited

Definition at line 78 of file REveElement.hxx.

◆ fCompound

REveCompound* ROOT::Experimental::REveElement::fCompound {nullptr}
protectedinherited

Definition at line 80 of file REveElement.hxx.

◆ fCSCBits

UChar_t ROOT::Experimental::REveElement::fCSCBits {0}
protectedinherited

Definition at line 338 of file REveElement.hxx.

◆ fDefaultColor

Color_t ROOT::Experimental::REveElement::fDefaultColor {kPink}
protectedinherited

Definition at line 94 of file REveElement.hxx.

◆ fDenyDestroy

Int_t ROOT::Experimental::REveElement::fDenyDestroy {0}
protectedinherited

! Deny-destroy count.

Definition at line 84 of file REveElement.hxx.

◆ fDestroyOnZeroRefCnt

Bool_t ROOT::Experimental::REveElement::fDestroyOnZeroRefCnt {kTRUE}
protectedinherited

Definition at line 85 of file REveElement.hxx.

◆ fDestructing

Char_t ROOT::Experimental::REveElement::fDestructing {kNone}
protectedinherited

!

Definition at line 393 of file REveElement.hxx.

◆ fElementId

ElementId_t ROOT::Experimental::REveElement::fElementId {0}
privateinherited

Definition at line 61 of file REveElement.hxx.

◆ fExtrapolateMotion

Bool_t ROOT::Experimental::REveViewer::fExtrapolateMotion {kTRUE}
private

Let the client extrapolate streamed motion between updates.

Off holds each object where the last update put it, which shows the raw update rate.

Definition at line 81 of file REveViewer.hxx.

◆ fHasAxesBBox

Bool_t ROOT::Experimental::REveViewer::fHasAxesBBox {kFALSE}
private

see SetAxesBBox()

Definition at line 88 of file REveViewer.hxx.

◆ fImpliedSelected

Short_t ROOT::Experimental::REveElement::fImpliedSelected {0}
protectedinherited

Definition at line 336 of file REveElement.hxx.

◆ fLightScale

Float_t ROOT::Experimental::REveViewer::fLightScale {0.85}
private

Multiplier on the client's light intensities; see SetLightScale().

Definition at line 109 of file REveViewer.hxx.

◆ fMainColorPtr

Color_t* ROOT::Experimental::REveElement::fMainColorPtr {nullptr}
protectedinherited

Definition at line 95 of file REveElement.hxx.

◆ fMainTrans

std::unique_ptr<REveTrans> ROOT::Experimental::REveElement::fMainTrans
protectedinherited

Definition at line 97 of file REveElement.hxx.

◆ fMainTransparency

Char_t ROOT::Experimental::REveElement::fMainTransparency {0}
protectedinherited

Definition at line 93 of file REveElement.hxx.

◆ fMandatory

bool ROOT::Experimental::REveViewer::fMandatory {true}
private

Definition at line 116 of file REveViewer.hxx.

◆ fMother

REveElement* ROOT::Experimental::REveElement::fMother {nullptr}
protectedinherited

Definition at line 64 of file REveElement.hxx.

◆ fName

std::string ROOT::Experimental::REveElement::fName
protectedinherited

Definition at line 75 of file REveElement.hxx.

◆ fPickable

Bool_t ROOT::Experimental::REveElement::fPickable {false}
protectedinherited

Definition at line 337 of file REveElement.hxx.

◆ fPostStreamFlag

std::string ROOT::Experimental::REveViewer::fPostStreamFlag
private

Definition at line 117 of file REveViewer.hxx.

◆ fRenderData

std::unique_ptr<REveRenderData> ROOT::Experimental::REveElement::fRenderData
protectedinherited

! Vertex / normal / triangle index information for rendering.

Definition at line 101 of file REveElement.hxx.

◆ fRenderMaxHz

Float_t ROOT::Experimental::REveViewer::fRenderMaxHz {0.f}
private

see SetRenderMaxHz(); 0 is uncapped

Definition at line 91 of file REveViewer.hxx.

◆ fRnrChildren

Bool_t ROOT::Experimental::REveElement::fRnrChildren {kTRUE}
protectedinherited

Definition at line 88 of file REveElement.hxx.

◆ fRnrSelf

Bool_t ROOT::Experimental::REveElement::fRnrSelf {kTRUE}
protectedinherited

Definition at line 87 of file REveElement.hxx.

◆ fScene

REveScene* ROOT::Experimental::REveElement::fScene {nullptr}
protectedinherited

Definition at line 65 of file REveElement.hxx.

◆ fSelectionMaster

REveElement* ROOT::Experimental::REveElement::fSelectionMaster {nullptr}
protectedinherited

Definition at line 66 of file REveElement.hxx.

◆ fSyncCamera

bool ROOT::Experimental::REveViewer::fSyncCamera {true}
private

Definition at line 123 of file REveViewer.hxx.

◆ fTitle

std::string ROOT::Experimental::REveElement::fTitle
protectedinherited

Definition at line 76 of file REveElement.hxx.

◆ fToneMapKnee

Float_t ROOT::Experimental::REveViewer::fToneMapKnee {0.95}
private

Definition at line 111 of file REveViewer.hxx.

◆ fToneMapMode

Int_t ROOT::Experimental::REveViewer::fToneMapMode {kToneKnee}
private

Definition at line 110 of file REveViewer.hxx.

◆ fTooltipAlpha

Float_t ROOT::Experimental::REveViewer::fTooltipAlpha {0.85f}
private

Opacity of the plate behind the tooltip and kept annotations, in [0, 1].

Unlike the font size this does reach annotations already placed.

Definition at line 106 of file REveViewer.hxx.

◆ fTooltipFontSize

Float_t ROOT::Experimental::REveViewer::fTooltipFontSize {0.012f}
private

Tooltip text size, same units as fAxesFontSize.

Definition at line 102 of file REveViewer.hxx.

◆ fUserData

void* ROOT::Experimental::REveElement::fUserData {nullptr}
protectedinherited

! Externally assigned and controlled user data.

Definition at line 99 of file REveElement.hxx.

◆ fVizModel

REveElement* ROOT::Experimental::REveElement::fVizModel {nullptr}
protectedinherited

! Element used as model from VizDB.

Definition at line 81 of file REveElement.hxx.

◆ fVizTag

TString ROOT::Experimental::REveElement::fVizTag
protectedinherited

Definition at line 82 of file REveElement.hxx.

◆ kCameraOrthoXnOY

constexpr ECameraType ROOT::Experimental::REveViewer::kCameraOrthoXnOY = REveCamera::kCameraOrthoXnOY
staticconstexpr

Definition at line 42 of file REveViewer.hxx.

◆ kCameraOrthoXnOZ

constexpr ECameraType ROOT::Experimental::REveViewer::kCameraOrthoXnOZ = REveCamera::kCameraOrthoXnOZ
staticconstexpr

Definition at line 43 of file REveViewer.hxx.

◆ kCameraOrthoXOY

constexpr ECameraType ROOT::Experimental::REveViewer::kCameraOrthoXOY = REveCamera::kCameraOrthoXOY
staticconstexpr

Definition at line 38 of file REveViewer.hxx.

◆ kCameraOrthoXOZ

constexpr ECameraType ROOT::Experimental::REveViewer::kCameraOrthoXOZ = REveCamera::kCameraOrthoXOZ
staticconstexpr

Definition at line 39 of file REveViewer.hxx.

◆ kCameraOrthoZnOX

constexpr ECameraType ROOT::Experimental::REveViewer::kCameraOrthoZnOX = REveCamera::kCameraOrthoZnOX
staticconstexpr

Definition at line 45 of file REveViewer.hxx.

◆ kCameraOrthoZnOY

constexpr ECameraType ROOT::Experimental::REveViewer::kCameraOrthoZnOY = REveCamera::kCameraOrthoZnOY
staticconstexpr

Definition at line 44 of file REveViewer.hxx.

◆ kCameraOrthoZOX

constexpr ECameraType ROOT::Experimental::REveViewer::kCameraOrthoZOX = REveCamera::kCameraOrthoZOX
staticconstexpr

Definition at line 41 of file REveViewer.hxx.

◆ kCameraOrthoZOY

constexpr ECameraType ROOT::Experimental::REveViewer::kCameraOrthoZOY = REveCamera::kCameraOrthoZOY
staticconstexpr

Definition at line 40 of file REveViewer.hxx.

◆ kCameraPerspXOY

constexpr ECameraType ROOT::Experimental::REveViewer::kCameraPerspXOY = REveCamera::kCameraPerspXOY
staticconstexpr

Definition at line 37 of file REveViewer.hxx.

◆ kCameraPerspXOZ

constexpr ECameraType ROOT::Experimental::REveViewer::kCameraPerspXOZ = REveCamera::kCameraPerspXOZ
staticconstexpr

Definition at line 35 of file REveViewer.hxx.

◆ kCameraPerspYOZ

constexpr ECameraType ROOT::Experimental::REveViewer::kCameraPerspYOZ = REveCamera::kCameraPerspYOZ
staticconstexpr

Definition at line 36 of file REveViewer.hxx.

◆ stlMirAlpha

thread_local REveElement * REveElement::stlMirAlpha = nullptr
staticprotectedinherited

Definition at line 395 of file REveElement.hxx.

◆ stlMirError

thread_local int REveElement::stlMirError = 0
staticprotectedinherited

Definition at line 396 of file REveElement.hxx.

◆ stlMirErrorString

thread_local std::string REveElement::stlMirErrorString
staticprotectedinherited

Definition at line 397 of file REveElement.hxx.

Libraries for ROOT::Experimental::REveViewer:

The documentation for this class was generated from the following files: