FWViewGeometryList

Macros

Line Code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62
#ifndef Fireworks_Core_FWViewGeometryList_h
#define Fireworks_Core_FWViewGeometryList_h
// -*- C++ -*-
//
// Package:     Core
// Class  :     FWViewGeometryList
//
/**\class FWViewGeometryList FWViewGeometryList.h Fireworks/Core/interface/FWViewGeometryList.h

 Description: [one line class summary]

 Usage:
    <usage>

*/
//
// Original Author:  Alja Mrak-Tadel
//         Created:  Tue Sep 14 13:28:39 CEST 2010
//

#include "sigc++/connection.h"

#include "TEveElement.h"
#include "Fireworks/Core/interface/FWColorManager.h"

class TGeoMatrix;
class TEveCompound;
class FWGeometry;

namespace fireworks {
  class Context;
}

class FWViewGeometryList : public TEveElementList {
public:
  FWViewGeometryList(const fireworks::Context& context, bool projected = true);
  ~FWViewGeometryList() override;

  void updateColors();
  void updateTransparency(bool projectedType);

protected:
  const fireworks::Context& m_context;
  const FWGeometry* m_geom;  // cached

  TEveCompound* m_colorComp[kFWGeomColorSize];

  void addToCompound(TEveElement* el, FWGeomColorIndex idx, bool applyTransp = true) const;

public:
  FWViewGeometryList(const FWViewGeometryList&) = delete;  // stop default

  const FWViewGeometryList& operator=(const FWViewGeometryList&) = delete;  // stop default

private:
  // ---------- member data --------------------------------
  sigc::connection m_transpConnection;
  sigc::connection m_colorConnection;
  bool m_projected;  // needed for transparency
};

#endif