Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
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)
 
 ~TEveListTreeItem () override
 
void CheckItem (Bool_t=kTRUE) override
 
void ClearColor () override
 
Pixel_t GetActiveColor () const override
 Return highlight color corresponding to current state of TEveElement.
 
const TGPictureGetCheckBoxPicture () const override
 
Color_t GetColor () const override
 
const TGPictureGetPicture () const override
 
const char * GetText () const override
 
Int_t GetTextLength () const override
 
const char * GetTipText () const override
 
Int_t GetTipTextLength () const override
 
void * GetUserData () const override
 
Bool_t HasCheckBox () const override
 
Bool_t HasColor () const override
 
TClassIsA () const override
 
Bool_t IsActive () const override
 
Bool_t IsChecked () const override
 
void SetActive (Bool_t) override
 
void SetCheckBox (Bool_t=kTRUE) override
 
void SetCheckBoxPictures (const TGPicture *, const TGPicture *) override
 
void SetColor (Color_t) override
 
void SetPictures (const TGPicture *, const TGPicture *) override
 
void SetText (const char *) override
 
void SetTipText (const char *) override
 
void SetUserData (void *, Bool_t=kFALSE) override
 
void Streamer (TBuffer &) override
 
void StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b)
 
void Toggle () override
 Item's check-box state has been toggled ... forward to element's render-state.
 
- Public Member Functions inherited from TGListTreeItem
 TGListTreeItem (TGClient *client=(TGClient::Instance()))
 Constructor.
 
virtual ~TGListTreeItem ()
 
virtual void CheckAllChildren (Bool_t=kTRUE)
 
virtual void CheckChildren (TGListTreeItem *, Bool_t)
 
TGListTreeItemGetFirstChild () const
 
TGListTreeItemGetLastChild () const
 
TGListTreeItemGetNextSibling () const
 
TGListTreeItemGetParent () const
 
virtual UInt_t GetPicWidth () const
 Return width of item's icon.
 
TGListTreeItemGetPrevSibling () const
 
virtual void HandleDrag ()
 
virtual void HandleDrop ()
 
virtual Bool_t HandlesDragAndDrop () const
 
virtual Bool_t HasCheckedChild (Bool_t=kFALSE)
 
virtual Bool_t HasUnCheckedChild (Bool_t=kFALSE)
 
Bool_t IsDNDSource () const
 
Bool_t IsDNDTarget () const
 
virtual Bool_t IsOpen () const
 
void Rename (const char *new_name)
 
virtual void SavePrimitive (std::ostream &, Option_t *, Int_t)
 
void SetDNDSource (Bool_t onoff)
 
void SetDNDTarget (Bool_t onoff)
 
virtual void SetOpen (Bool_t o)
 
void StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b)
 
virtual void UpdateState ()
 

Static Public Member Functions

static TClassClass ()
 
static const char * Class_Name ()
 
static constexpr Version_t Class_Version ()
 
static const char * DeclFileName ()
 
- Static Public Member Functions inherited from TGListTreeItem
static TClassClass ()
 
static const char * Class_Name ()
 
static constexpr Version_t Class_Version ()
 
static const char * DeclFileName ()
 

Protected Member Functions

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

Protected Attributes

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

Private Member Functions

 TEveListTreeItem (const TEveListTreeItem &)
 
TEveListTreeItemoperator= (const TEveListTreeItem &)
 

#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()

TEveListTreeItem::~TEveListTreeItem ( )
inlineoverride

Definition at line 42 of file TEveBrowser.h.

Member Function Documentation

◆ CheckItem()

void TEveListTreeItem::CheckItem ( Bool_t  = kTRUE)
inlineoverridevirtual

Implements TGListTreeItem.

Definition at line 66 of file TEveBrowser.h.

◆ Class()

static TClass * TEveListTreeItem::Class ( )
static
Returns
TClass describing this class

◆ Class_Name()

static const char * TEveListTreeItem::Class_Name ( )
static
Returns
Name of this class

◆ Class_Version()

static constexpr Version_t TEveListTreeItem::Class_Version ( )
inlinestaticconstexpr
Returns
Version of this class

Definition at line 78 of file TEveBrowser.h.

◆ ClearColor()

void TEveListTreeItem::ClearColor ( )
inlineoverridevirtual

Reimplemented from TGListTreeItem.

Definition at line 76 of file TEveBrowser.h.

◆ DeclFileName()

static const char * TEveListTreeItem::DeclFileName ( )
inlinestatic
Returns
Name of the file containing the class declaration

Definition at line 78 of file TEveBrowser.h.

◆ GetActiveColor()

Pixel_t TEveListTreeItem::GetActiveColor ( ) const
overridevirtual

Return highlight color corresponding to current state of TEveElement.

Implements TGListTreeItem.

Definition at line 68 of file TEveBrowser.cxx.

◆ GetCheckBoxPicture()

