Logo ROOT   6.16/01
Reference Guide
TEveSecondarySelectable.h
Go to the documentation of this file.
1// @(#)root/eve:$Id$
2// Author: Matevz Tadel 2007
3
4/*************************************************************************
5 * Copyright (C) 1995-2007, Rene Brun and Fons Rademakers. *
6 * All rights reserved. *
7 * *
8 * For the licensing terms see $ROOTSYS/LICENSE. *
9 * For the list of contributors see $ROOTSYS/README/CREDITS. *
10 *************************************************************************/
11
12#ifndef ROOT_TEveSecondarySelectable
13#define ROOT_TEveSecondarySelectable
14
15#include "Rtypes.h"
16
17#include <set>
18
19class TGLSelectRecord;
20
21
23{
24private:
27
28public:
29 typedef std::set<Int_t> SelectionSet_t;
30 typedef SelectionSet_t::iterator SelectionSet_i;
31 typedef SelectionSet_t::const_iterator SelectionSet_ci;
32
33
34protected:
35 Bool_t fAlwaysSecSelect; // Always do secondary-selection in GL.
36
37 SelectionSet_t fSelectedSet; // Selected indices.
38 SelectionSet_t fHighlightedSet; // Highlighted indices.
39
41
42public:
45
48
49 const SelectionSet_t& RefSelectedSet() const { return fSelectedSet; }
51
53
54 ClassDef(TEveSecondarySelectable, 0); // Semi-abstract interface for classes supporting secondary-selection.
55};
56
57#endif
#define f(i)
Definition: RSha256.hxx:104
bool Bool_t
Definition: RtypesCore.h:59
#define ClassDef(name, id)
Definition: Rtypes.h:324
Semi-abstract interface for classes supporting secondary-selection.
void ProcessGLSelectionInternal(TGLSelectRecord &rec, SelectionSet_t &sset)
Process secondary GL selection and populate given set accordingly.
const SelectionSet_t & RefHighlightedSet() const
TEveSecondarySelectable(const TEveSecondarySelectable &)
void ProcessGLSelection(TGLSelectRecord &rec)
Process secondary GL selection and populate selected set accordingly.
SelectionSet_t::iterator SelectionSet_i
TEveSecondarySelectable & operator=(const TEveSecondarySelectable &)
const SelectionSet_t & RefSelectedSet() const
SelectionSet_t::const_iterator SelectionSet_ci
Standard selection record including information about containing scene and details ob out selected ob...