CMS 3D CMS Logo

FWViewType.h
Go to the documentation of this file.
1 #ifndef Fireworks_Core_FWViewType_h
2 #define Fireworks_Core_FWViewType_h
3 // -*- C++ -*-
4 //
5 // Package: Core
6 // Class : FWViewType
7 //
16 //
17 // Original Author: Alja Mrak-Tadel
18 // Created: Mon Mar 22 12:08:40 CET 2010
19 //
20 #include <string>
21 
23 {
24 public:
26  {
27  public:
29  };
30 
32 
38 
39  enum EBit
40  {
41  k3DBit = 1 << k3D,
43  kRhoZBit = 1 << kRhoZ,
45  kISpyBit = 1 << kISpy,
46  kLegoBit = 1 << kLego,
50  kTableBit = 1 << kTable,
55  };
56 
57  // shortcuts
58  static const int kAllRPZBits;
59  static const int kAll3DBits;
60  static const int kAllLegoBits;
61 
63 
64  static const std::string& idToName(int);
65  static bool isProjected(int);
66  static bool isLego(int);
67 
68  static const std::string& checkNameWithViewVersion(const std::string& name, unsigned int viewVersion);
69 
71  virtual ~FWViewType();
72 
73  const std::string& name() const;
74  EType id() const;
75 
76 
77 private:
78  const EType m_id;
79 };
80 
81 #endif
static static_initializer init_statics
Definition: FWViewType.h:31
static const int kAllRPZBits
Definition: FWViewType.h:58
FWViewType(EType)
Definition: FWViewType.cc:57
static const int kAll3DBits
Definition: FWViewType.h:59
const EType m_id
Definition: FWViewType.h:78
virtual ~FWViewType()
Definition: FWViewType.cc:62
const std::string & name() const
Definition: FWViewType.cc:74
static bool isProjected(int)
Definition: FWViewType.cc:128
static std::string sName[kTypeSize]
Definition: FWViewType.h:62
EType id() const
Definition: FWViewType.cc:81
static const std::string & checkNameWithViewVersion(const std::string &name, unsigned int viewVersion)
Definition: FWViewType.cc:102
static const int kAllLegoBits
Definition: FWViewType.h:60
static bool isLego(int)
Definition: FWViewType.cc:135
static const std::string & idToName(int)
Definition: FWViewType.cc:89