CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 // $Id: FWViewGeometryList.h,v 1.4 2010/09/28 11:39:50 amraktad Exp $
20 //
21 
22 #include "sigc++/connection.h"
23 
24 #include "TEveElement.h"
26 
27 class TGeoMatrix;
28 class TEveCompound;
29 class FWGeometry;
30 
31 namespace fireworks {
32  class Context;
33 }
34 
35 class FWViewGeometryList: public TEveElementList
36 {
37 public:
38  FWViewGeometryList( const fireworks::Context& context, bool projected = true );
39  virtual ~FWViewGeometryList();
40 
41  void updateColors();
42  void updateTransparency(bool projectedType);
43 
44 protected:
46  const FWGeometry* m_geom; // cached
47 
48  TEveCompound* m_colorComp[kFWGeomColorSize];
49 
50  void addToCompound(TEveElement* el, FWGeomColorIndex idx, bool applyTransp = true) const ;
51 
52 private:
53  FWViewGeometryList(const FWViewGeometryList&); // stop default
54 
55  const FWViewGeometryList& operator=(const FWViewGeometryList&); // stop default
56 
57  // ---------- member data --------------------------------
58  sigc::connection m_transpConnection;
59  sigc::connection m_colorConnection;
60  bool m_projected; // needed for transparency
61 };
62 
63 
64 #endif
TEveCompound * m_colorComp[kFWGeomColorSize]
FWGeomColorIndex
FWViewGeometryList(const fireworks::Context &context, bool projected=true)
void updateTransparency(bool projectedType)
void addToCompound(TEveElement *el, FWGeomColorIndex idx, bool applyTransp=true) const
const FWGeometry * m_geom
tuple idx
DEBUGGING if hasattr(process,"trackMonIterativeTracking2012"): print "trackMonIterativeTracking2012 D...
const FWViewGeometryList & operator=(const FWViewGeometryList &)
sigc::connection m_transpConnection
sigc::connection m_colorConnection
const fireworks::Context & m_context