ROOT  6.06/09
Reference Guide
Public Types | Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions | List of all members
TEveSecondarySelectable Class Reference

Semi-abstract interface for classes supporting secondary-selection.

Element class that inherits from this, should also implement the following virtual methods from TEveElement:

virtual void UnSelected();
virtual void UnHighlighted();

and clear corresponding selection-set from there.

To support tooltips for sub-elements, implement:

and return tooltip for the entry in the fHighlightedSet. There should always be a single entry there. See TEveDigitSet for an example.

Definition at line 22 of file TEveSecondarySelectable.h.

Public Types

typedef std::set< Int_tSelectionSet_t
 
typedef SelectionSet_t::iterator SelectionSet_i
 
typedef SelectionSet_t::const_iterator SelectionSet_ci
 

Public Member Functions

 TEveSecondarySelectable ()
 Constructor. More...
 
virtual ~TEveSecondarySelectable ()
 
Bool_t GetAlwaysSecSelect () const
 
void SetAlwaysSecSelect (Bool_t f)
 
const SelectionSet_tRefSelectedSet () const
 
const SelectionSet_tRefHighlightedSet () const
 
void ProcessGLSelection (TGLSelectRecord &rec)
 Process secondary GL selection and populate selected set accordingly. More...
 
 ClassDef (TEveSecondarySelectable, 0)
 

Protected Member Functions

void ProcessGLSelectionInternal (TGLSelectRecord &rec, SelectionSet_t &sset)
 Process secondary GL selection and populate given set accordingly. More...
 

Protected Attributes

Bool_t fAlwaysSecSelect
 
SelectionSet_t fSelectedSet
 
SelectionSet_t fHighlightedSet
 

Private Member Functions

 TEveSecondarySelectable (const TEveSecondarySelectable &)
 
TEveSecondarySelectableoperator= (const TEveSecondarySelectable &)
 

#include <TEveSecondarySelectable.h>

+ Inheritance diagram for TEveSecondarySelectable:
+ Collaboration diagram for TEveSecondarySelectable:

Member Typedef Documentation

typedef SelectionSet_t::const_iterator TEveSecondarySelectable::SelectionSet_ci

Definition at line 31 of file TEveSecondarySelectable.h.

typedef SelectionSet_t::iterator TEveSecondarySelectable::SelectionSet_i

Definition at line 30 of file TEveSecondarySelectable.h.

Definition at line 29 of file TEveSecondarySelectable.h.

Constructor & Destructor Documentation

TEveSecondarySelectable::TEveSecondarySelectable ( const TEveSecondarySelectable )
private
TEveSecondarySelectable::TEveSecondarySelectable ( )

Constructor.

Definition at line 43 of file TEveSecondarySelectable.cxx.

virtual TEveSecondarySelectable::~TEveSecondarySelectable ( )
inlinevirtual

Definition at line 44 of file TEveSecondarySelectable.h.

Member Function Documentation

TEveSecondarySelectable::ClassDef ( TEveSecondarySelectable  ,
 
)
Bool_t TEveSecondarySelectable::GetAlwaysSecSelect ( ) const
inline

Definition at line 46 of file TEveSecondarySelectable.h.

Referenced by TEveDigitSet::GetHighlightTooltip().

TEveSecondarySelectable& TEveSecondarySelectable::operator= ( const TEveSecondarySelectable )
private
void TEveSecondarySelectable::ProcessGLSelection ( TGLSelectRecord rec)

Process secondary GL selection and populate selected set accordingly.

Definition at line 51 of file TEveSecondarySelectable.cxx.

Referenced by TEveDigitSetGL::ProcessSelection().

void TEveSecondarySelectable::ProcessGLSelectionInternal ( TGLSelectRecord rec,
SelectionSet_t sset 
)
protected

Process secondary GL selection and populate given set accordingly.

Definition at line 62 of file TEveSecondarySelectable.cxx.

Referenced by ProcessGLSelection().

const SelectionSet_t& TEveSecondarySelectable::RefHighlightedSet ( ) const
inline

Definition at line 50 of file TEveSecondarySelectable.h.

Referenced by TEveDigitSetGL::DrawHighlight().

const SelectionSet_t& TEveSecondarySelectable::RefSelectedSet ( ) const
inline

Definition at line 49 of file TEveSecondarySelectable.h.

Referenced by TEveDigitSetGL::DrawHighlight().

void TEveSecondarySelectable::SetAlwaysSecSelect ( Bool_t  f)
inline

Definition at line 47 of file TEveSecondarySelectable.h.

Member Data Documentation

Bool_t TEveSecondarySelectable::fAlwaysSecSelect
protected

Definition at line 35 of file TEveSecondarySelectable.h.

Referenced by GetAlwaysSecSelect().

SelectionSet_t TEveSecondarySelectable::fHighlightedSet
protected
SelectionSet_t TEveSecondarySelectable::fSelectedSet
protected

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