A++ » INCLUDE » TEveElement

class TEveElement

Function Members (Methods)

public:
virtual~TEveElement()
virtual Bool_tAcceptElement(TEveElement* el)
virtual voidAddElement(TEveElement* el)
virtual TGListTreeItem*AddIntoListTree(TGListTree* ltree, TGListTreeItem* parent_lti)
virtual TGListTreeItem*AddIntoListTree(TGListTree* ltree, TEveElement* parent)
virtual TGListTreeItem*AddIntoListTrees(TEveElement* parent)
virtual voidAddParent(TEveElement* re)
virtual voidAddStamp(UChar_t bits)
virtual voidAnnihilate()
virtual voidAnnihilateElements()
Bool_tApplyVizTag(const TString& tag, const TString& fallback_tag = "")
TEveElement::List_iBeginChildren()
TEveElement::List_ciBeginChildren() const
TEveElement::List_iBeginParents()
TEveElement::List_ciBeginParents() const
virtual Bool_tCanEditElement() const
virtual Bool_tCanEditMainColor() const
virtual Bool_tCanEditMainTrans() const
virtual Bool_tCanEditMainTransparency() const
virtual voidCheckReferenceCount(const TEveException& eh = "TEveElement::CheckReferenceCount ")
static TClass*Class()
virtual voidClearStamps()
virtual voidCloneChildrenRecurse(TEveElement* dest, Int_t level = 0) const
virtual TEveElement*CloneElement() const
virtual TEveElement*CloneElementRecurse(Int_t level = 0) const
virtual voidCollectSceneParents(TEveElement::List_t& scenes)
virtual voidCollectSceneParentsFromChildren(TEveElement::List_t& scenes, TEveElement* parent)
virtual voidCopyVizParams(const TEveElement* el)
virtual voidCopyVizParamsFromDB()
voidCSCApplyMainColorToAllChildren()
voidCSCApplyMainColorToMatchingChildren()
voidCSCApplyMainTransparencyToAllChildren()
voidCSCApplyMainTransparencyToMatchingChildren()
voidCSCImplySelectAllChildren()
voidCSCTakeAnyParentAsMaster()
voidDecDenyDestroy()
virtual voidDecImpliedHighlighted()
virtual voidDecImpliedSelected()
voidDecParentIgnoreCnt()
virtual voidDestroy()MENU
virtual voidDestroyElements()MENU
virtual voidDestroyListSubTree(TGListTree* ltree, TGListTreeItem* parent)
virtual voidDestroyMainTrans()
virtual voidDestroyOrWarn()
voidDisableListElements(Bool_t rnr_self = kFALSE, Bool_t rnr_children = kFALSE)MENU
voidDumpSourceObject() constMENU
virtual voidElementChanged(Bool_t update_scenes = kTRUE, Bool_t redraw = kFALSE)
voidEnableListElements(Bool_t rnr_self = kTRUE, Bool_t rnr_children = kTRUE)MENU
TEveElement::List_iEndChildren()
TEveElement::List_ciEndChildren() const
TEveElement::List_iEndParents()
TEveElement::List_ciEndParents() const
virtual voidExpandIntoListTree(TGListTree* ltree, TGListTreeItem* parent)
voidExportSourceObjectToCINT(char* var_name) constMENU
virtual voidExportToCINT(char* var_name)MENU
virtual voidFillImpliedSelectedSet(TEveElement::Set_t& impSelSet)
TEveElement*FindChild(const TString& name, const TClass* cls = 0)
TEveElement*FindChild(TPRegexp& regexp, const TClass* cls = 0)
Int_tFindChildren(TEveElement::List_t& matches, const TString& name, const TClass* cls = 0)
Int_tFindChildren(TEveElement::List_t& matches, TPRegexp& regexp, const TClass* cls = 0)
virtual TEveElement::sLTI_iFindItem(TGListTree* ltree)
virtual TEveElement::sLTI_iFindItem(TGListTree* ltree, TGListTreeItem* parent_lti)
virtual TGListTreeItem*FindListTreeItem(TGListTree* ltree)
virtual TGListTreeItem*FindListTreeItem(TGListTree* ltree, TGListTreeItem* parent_lti)
Bool_tFindVizModel()
TEveElement*FirstChild() const
virtual TEveElement*ForwardEdit()
virtual TEveElement*ForwardSelection()
UChar_tGetChangeBits() const
TEveCompound*GetCompound()
Int_tGetDenyDestroy() const
Bool_tGetDestroyOnZeroRefCnt() const
virtual TObject*GetEditorObject(const TEveException& eh) const
virtual const char*GetElementName() const
virtual const char*GetElementTitle() const
virtual TStringGetHighlightTooltip()
virtual const TGPicture*GetListTreeCheckBoxIcon()
virtual const TGPicture*GetListTreeIcon(Bool_t open = kFALSE)
virtual Color_tGetMainColor() const
Color_t*GetMainColorPtr() const
virtual Char_tGetMainTransparency() const
TEveElement*GetMaster()
virtual Int_tGetNItems() const
virtual TObject*GetObject(const TEveException& eh) const
Int_tGetParentIgnoreCnt() const
virtual TObject*GetRenderObject(const TEveException& eh) const
virtual Bool_tGetRnrAnything() const
virtual Bool_tGetRnrChildren() const
virtual Bool_tGetRnrSelf() const
virtual Bool_tGetRnrState() const
virtual UChar_tGetSelectedLevel() const
TRef&GetSource()
TObject*GetSourceObject() const
void*GetUserData() const
TEveElement*GetVizModel() const
const TString&GetVizTag() const
virtual Bool_tHandleElementPaste(TEveElement* el)
Bool_tHasChild(TEveElement* el)
Bool_tHasChildren() const
virtual Bool_tHasMainColor() const
virtual Bool_tHasMainTrans() const
Bool_tHasParents() const
virtual voidHighlightElement(Bool_t state)
voidIncDenyDestroy()
virtual voidIncImpliedHighlighted()
virtual voidIncImpliedSelected()
voidIncParentIgnoreCnt()
virtual voidInitMainTrans(Bool_t can_edit = kTRUE)
virtual TClass*IsA() const
Bool_tIsPickable() const
TEveElement*LastChild() const
virtual voidNameTitleChanged()
Int_tNumChildren() const
Int_tNumParents() const
virtual voidPadPaint(Option_t* option)
virtual voidPaintStandard(TObject* id)
voidPrintSourceObject() constMENU
virtual voidProjectAllChildren(Bool_t same_depth = kTRUE)
virtual voidProjectChild(TEveElement* el, Bool_t same_depth = kTRUE)
virtual voidPropagateMainColorToProjecteds(Color_t color, Color_t old_color)
virtual voidPropagateMainTransparencyToProjecteds(Char_t t, Char_t old_t)
virtual voidPropagateRnrStateToProjecteds()
virtual voidPropagateVizParamsToElements(TEveElement* el = 0)
virtual voidPropagateVizParamsToProjecteds()
virtual TEveTrans*PtrMainTrans(Bool_t create = kTRUE)
voidRecheckImpliedSelections()
const TEveElement::List_t&RefChildren() const
virtual TEveTrans&RefMainTrans()
virtual voidRemoveElement(TEveElement* el)
virtual voidRemoveElementLocal(TEveElement* el)
virtual voidRemoveElements()
virtual voidRemoveElementsLocal()
virtual Bool_tRemoveFromListTree(TGListTree* ltree, TGListTreeItem* parent_lti)
virtual Int_tRemoveFromListTrees(TEveElement* parent)
virtual voidRemoveParent(TEveElement* re)
voidResetAllCSCBits()
voidResetCSCBits(UChar_t f)
voidSaveVizParams(ostream& out, const TString& tag, const TString& var)
virtual voidSelectElement(Bool_t state)
voidSetCompound(TEveCompound* c)
voidSetCSCBits(UChar_t f)
voidSetDestroyOnZeroRefCnt(Bool_t d)
voidSetEditMainColor(Bool_t x)
voidSetEditMainTransparency(Bool_t x)
virtual voidSetElementName(const char* name)
virtual voidSetElementNameTitle(const char* name, const char* title)
virtual voidSetElementTitle(const char* title)
voidSetMainAlpha(Float_t alpha)
virtual voidSetMainColor(Color_t color)
voidSetMainColorPixel(Pixel_t pixel)
voidSetMainColorPtr(Color_t* color)
voidSetMainColorRGB(UChar_t r, UChar_t g, UChar_t b)
voidSetMainColorRGB(Float_t r, Float_t g, Float_t b)
virtual voidSetMainTransparency(Char_t t)
voidSetPickable(Bool_t p)
voidSetPickableRecursively(Bool_t p)
virtual Bool_tSetRnrChildren(Bool_t rnr)
virtual Bool_tSetRnrSelf(Bool_t rnr)
virtual Bool_tSetRnrSelfChildren(Bool_t rnr_self, Bool_t rnr_children)
virtual Bool_tSetRnrState(Bool_t rnr)
voidSetSourceObject(TObject* o)
virtual voidSetTransMatrix(Double_t* carr)
virtual voidSetTransMatrix(const TGeoMatrix& mat)
voidSetUserData(void* ud)
voidSetVizModel(TEveElement* model)
voidSetVizTag(const TString& tag)
virtual voidShowMembers(TMemberInspector& insp) const
virtual Bool_tSingleRnrState() const
voidSpawnEditor()MENU
voidStampColorSelection()
voidStampObjProps()
voidStampTransBBox()
voidStampVisibility()
virtual voidStreamer(TBuffer&)
voidStreamerNVirtual(TBuffer& ClassDef_StreamerNVirtual_b)
Bool_tTestCSCBits(UChar_t f) const
TEveElement()
TEveElement(Color_t& main_color)
TEveElement(const TEveElement& e)
virtual voidUnHighlighted()
virtual voidUnSelected()
voidVizDB_Apply(const char* tag)MENU
voidVizDB_Insert(const char* tag, Bool_t replace = kTRUE, Bool_t update = kTRUE)MENU
voidVizDB_Reapply()MENU
voidVizDB_UpdateModel(Bool_t update = kTRUE)MENU
virtual voidWriteVizParams(ostream& out, const TString& var)
protected:
virtual voidAnnihilateRecursively()
virtual voidPreDeleteElement()
virtual voidRemoveElementsInternal()
static const char*ToString(Bool_t b)