const TGPicture * TEveListTreeItem::GetCheckBoxPicture ( ) const
inlineoverridevirtual

Implements TGListTreeItem.

Definition at line 59 of file TEveBrowser.h.

◆ GetColor()

Color_t TEveListTreeItem::GetColor ( ) const
inlineoverridevirtual

Implements TGListTreeItem.

Definition at line 74 of file TEveBrowser.h.

◆ GetPicture()

const TGPicture * TEveListTreeItem::GetPicture ( ) const
inlineoverridevirtual

Implements TGListTreeItem.

Definition at line 58 of file TEveBrowser.h.

◆ GetText()

const char * TEveListTreeItem::GetText ( ) const
inlineoverridevirtual

Implements TGListTreeItem.

Definition at line 48 of file TEveBrowser.h.

◆ GetTextLength()

Int_t TEveListTreeItem::GetTextLength ( ) const
inlineoverridevirtual

Implements TGListTreeItem.

Definition at line 49 of file TEveBrowser.h.

◆ GetTipText()

const char * TEveListTreeItem::GetTipText ( ) const
inlineoverridevirtual

Implements TGListTreeItem.

Definition at line 50 of file TEveBrowser.h.

◆ GetTipTextLength()

Int_t TEveListTreeItem::GetTipTextLength ( ) const
inlineoverridevirtual

Implements TGListTreeItem.

Definition at line 51 of file TEveBrowser.h.

◆ GetUserData()

void * TEveListTreeItem::GetUserData ( ) const
inlineoverridevirtual

Implements TGListTreeItem.

Definition at line 56 of file TEveBrowser.h.

◆ HasCheckBox()

Bool_t TEveListTreeItem::HasCheckBox ( ) const
inlineoverridevirtual

Implements TGListTreeItem.

Definition at line 65 of file TEveBrowser.h.

◆ HasColor()

Bool_t TEveListTreeItem::HasColor ( ) const
inlineoverridevirtual

Implements TGListTreeItem.

Definition at line 73 of file TEveBrowser.h.

◆ IsA()

TClass * TEveListTreeItem::IsA ( ) const
inlineoverridevirtual
Returns
TClass describing current object

Reimplemented from TGListTreeItem.

Definition at line 78 of file TEveBrowser.h.

◆ IsActive()

Bool_t TEveListTreeItem::IsActive ( ) const
inlineoverridevirtual

Implements TGListTreeItem.

Definition at line 44 of file TEveBrowser.h.

◆ IsChecked()

Bool_t TEveListTreeItem::IsChecked ( ) const
inlineoverridevirtual

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()

void TEveListTreeItem::SetActive ( Bool_t  )
inlineoverridevirtual

Reimplemented from TGListTreeItem.

Definition at line 46 of file TEveBrowser.h.

◆ SetCheckBox()

void TEveListTreeItem::SetCheckBox ( Bool_t  = kTRUE)
inlineoverridevirtual

Reimplemented from TGListTreeItem.

Definition at line 64 of file TEveBrowser.h.

◆ SetCheckBoxPictures()

void TEveListTreeItem::SetCheckBoxPictures ( const TGPicture ,
const TGPicture  
)
inlineoverridevirtual

Reimplemented from TGListTreeItem.

Definition at line 62 of file TEveBrowser.h.

◆ SetColor()

void TEveListTreeItem::SetColor ( Color_t  )
inlineoverridevirtual

Reimplemented from TGListTreeItem.

Definition at line 75 of file TEveBrowser.h.

◆ SetPictures()

void TEveListTreeItem::SetPictures ( const TGPicture ,
const TGPicture  
)
inlineoverridevirtual

Reimplemented from TGListTreeItem.

Definition at line 61 of file TEveBrowser.h.

◆ SetText()

void TEveListTreeItem::SetText ( const char *  )
inlineoverridevirtual

Reimplemented from TGListTreeItem.

Definition at line 52 of file TEveBrowser.h.

◆ SetTipText()

void TEveListTreeItem::SetTipText ( const char *  )
inlineoverridevirtual

Reimplemented from TGListTreeItem.

Definition at line 53 of file TEveBrowser.h.

◆ SetUserData()

void TEveListTreeItem::SetUserData ( void *  ,
Bool_t  = kFALSE 
)
inlineoverridevirtual

Reimplemented from TGListTreeItem.

Definition at line 55 of file TEveBrowser.h.

◆ Streamer()

void TEveListTreeItem::Streamer ( TBuffer )
overridevirtual

Reimplemented from TGListTreeItem.

◆ StreamerNVirtual()

void TEveListTreeItem::StreamerNVirtual ( TBuffer ClassDef_StreamerNVirtual_b)
inline

Definition at line 78 of file TEveBrowser.h.

◆ Toggle()

void TEveListTreeItem::Toggle ( )
overridevirtual

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:

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