CMS 3D CMS Logo

FWViewGeometryList.h
Go to the documentation of this file.
1 #ifndef Fireworks_Core_FWViewGeometryList_h
2 #define Fireworks_Core_FWViewGeometryList_h
3 // -*- C++ -*-
4 //
5 // Package: Core
6 // Class : FWViewGeometryList
7 //
16 //
17 // Original Author: Alja Mrak-Tadel
18 // Created: Tue Sep 14 13:28:39 CEST 2010
19 //
20 
21 #include "sigc++/connection.h"
22 
23 #include "TEveElement.h"
25 
26 class TGeoMatrix;
27 class TEveCompound;
28 class FWGeometry;
29 
30 namespace fireworks {
31  class Context;
32 }
33 
34 class FWViewGeometryList : public TEveElementList {
35 public:
36  FWViewGeometryList(const fireworks::Context& context, bool projected = true);
37  ~FWViewGeometryList() override;
38 
39  void updateColors();
40  void updateTransparency(bool projectedType);
41 
42 protected:
44  const FWGeometry* m_geom; // cached
45 
46  TEveCompound* m_colorComp[kFWGeomColorSize];
47 
48  void addToCompound(TEveElement* el, FWGeomColorIndex idx, bool applyTransp = true) const;
49 
50 private:
51  FWViewGeometryList(const FWViewGeometryList&) = delete; // stop default
52 
53  const FWViewGeometryList& operator=(const FWViewGeometryList&) = delete; // stop default
54 
55  // ---------- member data --------------------------------
56  sigc::connection m_transpConnection;
57  sigc::connection m_colorConnection;
58  bool m_projected; // needed for transparency
59 };
60 
61 #endif
FWViewGeometryList::m_geom
const FWGeometry * m_geom
Definition: FWViewGeometryList.h:44
fireworks::Context
Definition: Context.h:41
FWGeometry
Definition: FWGeometry.h:27
FWViewGeometryList::m_context
const fireworks::Context & m_context
Definition: FWViewGeometryList.h:43
Context
FWViewGeometryList::m_colorConnection
sigc::connection m_colorConnection
Definition: FWViewGeometryList.h:57
heavyIonCSV_trainingSettings.idx
idx
Definition: heavyIonCSV_trainingSettings.py:5
visDQMUpload.context
context
Definition: visDQMUpload.py:37
FWColorManager.h
FWViewGeometryList::FWViewGeometryList
FWViewGeometryList(const fireworks::Context &context, bool projected=true)
Definition: FWViewGeometryList.cc:22
FWViewGeometryList::m_projected
bool m_projected
Definition: FWViewGeometryList.h:58
FWViewGeometryList::m_transpConnection
sigc::connection m_transpConnection
Definition: FWViewGeometryList.h:56
FWViewGeometryList::updateColors
void updateColors()
Definition: FWViewGeometryList.cc:57
FWViewGeometryList::updateTransparency
void updateTransparency(bool projectedType)
Definition: FWViewGeometryList.cc:66
FWViewGeometryList
Definition: FWViewGeometryList.h:34
kFWGeomColorSize
Definition: FWColorManager.h:42
fireworks
Definition: FWTauProxyBuilderBase.h:35
FWViewGeometryList::operator=
const FWViewGeometryList & operator=(const FWViewGeometryList &)=delete
FWGeomColorIndex
FWGeomColorIndex
Definition: FWColorManager.h:32
FWViewGeometryList::~FWViewGeometryList
~FWViewGeometryList() override
Definition: FWViewGeometryList.cc:39
FWViewGeometryList::m_colorComp
TEveCompound * m_colorComp[kFWGeomColorSize]
Definition: FWViewGeometryList.h:46
FWViewGeometryList::addToCompound
void addToCompound(TEveElement *el, FWGeomColorIndex idx, bool applyTransp=true) const
Definition: FWViewGeometryList.cc:48