Data Members

public:
static const TGPicture*fgListTreeIcons[9]
static const TGPicture*fgRnrIcons[4]
static TEveElement::EChangeBitskCBColorSelection
static TEveElement::EChangeBitskCBObjProps
static TEveElement::EChangeBitskCBTransBBox
static TEveElement::EChangeBitskCBVisibility
protected:
UChar_tfCSCBits
Bool_tfCanEditMainColorAllow editing of main color.
Bool_tfCanEditMainTransAllow editing of main transformation.
Bool_tfCanEditMainTransparencyAllow editing of main transparency.
UChar_tfChangeBits!
TEveElement::List_tfChildrenList of children.
TEveCompound*fCompoundCompound this object belongs to.
Int_tfDenyDestroy! Deny-destroy count.
Bool_tfDestroyOnZeroRefCntAuto-destruct when ref-count reaches zero.
Char_tfDestructing!
Bool_tfHighlighted!
Short_tfImpliedHighlighted!
Short_tfImpliedSelected!
TEveElement::sLTI_tfItems! Set of list-tree-items.
Color_t*fMainColorPtrPointer to main-color variable.
TEveTrans*fMainTransPointer to main transformation matrix.
Char_tfMainTransparencyMain-transparency variable.
Int_tfNumChildren!
Int_tfParentIgnoreCnt! Counter for parents that are ignored in ref-counting.
TEveElement::List_tfParentsList of parents.
Bool_tfPickable
Bool_tfRnrChildrenRender children of this element.
Bool_tfRnrSelfRender this element.
Bool_tfSelected!
TReffSourceExternal object that is represented by this element.
Int_tfTopItemCnt! Counter for top-level list-tree items that prevent automatic destruction.
void*fUserData! Externally assigned and controlled user data.
TEveElement*fVizModel! Element used as model from VizDB.
TStringfVizTagTag used to query VizDB for model element.
static TEveElement::EDestructkAnnihilate
static TEveElement::ECompoundSelectionColorBitskCSCBApplyMainColorToAllChildren
static TEveElement::ECompoundSelectionColorBitskCSCBApplyMainColorToMatchingChildren
static TEveElement::ECompoundSelectionColorBitskCSCBApplyMainTransparencyToAllChildren
static TEveElement::ECompoundSelectionColorBitskCSCBApplyMainTransparencyToMatchingChildren
static TEveElement::ECompoundSelectionColorBitskCSCBImplySelectAllChildren
static TEveElement::ECompoundSelectionColorBitskCSCBTakeAnyParentAsMaster
static TEveElement::EDestructkNone
static TEveElement::EDestructkStandard

