CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
FWOverlapTableManager.h
Go to the documentation of this file.
1 #ifndef Fireworks_Core_FWOverlapTableManager_h
2 #define Fireworks_Core_FWOverlapTableManager_h
3 // -*- C++ -*-
4 //
5 // Package: Core
6 // Class : FWOverlapTableManager
7 //
16 //
17 // Original Author:
18 // Created: Wed Jan 4 20:34:38 CET 2012
19 // $Id: FWOverlapTableManager.h,v 1.4 2012/04/25 06:09:35 amraktad Exp $
20 //
21 
23 #include "TGeoMatrix.h"
24 #include "TGeoNode.h"
25 #include "TGeoOverlap.h"
26 #include <map>
27 
28 
29 class FWOverlapTableView;
30 class TGeoOverlap;
31 class TGeoIterator;
32 
34 {
35 public:
37  {
38  kVisMarker = BIT(5),
39  kOverlap = BIT(6),
40  kOverlapChild = BIT(7)
41  };
43  virtual ~FWOverlapTableManager();
44 
45  virtual void recalculateVisibility();
46  virtual void recalculateVisibilityNodeRec(int);
47  void importOverlaps(std::string path, double precision);
48  virtual int numberOfColumns() const {return 7;}
49 
50  virtual std::vector<std::string> getTitles() const;
51 
52  FWTableCellRendererBase* cellRenderer(int iSortedRowNumber, int iCol) const;
53 
54  void getOverlapTitles(int,TString&) const;
55  void printOverlaps(int) const;
56 
57  void setDaughtersSelfVisibility(int i, bool v);
58 protected:
59  virtual bool nodeIsParent(const NodeInfo&) const;
60  // virtual const char* cellName(const NodeInfo& data) const;
61 
62 private:
63  FWOverlapTableManager(const FWOverlapTableManager&); // stop default
64  const FWOverlapTableManager& operator=(const FWOverlapTableManager&); // stop default
65 
66  void addOverlapEntry(TGeoOverlap*, int, int , TGeoHMatrix*);
68 
69  std::multimap<int, int> m_mapNodeOverlaps;
70 };
71 
72 
73 #endif
int i
Definition: DBlmapReader.cc:9
std::multimap< int, int > m_mapNodeOverlaps
const FWOverlapTableManager & operator=(const FWOverlapTableManager &)
void addOverlapEntry(TGeoOverlap *, int, int, TGeoHMatrix *)
list path
Definition: scaleCards.py:51
virtual void recalculateVisibilityNodeRec(int)
void getOverlapTitles(int, TString &) const
virtual std::vector< std::string > getTitles() const
returns the title names for each column
FWTableCellRendererBase * cellRenderer(int iSortedRowNumber, int iCol) const
FWOverlapTableManager(FWOverlapTableView *)
virtual void recalculateVisibility()
void setDaughtersSelfVisibility(int i, bool v)
virtual int numberOfColumns() const
Number of columns in the table.
mathSSE::Vec4< T > v
virtual bool nodeIsParent(const NodeInfo &) const
void importOverlaps(std::string path, double precision)
FWOverlapTableView * m_browser