Logo ROOT  
Reference Guide
TEveListTreeItem Class Reference

Special list-tree-item for Eve.

Most state is picked directly from TEveElement, no need to store it locally nor to manage its consistency.

Handles also selected/highlighted colors and, in the future, drag-n-drop.

Definition at line 29 of file TEveBrowser.h.

Public Member Functions

 TEveListTreeItem (TEveElement *el)
  More...
 
virtual ~TEveListTreeItem ()
  More...
 
virtual void CheckItem (Bool_t=kTRUE)
  More...
 
virtual void ClearColor ()
  More...
 
virtual Pixel_t GetActiveColor () const
 Return highlight color corresponding to current state of TEveElement. More...
 
virtual const TGPictureGetCheckBoxPicture () const
  More...
 
virtual Color_t GetColor () const
  More...
 
virtual const TGPictureGetPicture () const
  More...
 
virtual const char * GetText () const
  More...
 
virtual Int_t GetTextLength () const
  More...
 
virtual const char * GetTipText () const
  More...
 
virtual Int_t GetTipTextLength () const
  More...
 
virtual voidGetUserData () const
  More...
 
virtual Bool_t HasCheckBox () const
  More...
 
virtual Bool_t HasColor () const
  More...
 
virtual Bool_t IsActive () const
  More...
 
virtual Bool_t IsChecked () const
  More...
 
virtual void SetActive (Bool_t)
  More...
 
virtual void SetCheckBox (Bool_t=kTRUE)
  More...
 
virtual void SetCheckBoxPictures (const TGPicture *, const TGPicture *)
  More...
 
virtual void SetColor (Color_t)
  More...
 
virtual void SetPictures (const TGPicture *, const TGPicture *)
  More...
 
virtual void SetText (const char *)
  More...
 
virtual void SetTipText (const char *)
  More...
 
virtual void SetUserData (void *, Bool_t=kFALSE)
  More...
 
virtual void Toggle ()
 Item's check-box state has been toggled ... More...
 
- Public Member Functions inherited from TGListTreeItem
 TGListTreeItem (TGClient *client=gClient)
 Constructor. More...
 
virtual ~TGListTreeItem ()
  More...
 
virtual void CheckAllChildren (Bool_t=kTRUE)
  More...
 
virtual void CheckChildren (TGListTreeItem *, Bool_t)
  More...
 
TGListTreeItemGetFirstChild () const
  More...
 
TGListTreeItemGetLastChild () const
  More...
 
TGListTreeItemGetNextSibling () const
  More...
 
TGListTreeItemGetParent () const
  More...
 
virtual UInt_t GetPicWidth () const
 Return width of item's icon. More...
 
TGListTreeItemGetPrevSibling () const
  More...
 
virtual void HandleDrag ()
  More...
 
virtual void HandleDrop ()
  More...
 
virtual Bool_t HandlesDragAndDrop () const
  More...
 
virtual Bool_t HasCheckedChild (Bool_t=kFALSE)
  More...
 
virtual Bool_t HasUnCheckedChild (Bool_t=kFALSE)
  More...
 
Bool_t IsDNDSource () const
  More...
 
Bool_t IsDNDTarget () const
  More...
 
virtual Bool_t IsOpen () const
  More...
 
void Rename (const char *new_name)
  More...
 
virtual void SavePrimitive (std::ostream &, Option_t *, Int_t)
  More...
 
void SetDNDSource (Bool_t onoff)
  More...
 
void SetDNDTarget (Bool_t onoff)
  More...
 
virtual void SetOpen (Bool_t o)
  More...
 
virtual void UpdateState ()
  More...
 

Protected Member Functions

void NotSupported (const char *func) const
 Warn about access to function members that should never be called. More...
 

Protected Attributes

TEveElementfElement
  More...
 
- Protected Attributes inherited from TGListTreeItem
TGClientfClient
 pointer to TGClient More...
 
Int_t fDNDState
 EDNDFlags. More...
 
TGListTreeItemfFirstchild
 pointer to first child item More...
 
TGListTreeItemfLastchild
 pointer to last child item More...
 
TGListTreeItemfNextsibling
 pointer to next sibling More...
 
Bool_t fOpen
 true if item is open More...
 
TGListTreeItemfParent
 pointer to parent More...
 
TGListTreeItemfPrevsibling
 pointer to previous sibling More...
 
Int_t fY
  More...
 
Int_t fXtext
  More...
 
Int_t fYtext
  More...
 
UInt_t fHeight
  More...
 

Private Member Functions

 TEveListTreeItem (const TEveListTreeItem &)
  More...
 
TEveListTreeItemoperator= (const TEveListTreeItem &)
  More...
 

#include <TEveBrowser.h>

Inheritance diagram for TEveListTreeItem:
[legend]

Constructor & Destructor Documentation

◆ TEveListTreeItem() [1/2]

TEveListTreeItem::TEveListTreeItem ( const TEveListTreeItem )
private

◆ TEveListTreeItem() [2/2]

TEveListTreeItem::TEveListTreeItem ( TEveElement el)
inline

Definition at line 41 of file TEveBrowser.h.

◆ ~TEveListTreeItem()

virtual TEveListTreeItem::~TEveListTreeItem ( )
inlinevirtual

Definition at line 42 of file TEveBrowser.h.

Member Function Documentation

◆ CheckItem()

virtual void TEveListTreeItem::CheckItem ( Bool_t  = kTRUE)
inlinevirtual

Implements TGListTreeItem.

Definition at line 66 of file TEveBrowser.h.