Class Charts

Inheritance Chart:
TEveElement
TEveArrow
TEveCaloData
TEveCaloDataHist
TEveCaloDataVec
TEveCaloViz
TEveCalo2D
TEveCalo3D
TEveCaloLego
TEveDigitSet
TEveBoxSet
 [more...]

Function documentation

TEveElement& operator=(const TEveElement& )
void PreDeleteElement()
void RemoveElementsInternal()
void AnnihilateRecursively()
const char* ToString(Bool_t b)
TEveElement()
TEveElement(Color_t& main_color)
TEveElement(const TEveElement& e)
virtual ~TEveElement()
TEveElement* CloneElement() const
TEveElement* CloneElementRecurse(Int_t level = 0) const
void CloneChildrenRecurse(TEveElement* dest, Int_t level = 0) const
const char* GetElementName() const
const char* GetElementTitle() const
TString GetHighlightTooltip()
{ return TString(GetElementTitle()); }
void SetElementName(const char* name)
void SetElementTitle(const char* title)
void SetElementNameTitle(const char* name, const char* title)
void NameTitleChanged()
const TString& GetVizTag() const
{ return fVizTag; }
void SetVizTag(const TString& tag)
{ fVizTag = tag; }
TEveElement* GetVizModel() const
{ return fVizModel; }
void SetVizModel(TEveElement* model)
Bool_t FindVizModel()
Bool_t ApplyVizTag(const TString& tag, const TString& fallback_tag = "")
void PropagateVizParamsToProjecteds()
void PropagateVizParamsToElements(TEveElement* el = 0)
void CopyVizParams(const TEveElement* el)
void CopyVizParamsFromDB()
void SaveVizParams(ostream& out, const TString& tag, const TString& var)
void WriteVizParams(ostream& out, const TString& var)
TEveElement* GetMaster()
TEveCompound* GetCompound()
{ return fCompound; }
void SetCompound(TEveCompound* c)
{ fCompound = c; }
void AddParent(TEveElement* re)
void RemoveParent(TEveElement* re)
void CheckReferenceCount(const TEveException& eh = "TEveElement::CheckReferenceCount ")
void CollectSceneParents(TEveElement::List_t& scenes)
void CollectSceneParentsFromChildren(TEveElement::List_t& scenes, TEveElement* parent)
{ return fParents.begin(); }
List_i EndParents()
{ return fParents.end(); }
List_ci BeginParents() const
{ return fParents.begin(); }
List_ci EndParents() const
{ return fParents.end(); }
Int_t NumParents() const
{ return fParents.size(); }
Bool_t HasParents() const
{ return !fParents.empty(); }
const List_t& RefChildren() const
{ return fChildren; }
List_i BeginChildren()
{ return fChildren.begin(); }
List_i EndChildren()
{ return fChildren.end(); }
List_ci BeginChildren() const
{ return fChildren.begin(); }
List_ci EndChildren() const
{ return fChildren.end(); }
Int_t NumChildren() const
{ return fNumChildren; }
Bool_t HasChildren() const
{ return fNumChildren != 0; }
Bool_t HasChild(TEveElement* el)
TEveElement* FindChild(const TString& name, const TClass* cls = 0)
TEveElement* FindChild(TPRegexp& regexp, const TClass* cls = 0)
Int_t FindChildren(TEveElement::List_t& matches, const TString& name, const TClass* cls = 0)
Int_t FindChildren(TEveElement::List_t& matches, TPRegexp& regexp, const TClass* cls = 0)
TEveElement* FirstChild() const
TEveElement* LastChild() const
void EnableListElements(Bool_t rnr_self = kTRUE, Bool_t rnr_children = kTRUE)
void DisableListElements(Bool_t rnr_self = kFALSE, Bool_t rnr_children = kFALSE)
Bool_t GetDestroyOnZeroRefCnt() const
void SetDestroyOnZeroRefCnt(Bool_t d)
Int_t GetDenyDestroy() const
void IncDenyDestroy()
void DecDenyDestroy()
Int_t GetParentIgnoreCnt() const
void IncParentIgnoreCnt()
void DecParentIgnoreCnt()
void PadPaint(Option_t* option)
void PaintStandard(TObject* id)
TObject* GetObject(const TEveException& eh) const
TObject* GetEditorObject(const TEveException& eh) const
{ return GetObject(eh); }
TObject* GetRenderObject(const TEveException& eh) const
{ return GetObject(eh); }
void ExpandIntoListTree(TGListTree* ltree, TGListTreeItem* parent)
void DestroyListSubTree(TGListTree* ltree, TGListTreeItem* parent)
TGListTreeItem* AddIntoListTree(TGListTree* ltree, TGListTreeItem* parent_lti)
TGListTreeItem* AddIntoListTrees(TEveElement* parent)
Bool_t RemoveFromListTree(TGListTree* ltree, TGListTreeItem* parent_lti)
sLTI_i FindItem(TGListTree* ltree)
sLTI_i FindItem(TGListTree* ltree, TGListTreeItem* parent_lti)
TGListTreeItem* FindListTreeItem(TGListTree* ltree, TGListTreeItem* parent_lti)
{ return fItems.size(); }
void SpawnEditor()
void ExportToCINT(char* var_name)
void DumpSourceObject() const
void PrintSourceObject() const
void ExportSourceObjectToCINT(char* var_name) const
Bool_t AcceptElement(TEveElement* el)
void AddElement(TEveElement* el)
void RemoveElement(TEveElement* el)
void RemoveElementLocal(TEveElement* el)
void RemoveElements()
void RemoveElementsLocal()
void AnnihilateElements()
void Annihilate()
void ProjectChild(TEveElement* el, Bool_t same_depth = kTRUE)
void ProjectAllChildren(Bool_t same_depth = kTRUE)
void Destroy()
void DestroyOrWarn()
void DestroyElements()
Bool_t HandleElementPaste(TEveElement* el)
void ElementChanged(Bool_t update_scenes = kTRUE, Bool_t redraw = kFALSE)
Bool_t CanEditElement() const
{ return kTRUE; }
Bool_t SingleRnrState() const
{ return kFALSE; }
Bool_t GetRnrSelf() const
{ return fRnrSelf; }
Bool_t GetRnrChildren() const
{ return fRnrChildren; }
Bool_t GetRnrState() const
{ return fRnrSelf && fRnrChildren; }
Bool_t GetRnrAnything() const
{ return fRnrSelf || (fRnrChildren && HasChildren()); }
Bool_t SetRnrSelf(Bool_t rnr)
Bool_t SetRnrChildren(Bool_t rnr)
Bool_t SetRnrSelfChildren(Bool_t rnr_self, Bool_t rnr_children)
Bool_t SetRnrState(Bool_t rnr)
void PropagateRnrStateToProjecteds()
Bool_t CanEditMainColor() const
{ return fCanEditMainColor; }
void SetEditMainColor(Bool_t x)
Color_t* GetMainColorPtr() const
{ return fMainColorPtr; }
void SetMainColorPtr(Color_t* color)
{ fMainColorPtr = color; }
Bool_t HasMainColor() const
{ return fMainColorPtr != 0; }
Color_t GetMainColor() const
{ return fMainColorPtr ? *fMainColorPtr : 0; }
void SetMainColor(Color_t color)
void SetMainColorPixel(Pixel_t pixel)
void SetMainColorRGB(UChar_t r, UChar_t g, UChar_t b)
void SetMainColorRGB(Float_t r, Float_t g, Float_t b)
void PropagateMainColorToProjecteds(Color_t color, Color_t old_color)
Bool_t CanEditMainTransparency() const
void SetEditMainTransparency(Bool_t x)
Char_t GetMainTransparency() const
{ return fMainTransparency; }
void SetMainTransparency(Char_t t)
void SetMainAlpha(Float_t alpha)
void PropagateMainTransparencyToProjecteds(Char_t t, Char_t old_t)
Bool_t CanEditMainTrans() const
{ return fCanEditMainTrans; }
Bool_t HasMainTrans() const
{ return fMainTrans != 0; }
TEveTrans* PtrMainTrans(Bool_t create = kTRUE)
TEveTrans& RefMainTrans()
void InitMainTrans(Bool_t can_edit = kTRUE)
void DestroyMainTrans()
void SetTransMatrix(Double_t* carr)
void SetTransMatrix(const TGeoMatrix& mat)
TRef& GetSource()
{ return fSource; }
TObject* GetSourceObject() const
{ return fSource.GetObject(); }
void SetSourceObject(TObject* o)
     void DumpSourceObject();    // *MENU*
     void InspectSourceObject(); // *MENU*

