Definition at line 122 of file REveElement.hxx.
Public Types | |
typedef std::list< REveAunt * > | AuntList_t |
enum | EChangeBits { kCBColorSelection = BIT(0) , kCBTransBBox = BIT(1) , kCBObjProps = BIT(2) , kCBVisibility = BIT(3) , kCBElementAdded = BIT(4) } |
typedef std::list< REveElement * > | List_t |
typedef std::set< REveElement * > | Set_t |
Public Member Functions | |
REveElement (const REveElement &e) | |
Copy constructor. More... | |
REveElement (const std::string &name="", const std::string &title="") | |
Default constructor. More... | |
virtual | ~REveElement () |
Destructor. More... | |
virtual Bool_t | AcceptElement (REveElement *el) |
Check if el can be added to this element. More... | |
virtual void | AddAunt (REveAunt *au) |
Add el into the list aunts. More... | |
virtual void | AddElement (REveElement *el) |
Add el to the list of children. More... | |
virtual void | AddStamp (UChar_t bits) |
Add (bitwise or) given stamps to fChangeBits. More... | |
virtual void | Annihilate () |
Optimized destruction without check of reference-count. More... | |
virtual void | AnnihilateElements () |
Annihilate elements. More... | |
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. More... | |
virtual void | BuildRenderData () |
Write transformation Matrix to render data. More... | |
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. More... | |
virtual void | ClearStamps () |
virtual void | CloneChildrenRecurse (REveElement *dest, Int_t level=0) const |
Clone children and attach them to the dest element. More... | |
virtual REveElement * | CloneElement () const |
Clone the element via copy constructor. More... | |
virtual REveElement * | CloneElementRecurse (Int_t level=0) const |
Clone elements and recurse 'level' deep over children. More... | |
virtual void | CopyVizParams (const REveElement *el) |
Copy visualization parameters from element el. More... | |
virtual void | CopyVizParamsFromDB () |
Copy visualization parameters from the model-element fVizModel. More... | |
void | CSCApplyMainColorToAllChildren () |
void | CSCApplyMainColorToMatchingChildren () |
void | CSCApplyMainTransparencyToAllChildren () |
void | CSCApplyMainTransparencyToMatchingChildren () |
void | CSCImplySelectAllChildren () |
void | CSCTakeMotherAsMaster () |
void | DecDenyDestroy () |
Decreases the deny-destroy count of the element. More... | |
void | DecImpliedSelected () |
virtual void | Destroy () |
Destroy this element. More... | |
virtual void | DestroyElements () |
Destroy all children of this element. More... | |
virtual void | DestroyMainTrans () |
Destroy the main transformation matrix, it will always be taken as identity. More... | |
virtual void | DestroyOrWarn () |
Destroy this element. Prints a warning if deny-destroy is in force. More... | |
void | DisableListElements (Bool_t rnr_self=kFALSE, Bool_t rnr_children=kFALSE) |
Disable rendering of children and their list contents. More... | |
void | EnableListElements (Bool_t rnr_self=kTRUE, Bool_t rnr_children=kTRUE) |
Enable rendering of children and their list contents. More... | |
virtual void | ExportToCINT (const char *var_name) |
Export render-element to CINT with variable name var_name. More... | |
virtual void | FillImpliedSelectedSet (Set_t &impSelSet) |
Populate set impSelSet with derived / dependant elements. More... | |
REveElement * | FindChild (const TString &name, const TClass *cls=nullptr) |
Find the first child with given name. More... | |
REveElement * | FindChild (TPRegexp ®exp, const TClass *cls=nullptr) |
Find the first child whose name matches regexp. More... | |
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. More... | |
Int_t | FindChildren (List_t &matches, TPRegexp ®exp, const TClass *cls=nullptr) |
Find all children whose name matches regexp and append them to matches list. More... | |
REveElement * | FirstChild () const |
Returns the first child element or 0 if the list is empty. More... | |
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. More... | |
Bool_t | GetDestroyOnZeroRefCnt () const |
Returns state of flag determining if the element will be destroyed when reference count reaches zero. More... | |
ElementId_t | GetElementId () const |
virtual std::string | GetHighlightTooltip () const |
int | GetImpliedSelected () |
virtual Color_t | GetMainColor () const |
Color_t * | GetMainColorPtr () const |
virtual Char_t | GetMainTransparency () const |
REveElement * | GetMother () |
const std::string & | GetName () const |
REveRenderData * | GetRenderData () const |
virtual Bool_t | GetRnrAnything () const |
virtual Bool_t | GetRnrChildren () const |
virtual Bool_t | GetRnrSelf () const |
virtual Bool_t | GetRnrState () const |
REveScene * | GetScene () |
REveElement * | GetSelectionMaster () |
Returns the master element - that is: More... | |
const std::string & | GetTitle () const |
void * | GetUserData () const |
REveElement * | GetVizModel () const |
const TString & | GetVizTag () const |
Bool_t | HasAunts () const |
Bool_t | HasChild (REveElement *el) |
Check if element el is a child of this element. More... | |
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. More... | |
void | IncImpliedSelected () |
virtual void | InitMainTrans (Bool_t can_edit=kTRUE) |
Initialize the main transformation to identity matrix. More... | |
TClass * | IsA () const |
Return class for this element. More... | |
Bool_t | IsPickable () const |
REveElement * | LastChild () const |
Returns the last child element or 0 if the list is empty. More... | |
virtual void | NameTitleChanged () |
Virtual function called when a name or title of the element has been changed. More... | |
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. More... | |
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. More... | |
virtual void | PropagateMainColorToProjecteds (Color_t color, Color_t old_color) |
Propagate color to projected elements. More... | |
virtual void | PropagateMainTransparencyToProjecteds (Char_t t, Char_t old_t) |
Propagate transparency to projected elements. More... | |
virtual void | PropagateRnrStateToProjecteds () |
Propagate render state to the projected replicas of this element. More... | |
virtual void | PropagateVizParamsToChildren (REveElement *el=nullptr) |
Propagate visualization parameters from element el (defaulting to this) to all children. More... | |
virtual void | PropagateVizParamsToProjecteds () |
Propagate visualization parameters to dependent elements. More... | |
virtual REveTrans * | PtrMainTrans (Bool_t create=kTRUE) |
Return pointer to main transformation. More... | |
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. More... | |
AuntList_t & | RefAunts () |
const AuntList_t & | RefAunts () const |
List_t & | RefChildren () |
const List_t & | RefChildren () const |
virtual REveTrans & | RefMainTrans () |
Return reference to main transformation. More... | |
virtual void | RemoveAunt (REveAunt *au) |
Remove el from the list of aunts. More... | |
virtual void | RemoveElement (REveElement *el) |
Remove el from the list of children. More... | |
virtual void | RemoveElementLocal (REveElement *el) |
Perform additional local removal of el. More... | |
virtual void | RemoveElements () |
Remove all elements. More... | |
virtual void | RemoveElementsLocal () |
Perform additional local removal of all elements. More... | |
void | ResetAllCSCBits () |
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. More... | |
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. More... | |
void | SetEditMainColor (Bool_t x) |
void | SetEditMainTransparency (Bool_t x) |
void | SetMainAlpha (Float_t alpha) |
Set main-transparency via float alpha variable. More... | |
virtual void | SetMainColor (Color_t color) |
Set main color of the element. More... | |
void | SetMainColorPixel (Pixel_t pixel) |
Convert pixel to Color_t and call SetMainColor(). More... | |
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. More... | |
void | SetMainColorRGB (UChar_t r, UChar_t g, UChar_t b) |
Convert RGB values to Color_t and call SetMainColor. More... | |
virtual void | SetMainTransparency (Char_t t) |
Set main-transparency. More... | |
void | SetName (const std::string &name) |
Set name of an element. More... | |
void | SetNameTitle (const std::string &name, const std::string &title) |
Set name and title of an element. More... | |
void | SetPickable (Bool_t p) |
void | SetPickableRecursively (Bool_t p) |
Set pickable state on the element and all its children. More... | |
virtual Bool_t | SetRnrChildren (Bool_t rnr) |
Set render state of this element's children, i.e. More... | |
virtual Bool_t | SetRnrSelf (Bool_t rnr) |
Set render state of this element, i.e. More... | |
virtual Bool_t | SetRnrSelfChildren (Bool_t rnr_self, Bool_t rnr_children) |
Set state for rendering of this element and its children. More... | |
virtual Bool_t | SetRnrState (Bool_t rnr) |
Set render state of this element and of its children to the same value. More... | |
void | SetSelectionMaster (REveElement *el) |
void | SetTitle (const std::string &title) |
Set title of an element. More... | |
virtual void | SetTransMatrix (const TGeoMatrix &mat) |
Set transformation matrix from TGeo's matrix. More... | |
virtual void | SetTransMatrix (Double_t *carr) |
Set transformation matrix from column-major array. More... | |
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. More... | |
void | SetUserData (void *ud) |
void | SetVizModel (REveElement *model) |
Set visualization-parameter model element. More... | |
Bool_t | SetVizModelByTag () |
Find model element in VizDB that corresponds to previously assigned fVizTag and set fVizModel accordingly. More... | |
void | SetVizTag (const TString &tag) |
virtual Bool_t | SingleRnrState () const |
void | StampColorSelection () |
void | StampElementAdded () |
void | StampObjProps () |
void | StampObjPropsPreChk () |
void | StampTransBBox () |
void | StampVisibility () |
Bool_t | TestCSCBits (UChar_t f) const |
void | VizDB_Apply (const std::string &tag) |
Set visual parameters for this object for given tag. More... | |
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. More... | |
void | VizDB_Reapply () |
Reset visual parameters for this object from VizDB. More... | |
void | VizDB_UpdateModel (Bool_t update=kTRUE) |
Copy visual parameters from this element to viz-db model. More... | |
virtual Int_t | WriteCoreJson (nlohmann::json &cj, Int_t rnr_offset) |
Write core json. More... | |
virtual void | WriteVizParams (std::ostream &out, const TString &var) |
Write-out visual parameters for this object. More... | |
Protected Types | |
enum | ECompoundSelectionColorBits { kCSCBImplySelectAllChildren = BIT(0) , kCSCBTakeMotherAsMaster = BIT(1) , kCSCBApplyMainColorToAllChildren = BIT(2) , kCSCBApplyMainColorToMatchingChildren = BIT(3) , kCSCBApplyMainTransparencyToAllChildren = BIT(4) , kCSCBApplyMainTransparencyToMatchingChildren = BIT(5) } |
enum | EDestruct { kNone , kStandard , kAnnihilate } |
Protected Member Functions | |
virtual void | AnnihilateRecursively () |
Protected member function called from REveElement::Annihilate(). More... | |
void | assign_element_id_recurisvely () |
void | assign_scene_recursively (REveScene *s) |
ElementId_t | get_mother_id () const |
ElementId_t | get_scene_id () const |
virtual void | PreDeleteElement () |
Vertex / normal / triangle index information for rendering. More... | |
virtual void | RemoveElementsInternal () |
Remove all elements. More... | |
Static Protected Member Functions | |
static const std::string & | ToString (Bool_t b) |
Convert Bool_t to string - kTRUE or kFALSE. More... | |
Protected Attributes | |
AuntList_t | fAunts |
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} |
Bool_t | fDestroyOnZeroRefCnt {kTRUE} |
Deny-destroy count. More... | |
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 {0} |
std::unique_ptr< REveRenderData > | fRenderData |
Externally assigned and controlled user data. More... | |
Bool_t | fRnrChildren {kTRUE} |
Bool_t | fRnrSelf {kTRUE} |
REveScene * | fScene {nullptr} |
REveElement * | fSelectionMaster {nullptr} |
std::string | fTitle |
void * | fUserData {nullptr} |
REveElement * | fVizModel {nullptr} |
TString | fVizTag |
Element used as model from VizDB. More... | |
Private Member Functions | |
REveElement & | operator= (const REveElement &)=delete |
Private Attributes | |
ElementId_t | fElementId {0} |
Friends | |
class | REveManager |
class | REveScene |
#include <ROOT/REveElement.hxx>
typedef std::list<REveAunt*> ROOT::Experimental::REveElement::AuntList_t |
Definition at line 134 of file REveElement.hxx.
typedef std::list<REveElement*> ROOT::Experimental::REveElement::List_t |
Definition at line 130 of file REveElement.hxx.
typedef std::set<REveElement*> ROOT::Experimental::REveElement::Set_t |
Definition at line 132 of file REveElement.hxx.
Enumerator | |
---|---|
kCBColorSelection | |
kCBTransBBox | |
kCBObjProps | |
kCBVisibility | |
kCBElementAdded |
Definition at line 402 of file REveElement.hxx.
|
protected |
Definition at line 349 of file REveElement.hxx.
|
protected |
Enumerator | |
---|---|
kNone | |
kStandard | |
kAnnihilate |
Definition at line 359 of file REveElement.hxx.
REveElement::REveElement | ( | const std::string & | name = "" , |
const std::string & | title = "" |
||
) |
Default constructor.
Definition at line 51 of file REveElement.cxx.
REveElement::REveElement | ( | const REveElement & | e | ) |
Copy constructor.
Does shallow copy. For deep-cloning and children-cloning, see:
'void* UserData' is NOT copied. If the element is projectable, its projections are NOT copied.
Not implemented for most sub-classes, let us know. Note that sub-classes of REveProjected are NOT and will NOT be copyable.
Definition at line 70 of file REveElement.cxx.
|
virtual |
Destructor.
Do not call this method directly, either call Destroy() or Annihilate(). See also DestroyElements() and AnnihilateElements() if you need to delete all children of an element.
Definition at line 98 of file REveElement.cxx.
|
virtual |
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 830 of file REveElement.cxx.
Add el into the list aunts.
Adding aunt is subordinate to adding a niece. This is an internal function.
Definition at line 503 of file REveElement.cxx.
|
virtual |
Add el to the list of children.
Reimplemented in ROOT::Experimental::REveCompound, and ROOT::Experimental::REveViewerList.
Definition at line 842 of file REveElement.cxx.
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 1415 of file REveElement.cxx.
|
virtual |
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 1178 of file REveElement.cxx.
|
virtual |
Annihilate elements.
Definition at line 1208 of file REveElement.cxx.
|
protectedvirtual |
Protected member function called from REveElement::Annihilate().
Definition at line 1152 of file REveElement.cxx.
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 289 of file REveElement.cxx.
|
protected |
Definition at line 131 of file REveElement.cxx.
Definition at line 140 of file REveElement.cxx.
|
virtual |
Write transformation Matrix to render data.
Reimplemented in ROOT::Experimental::REveBox, ROOT::Experimental::REveBoxProjected, ROOT::Experimental::REveBoxSet, ROOT::Experimental::REveEllipsoidProjected, ROOT::Experimental::REveGeoShape, ROOT::Experimental::REveJetCone, ROOT::Experimental::REveJetConeProjected, ROOT::Experimental::REveLine, ROOT::Experimental::REvePointSet, ROOT::Experimental::REvePolygonSetProjected, ROOT::Experimental::REveStraightLineSet, ROOT::Experimental::REveTrack, and ROOT::Experimental::REveTrackProjected.
Definition at line 1435 of file REveElement.cxx.
|
inlinevirtual |
Definition at line 291 of file REveElement.hxx.
|
inlinevirtual |
Definition at line 305 of file REveElement.hxx.
|
inlinevirtual |
Definition at line 325 of file REveElement.hxx.
|
inlinevirtual |
Definition at line 318 of file REveElement.hxx.
|
virtual |
Check external references to this and eventually auto-destruct the render-element.
Reimplemented in ROOT::Experimental::REveTrackPropagator.
Definition at line 528 of file REveElement.cxx.
|
inlinevirtual |
Definition at line 427 of file REveElement.hxx.
|
virtual |
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 199 of file REveElement.cxx.
|
virtual |
Clone the element via copy constructor.
Should be implemented for all classes that require cloning support.
Reimplemented in ROOT::Experimental::REvePointSet.
Definition at line 174 of file REveElement.cxx.
|
virtual |
Clone elements and recurse 'level' deep over children.
Definition at line 184 of file REveElement.cxx.
|
virtual |
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 352 of file REveElement.cxx.
|
virtual |
Copy visualization parameters from the model-element fVizModel.
A warning is printed if the model-element fVizModel is not set.
Definition at line 366 of file REveElement.cxx.
|
inline |
Definition at line 393 of file REveElement.hxx.
|
inline |
Definition at line 394 of file REveElement.hxx.
|
inline |
Definition at line 395 of file REveElement.hxx.
|
inline |
Definition at line 396 of file REveElement.hxx.
|
inline |
Definition at line 391 of file REveElement.hxx.
|
inline |
Definition at line 392 of file REveElement.hxx.
void REveElement::DecDenyDestroy | ( | ) |
Decreases the deny-destroy count of the element.
Call this after releasing an external pointer to the element.
Definition at line 1322 of file REveElement.cxx.
|
inline |
Definition at line 381 of file REveElement.hxx.
|
virtual |
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 1223 of file REveElement.cxx.
|
virtual |
Destroy all children of this element.
Definition at line 1254 of file REveElement.cxx.
|
virtual |
Destroy the main transformation matrix, it will always be taken as identity.
Editing of transformation parameters is disabled.
Definition at line 802 of file REveElement.cxx.
|
virtual |
Destroy this element. Prints a warning if deny-destroy is in force.
Definition at line 1239 of file REveElement.cxx.
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 1143 of file REveElement.cxx.
Enable rendering of children and their list contents.
Arguments control how to set self/child rendering.
Definition at line 1130 of file REveElement.cxx.
|
virtual |
Export render-element to CINT with variable name var_name.
Definition at line 555 of file REveElement.cxx.
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, and ROOT::Experimental::REveDataItem.
Definition at line 1375 of file REveElement.cxx.
REveElement * REveElement::FindChild | ( | const TString & | name, |
const TClass * | cls = nullptr |
||
) |
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 1030 of file REveElement.cxx.
REveElement * REveElement::FindChild | ( | TPRegexp & | regexp, |
const TClass * | cls = nullptr |
||
) |
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 1049 of file REveElement.cxx.
Int_t REveElement::FindChildren | ( | List_t & | matches, |
const TString & | name, | ||
const TClass * | cls = nullptr |
||
) |
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 1068 of file REveElement.cxx.
Int_t REveElement::FindChildren | ( | List_t & | matches, |
TPRegexp & | regexp, | ||
const TClass * | cls = nullptr |
||
) |
Find all children whose name matches regexp and append them to matches list.
Returns number of elements added to the list.
Definition at line 1092 of file REveElement.cxx.
REveElement * REveElement::FirstChild | ( | ) | const |
Returns the first child element or 0 if the list is empty.
Definition at line 1113 of file REveElement.cxx.
|
protected |
Definition at line 121 of file REveElement.cxx.
|
protected |
Definition at line 126 of file REveElement.cxx.
|
inline |
Definition at line 429 of file REveElement.hxx.
|
inline |
Definition at line 241 of file REveElement.hxx.
|
inline |
Definition at line 196 of file REveElement.hxx.
|
inline |
Definition at line 223 of file REveElement.hxx.
|
inline |
Definition at line 198 of file REveElement.hxx.
Int_t REveElement::GetDenyDestroy | ( | ) | const |
Returns the number of times deny-destroy has been requested on the element.
Definition at line 1304 of file REveElement.cxx.
Bool_t REveElement::GetDestroyOnZeroRefCnt | ( | ) | const |
Returns state of flag determining if the element will be destroyed when reference count reaches zero.
This is true by default.
Definition at line 1285 of file REveElement.cxx.
|
inline |
Definition at line 189 of file REveElement.hxx.
|
inlinevirtual |
Definition at line 200 of file REveElement.hxx.
|
inline |
Definition at line 382 of file REveElement.hxx.
|
inlinevirtual |
Definition at line 311 of file REveElement.hxx.
|
inline |
Definition at line 307 of file REveElement.hxx.
|
inlinevirtual |
Definition at line 320 of file REveElement.hxx.
|
inline |
Definition at line 230 of file REveElement.hxx.
|
inline |
Definition at line 195 of file REveElement.hxx.
|
inline |
Definition at line 341 of file REveElement.hxx.
|
inlinevirtual |
Definition at line 296 of file REveElement.hxx.
|
inlinevirtual |
Definition at line 294 of file REveElement.hxx.
|
inlinevirtual |
Definition at line 293 of file REveElement.hxx.
|
inlinevirtual |
Definition at line 295 of file REveElement.hxx.
|
inline |
Definition at line 229 of file REveElement.hxx.
REveElement * REveElement::GetSelectionMaster | ( | ) |
Returns the master element - that is:
Definition at line 1345 of file REveElement.cxx.
|
inline |
Definition at line 197 of file REveElement.hxx.
|
inline |
Definition at line 338 of file REveElement.hxx.
|
inline |
Definition at line 210 of file REveElement.hxx.
|
inline |
Definition at line 207 of file REveElement.hxx.
|
inline |
Definition at line 239 of file REveElement.hxx.
Bool_t REveElement::HasChild | ( | REveElement * | el | ) |
Check if element el is a child of this element.
Definition at line 1019 of file REveElement.cxx.
|
inline |
Definition at line 247 of file REveElement.hxx.
|
inlinevirtual |
Definition at line 310 of file REveElement.hxx.
|
inlinevirtual |
Definition at line 326 of file REveElement.hxx.
|
inline |
Definition at line 227 of file REveElement.hxx.
|
inline |
Definition at line 226 of file REveElement.hxx.
void REveElement::IncDenyDestroy | ( | ) |
Increases the deny-destroy count of the element.
Call this if you store an external pointer to the element.
Definition at line 1313 of file REveElement.cxx.
|
inline |
Definition at line 380 of file REveElement.hxx.
Initialize the main transformation to identity matrix.
If can_edit is true (default), the user will be able to edit the transformation parameters via GUI.
Definition at line 789 of file REveElement.cxx.
TClass * REveElement::IsA | ( | ) | const |
Return class for this element.
Definition at line 547 of file REveElement.cxx.
|
inline |
Definition at line 371 of file REveElement.hxx.
REveElement * REveElement::LastChild | ( | ) | const |
Returns the last child element or 0 if the list is empty.
Definition at line 1121 of file REveElement.cxx.
|
virtual |
Virtual function called when a name or title of the element has been changed.
If you override this, call also the version of your direct base-class.
Definition at line 244 of file REveElement.cxx.
|
inline |
Definition at line 238 of file REveElement.hxx.
|
inline |
Definition at line 246 of file REveElement.hxx.
|
privatedelete |
|
protectedvirtual |
Vertex / normal / triangle index information for rendering.
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 162 of file REveElement.cxx.
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 998 of file REveElement.cxx.
|
virtual |
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 968 of file REveElement.cxx.
Propagate color to projected elements.
Definition at line 713 of file REveElement.cxx.
Propagate transparency to projected elements.
Definition at line 751 of file REveElement.cxx.
|
virtual |
Propagate render state to the projected replicas of this element.
Maybe this should be optional on REX::gEve/element level.
Definition at line 649 of file REveElement.cxx.
|
virtual |
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 337 of file REveElement.cxx.
|
virtual |
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 321 of file REveElement.cxx.
Return pointer to main transformation.
If 'create' flag is set (default) it is created if not yet existing.
Definition at line 764 of file REveElement.cxx.
void REveElement::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.
This can happen if you add elements into compounds in response to user-interaction.
Definition at line 1390 of file REveElement.cxx.
|
inline |
Definition at line 236 of file REveElement.hxx.
|
inline |
Definition at line 237 of file REveElement.hxx.
|
inline |
Definition at line 244 of file REveElement.hxx.
|
inline |
Definition at line 245 of file REveElement.hxx.
|
virtual |
Return reference to main transformation.
It is created if not yet existing.
Definition at line 776 of file REveElement.cxx.
Remove el from the list of aunts.
Removing aunt is subordinate to removing a niece. This is an internal function.
Definition at line 515 of file REveElement.cxx.
|
virtual |
Remove el from the list of children.
Definition at line 875 of file REveElement.cxx.
|
virtual |
Perform additional local removal of el.
Called from RemoveElement() which does whole untangling. Put into special function as framework-related handling of element removal should really be common to all classes and clearing of local structures happens in between removal of list-tree-items and final removal. If you override this, you should also override RemoveElementsLocal().
Reimplemented in ROOT::Experimental::REveCompound, ROOT::Experimental::REvePointSetArray, ROOT::Experimental::REveViewer, and ROOT::Experimental::REveViewerList.
Definition at line 908 of file REveElement.cxx.
|
virtual |
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 939 of file REveElement.cxx.
|
protectedvirtual |
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 918 of file REveElement.cxx.
|
virtual |
Perform additional local removal of all elements.
See comment to RemoveElementLocal(REveElement*).
Reimplemented in ROOT::Experimental::REveCompound, ROOT::Experimental::REvePointSetArray, ROOT::Experimental::REveViewer, and ROOT::Experimental::REveViewerList.
Definition at line 952 of file REveElement.cxx.
|
inline |
Definition at line 390 of file REveElement.hxx.
Definition at line 387 of file REveElement.hxx.
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 385 of file REveElement.cxx.
Definition at line 242 of file REveElement.hxx.
|
inline |
Definition at line 224 of file REveElement.hxx.
Definition at line 386 of file REveElement.hxx.
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 1295 of file REveElement.cxx.
Definition at line 306 of file REveElement.hxx.
Definition at line 319 of file REveElement.hxx.
Set main-transparency via float alpha variable.
Value of alpha is clamped t0 [0, 1].
Definition at line 741 of file REveElement.cxx.
Set main color of the element.
Reimplemented in ROOT::Experimental::REveTrackList, ROOT::Experimental::REveCompoundProjected, ROOT::Experimental::REveCompound, ROOT::Experimental::REveDigitSet, ROOT::Experimental::REveShape, and ROOT::Experimental::REveDataCollection.
Definition at line 673 of file REveElement.cxx.
Convert pixel to Color_t and call SetMainColor().
Definition at line 689 of file REveElement.cxx.
Definition at line 308 of file REveElement.hxx.
Convert RGB values to Color_t and call SetMainColor.
Definition at line 705 of file REveElement.cxx.
Convert RGB values to Color_t and call SetMainColor.
Definition at line 697 of file REveElement.cxx.
Set main-transparency.
Transparency is clamped to [0, 100].
Reimplemented in ROOT::Experimental::REveCompound.
Definition at line 726 of file REveElement.cxx.
void REveElement::SetName | ( | const std::string & | name | ) |
Set name of an element.
Definition at line 211 of file REveElement.cxx.
void REveElement::SetNameTitle | ( | const std::string & | name, |
const std::string & | title | ||
) |
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 232 of file REveElement.cxx.
Definition at line 372 of file REveElement.hxx.
Set pickable state on the element and all its children.
Definition at line 1331 of file REveElement.cxx.
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 589 of file REveElement.cxx.
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.
Reimplemented in ROOT::Experimental::REveDataItem.
Definition at line 566 of file REveElement.cxx.
Set state for rendering of this element and its children.
Returns true if the state has changed.
Definition at line 610 of file REveElement.cxx.
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::REveDataCollection.
Definition at line 633 of file REveElement.cxx.
|
inline |
Definition at line 376 of file REveElement.hxx.
void REveElement::SetTitle | ( | const std::string & | title | ) |
Set title of an element.
Definition at line 220 of file REveElement.cxx.
|
virtual |
Set transformation matrix from TGeo's matrix.
Definition at line 819 of file REveElement.cxx.
Set transformation matrix from column-major array.
Definition at line 811 of file REveElement.cxx.
void REveElement::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.
Definition at line 662 of file REveElement.cxx.
Definition at line 339 of file REveElement.hxx.
void REveElement::SetVizModel | ( | REveElement * | model | ) |
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 255 of file REveElement.cxx.
Bool_t REveElement::SetVizModelByTag | ( | ) |
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 266 of file REveElement.cxx.
Definition at line 208 of file REveElement.hxx.
|
inlinevirtual |
Reimplemented in ROOT::Experimental::REveDataCollection, ROOT::Experimental::REveScene, and ROOT::Experimental::REveSceneInfo.
Definition at line 292 of file REveElement.hxx.
|
inline |
Definition at line 419 of file REveElement.hxx.
|
inline |
Definition at line 424 of file REveElement.hxx.
|
inline |
Definition at line 421 of file REveElement.hxx.
|
inline |
Definition at line 422 of file REveElement.hxx.
|
inline |
Definition at line 420 of file REveElement.hxx.
|
inline |
Definition at line 423 of file REveElement.hxx.
Definition at line 388 of file REveElement.hxx.
|
staticprotected |
Convert Bool_t to string - kTRUE or kFALSE.
Needed in WriteVizParams().
Definition at line 1447 of file REveElement.cxx.
void REveElement::VizDB_Apply | ( | const std::string & | tag | ) |
Set visual parameters for this object for given tag.
Definition at line 426 of file REveElement.cxx.
void REveElement::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.
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 481 of file REveElement.cxx.
void REveElement::VizDB_Reapply | ( | ) |
Reset visual parameters for this object from VizDB.
The model object must be already set.
Definition at line 439 of file REveElement.cxx.
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 455 of file REveElement.cxx.
|
virtual |
Write core json.
If rnr_offset is negative, render data shall not be written. Returns number of bytes written into binary render data.
Reimplemented in ROOT::Experimental::REveDataTable, ROOT::Experimental::REveDataCollection, ROOT::Experimental::REveDataItem, ROOT::Experimental::REveLine, ROOT::Experimental::REveSelection, ROOT::Experimental::REveTrack, ROOT::Experimental::REveTrackProjected, ROOT::Experimental::REveBox, ROOT::Experimental::REveBoxProjected, ROOT::Experimental::REveBoxSet, ROOT::Experimental::REveDigitSet, ROOT::Experimental::REveEllipsoid, ROOT::Experimental::REveEllipsoidProjected, ROOT::Experimental::REveGeoShape, ROOT::Experimental::REveJetCone, ROOT::Experimental::REvePointSet, ROOT::Experimental::REvePolygonSetProjected, ROOT::Experimental::REveSceneInfo, ROOT::Experimental::REveShape, ROOT::Experimental::REveStraightLineSet, and ROOT::Experimental::REveTableViewInfo.
Definition at line 1460 of file REveElement.cxx.
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 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 412 of file REveElement.cxx.
|
friend |
Definition at line 124 of file REveElement.hxx.
|
friend |
Definition at line 125 of file REveElement.hxx.
|
protected |
Definition at line 153 of file REveElement.hxx.
Definition at line 165 of file REveElement.hxx.
Definition at line 167 of file REveElement.hxx.
Definition at line 166 of file REveElement.hxx.
|
protected |
Definition at line 415 of file REveElement.hxx.
|
protected |
Definition at line 155 of file REveElement.hxx.
|
protected |
Definition at line 154 of file REveElement.hxx.
|
protected |
Definition at line 156 of file REveElement.hxx.
|
protected |
Definition at line 368 of file REveElement.hxx.
Definition at line 170 of file REveElement.hxx.
|
protected |
Definition at line 160 of file REveElement.hxx.
Deny-destroy count.
Definition at line 161 of file REveElement.hxx.
Definition at line 416 of file REveElement.hxx.
|
private |
Definition at line 137 of file REveElement.hxx.
|
protected |
Definition at line 366 of file REveElement.hxx.
|
protected |
Definition at line 171 of file REveElement.hxx.
|
protected |
Definition at line 172 of file REveElement.hxx.
|
protected |
Definition at line 169 of file REveElement.hxx.
|
protected |
Definition at line 140 of file REveElement.hxx.
|
protected |
Definition at line 151 of file REveElement.hxx.
|
protected |
Definition at line 367 of file REveElement.hxx.
|
protected |
Externally assigned and controlled user data.
Definition at line 176 of file REveElement.hxx.
Definition at line 164 of file REveElement.hxx.
Definition at line 163 of file REveElement.hxx.
|
protected |
Definition at line 141 of file REveElement.hxx.
|
protected |
Definition at line 142 of file REveElement.hxx.
|
protected |
Definition at line 152 of file REveElement.hxx.
|
protected |
Definition at line 174 of file REveElement.hxx.
|
protected |
Definition at line 157 of file REveElement.hxx.
|
protected |
Element used as model from VizDB.
Definition at line 158 of file REveElement.hxx.