Logo ROOT   6.18/05
Reference Guide
TEveCompound.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_TEveCompound
13#define ROOT_TEveCompound
14
15#include "TEveElement.h"
16#include "TEveProjectionBases.h"
17
18
19//==============================================================================
20// TEveCompound
21//==============================================================================
22
24{
25private:
26 TEveCompound(const TEveCompound&); // Not implemented
27 TEveCompound& operator=(const TEveCompound&); // Not implemented
28
29protected:
30 Short_t fCompoundOpen; // If more than zero, tag new children as compound members.
31
32public:
33 TEveCompound(const char* n="TEveCompound", const char* t="",
34 Bool_t doColor=kTRUE, Bool_t doTransparency=kFALSE);
35 virtual ~TEveCompound() {}
36
39 Bool_t IsCompoundOpen() const { return fCompoundOpen > 0; }
40
41 virtual void SetMainColor(Color_t color);
42 virtual void SetMainTransparency(Char_t t);
43
44 virtual void AddElement(TEveElement* el);
45 virtual void RemoveElementLocal(TEveElement* el);
46 virtual void RemoveElementsLocal();
47
48 virtual void FillImpliedSelectedSet(Set_t& impSelSet);
49
50 virtual TClass* ProjectedClass(const TEveProjection* p) const;
51
52 ClassDef(TEveCompound, 0); // Container for managing compounds of TEveElements.
53};
54
55
56//==============================================================================
57// TEveCompoundProjected
58//==============================================================================
59
61 public TEveProjected
62{
63private:
64 TEveCompoundProjected(const TEveCompoundProjected&); // Not implemented
66
67public:
70
71 virtual void SetMainColor(Color_t color);
72
73 virtual void UpdateProjection() {}
74 virtual TEveElement* GetProjectedAsElement() { return this; }
75
76 ClassDef(TEveCompoundProjected, 0); // Projected TEveCompund container.
77};
78
79#endif
char Char_t
Definition: RtypesCore.h:29
const Bool_t kFALSE
Definition: RtypesCore.h:88
bool Bool_t
Definition: RtypesCore.h:59
short Short_t
Definition: RtypesCore.h:35
short Color_t
Definition: RtypesCore.h:79
const Bool_t kTRUE
Definition: RtypesCore.h:87
#define ClassDef(name, id)
Definition: Rtypes.h:326
TClass instances represent classes, structs and namespaces in the ROOT type system.
Definition: TClass.h:75
Description of TEveCompoundProjected.
Definition: TEveCompound.h:62
TEveCompoundProjected(const TEveCompoundProjected &)
TEveCompoundProjected()
Constructor.
virtual ~TEveCompoundProjected()
Definition: TEveCompound.h:69
virtual TEveElement * GetProjectedAsElement()
Returns this projected dynamic-casted to TEveElement.
Definition: TEveCompound.h:74
virtual void SetMainColor(Color_t color)
Revert back to the behaviour of TEveElement as color is propagated:
TEveCompoundProjected & operator=(const TEveCompoundProjected &)
virtual void UpdateProjection()
Definition: TEveCompound.h:73
Description of TEveCompound.
Definition: TEveCompound.h:24
void CloseCompound()
Definition: TEveCompound.h:38
virtual void RemoveElementLocal(TEveElement *el)
Decompoundofy el, call base-class version.
TEveCompound & operator=(const TEveCompound &)
virtual void RemoveElementsLocal()
Decompoundofy children, call base-class version.
Bool_t IsCompoundOpen() const
Definition: TEveCompound.h:39
virtual TClass * ProjectedClass(const TEveProjection *p) const
Virtual from TEveProjectable, returns TEveCompoundProjected class.
virtual ~TEveCompound()
Definition: TEveCompound.h:35
virtual void SetMainTransparency(Char_t t)
SetMainTransparency for the compound.
Short_t fCompoundOpen
Definition: TEveCompound.h:30
void OpenCompound()
Definition: TEveCompound.h:37
virtual void FillImpliedSelectedSet(Set_t &impSelSet)
Recurse on all children that are in this compound and call the base-class version.
virtual void SetMainColor(Color_t color)
SetMainColor for the compound.
TEveCompound(const TEveCompound &)
virtual void AddElement(TEveElement *el)
Call base-class implementation.
A list of TEveElements.
Definition: TEveElement.h:431
Base class for TEveUtil visualization elements, providing hierarchy management, rendering control and...
Definition: TEveElement.h:34
std::set< TEveElement * > Set_t
Definition: TEveElement.h:73
Abstract base class for classes that hold results of a non-linear projection transformation.
Base-class for non-linear projections.
const Int_t n
Definition: legend1.C:16