{ fSource = o; }
void* GetUserData() const
{ return fUserData; }
void SetUserData(void* ud)
{ fUserData = ud; }
Bool_t IsPickable() const
{ return fPickable; }
void SetPickable(Bool_t p)
{ fPickable = p; }
void SetPickableRecursively(Bool_t p)
TEveElement* ForwardSelection()
TEveElement* ForwardEdit()
void SelectElement(Bool_t state)
void IncImpliedSelected()
void DecImpliedSelected()
void UnSelected()
void HighlightElement(Bool_t state)
void IncImpliedHighlighted()
void DecImpliedHighlighted()
void UnHighlighted()
void FillImpliedSelectedSet(TEveElement::Set_t& impSelSet)
UChar_t GetSelectedLevel() const
void RecheckImpliedSelections()
void SetCSCBits(UChar_t f)
{ fCSCBits |= f; }
void ResetCSCBits(UChar_t f)
{ fCSCBits &= ~f; }
Bool_t TestCSCBits(UChar_t f) const
{ return (fCSCBits & f) != 0; }
void ResetAllCSCBits()
{ fCSCBits = 0; }
void CSCImplySelectAllChildren()
void CSCTakeAnyParentAsMaster()
void CSCApplyMainColorToAllChildren()
void CSCApplyMainColorToMatchingChildren()
void CSCApplyMainTransparencyToAllChildren()
void CSCApplyMainTransparencyToMatchingChildren()
void StampColorSelection()
void StampTransBBox()
void StampObjProps()
void StampVisibility()
 void StampElementAdded()   { AddStamp(kCBElementAdded); }
 void StampElementRemoved() { AddStamp(kCBElementRemoved); }
void AddStamp(UChar_t bits)
void ClearStamps()
{ fChangeBits = 0; }
UChar_t GetChangeBits() const
{ return fChangeBits; }
const TGPicture* GetListTreeIcon(Bool_t open = kFALSE)
 List-tree icons

const TGPicture* GetListTreeCheckBoxIcon()
void VizDB_Apply(const char* tag)
 Menu entries for VizDB communication (here so they are last in the menu).
void VizDB_Reapply()
void VizDB_UpdateModel(Bool_t update = kTRUE)
void VizDB_Insert(const char* tag, Bool_t replace = kTRUE, Bool_t update = kTRUE)