◆ ClearColor()

virtual void TEveListTreeItem::ClearColor ( )
inlinevirtual

Reimplemented from TGListTreeItem.

Definition at line 76 of file TEveBrowser.h.

◆ GetActiveColor()

Pixel_t TEveListTreeItem::GetActiveColor ( ) const
virtual

Return highlight color corresponding to current state of TEveElement.

Implements TGListTreeItem.

Definition at line 68 of file TEveBrowser.cxx.

◆ GetCheckBoxPicture()

virtual const TGPicture* TEveListTreeItem::GetCheckBoxPicture ( ) const
inlinevirtual

Implements TGListTreeItem.

Definition at line 59 of file TEveBrowser.h.

◆ GetColor()

virtual Color_t TEveListTreeItem::GetColor ( ) const
inlinevirtual

Implements TGListTreeItem.

Definition at line 74 of file TEveBrowser.h.

◆ GetPicture()

virtual const TGPicture* TEveListTreeItem::GetPicture ( ) const
inlinevirtual

Implements TGListTreeItem.

Definition at line 58 of file TEveBrowser.h.

◆ GetText()

virtual const char* TEveListTreeItem::GetText ( ) const
inlinevirtual

Implements TGListTreeItem.

Definition at line 48 of file TEveBrowser.h.

◆ GetTextLength()

virtual Int_t TEveListTreeItem::GetTextLength ( ) const
inlinevirtual

Implements TGListTreeItem.

Definition at line 49 of file TEveBrowser.h.

◆ GetTipText()

virtual const char* TEveListTreeItem::GetTipText ( ) const
inlinevirtual

Implements TGListTreeItem.

Definition at line 50 of file TEveBrowser.h.

◆ GetTipTextLength()

virtual Int_t TEveListTreeItem::GetTipTextLength ( ) const
inlinevirtual

Implements TGListTreeItem.

Definition at line 51 of file TEveBrowser.h.

◆ GetUserData()

virtual void* TEveListTreeItem::GetUserData ( ) const
inlinevirtual

Implements TGListTreeItem.

Definition at line 56 of file TEveBrowser.h.

◆ HasCheckBox()

virtual Bool_t TEveListTreeItem::HasCheckBox ( ) const
inlinevirtual

Implements TGListTreeItem.

Definition at line 65 of file TEveBrowser.h.

◆ HasColor()

virtual Bool_t TEveListTreeItem::HasColor ( ) const
inlinevirtual

Implements TGListTreeItem.

Definition at line 73 of file TEveBrowser.h.

◆ IsActive()

virtual Bool_t TEveListTreeItem::IsActive ( ) const
inlinevirtual

Implements TGListTreeItem.

Definition at line 44 of file TEveBrowser.h.

◆ IsChecked()

virtual Bool_t TEveListTreeItem::IsChecked ( ) const
inlinevirtual

Implements TGListTreeItem.

Definition at line 68 of file TEveBrowser.h.

◆ NotSupported()

void TEveListTreeItem::NotSupported ( const char *  func) const
protected

Warn about access to function members that should never be called.

TGListTree calls them in cases that are not used by Eve.

Definition at line 60 of file TEveBrowser.cxx.

◆ operator=()

TEveListTreeItem& TEveListTreeItem::operator= ( const TEveListTreeItem )
private

◆ SetActive()

virtual void TEveListTreeItem::SetActive ( Bool_t  )
inlinevirtual

Reimplemented from TGListTreeItem.

Definition at line 46 of file TEveBrowser.h.

◆ SetCheckBox()

virtual void TEveListTreeItem::SetCheckBox ( Bool_t  = kTRUE)
inlinevirtual

Reimplemented from TGListTreeItem.

Definition at line 64 of file TEveBrowser.h.

◆ SetCheckBoxPictures()

virtual void TEveListTreeItem::SetCheckBoxPictures ( const TGPicture ,
const TGPicture  
)
inlinevirtual

Reimplemented from TGListTreeItem.

Definition at line 62 of file TEveBrowser.h.

◆ SetColor()

virtual void TEveListTreeItem::SetColor ( Color_t  )
inlinevirtual

Reimplemented from TGListTreeItem.

Definition at line 75 of file TEveBrowser.h.

◆ SetPictures()

virtual void TEveListTreeItem::SetPictures ( const TGPicture ,
const TGPicture  
)
inlinevirtual

Reimplemented from TGListTreeItem.

Definition at line 61 of file TEveBrowser.h.

◆ SetText()

virtual void TEveListTreeItem::SetText ( const char *  )
inlinevirtual

Reimplemented from TGListTreeItem.

Definition at line 52 of file TEveBrowser.h.

◆ SetTipText()

virtual void TEveListTreeItem::SetTipText ( const char *  )
inlinevirtual

Reimplemented from TGListTreeItem.

Definition at line 53 of file TEveBrowser.h.

◆ SetUserData()

virtual void TEveListTreeItem::SetUserData ( void ,
Bool_t  = kFALSE 
)
inlinevirtual

Reimplemented from TGListTreeItem.

Definition at line 55 of file TEveBrowser.h.

◆ Toggle()

void TEveListTreeItem::Toggle ( )
virtual

Item's check-box state has been toggled ...

forward to element's render-state.

Reimplemented from TGListTreeItem.

Definition at line 84 of file TEveBrowser.cxx.

Member Data Documentation

◆ fElement

TEveElement* TEveListTreeItem::fElement
protected

Definition at line 36 of file TEveBrowser.h.

Libraries for TEveListTreeItem:
[legend]

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