CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 // $Id: FWViewType.h,v 1.22 2012/02/22 03:45:57 amraktad Exp $
20 //
21 #include <string>
22 
24 {
25 public:
27  {
28  public:
30  };
31 
33 
39 
40  enum EBit
41  {
42  k3DBit = 1 << k3D,
44  kRhoZBit = 1 << kRhoZ,
46  kISpyBit = 1 << kISpy,
47  kLegoBit = 1 << kLego,
51  kTableBit = 1 << kTable,
56  };
57 
58  // shortcuts
59  static const int kAllRPZBits;
60  static const int kAll3DBits;
61  static const int kAllLegoBits;
62 
63  static std::string sName[kTypeSize];
64 
65  static const std::string& idToName(int);
66  static bool isProjected(int);
67  static bool isLego(int);
68 
69  static const std::string& checkNameWithViewVersion(const std::string& name, unsigned int viewVersion);
70 
72  virtual ~FWViewType();
73 
74  const std::string& name() const;
75  EType id() const;
76 
77 
78 private:
79  const EType m_id;
80 };
81 
82 #endif
static static_initializer init_statics
Definition: FWViewType.h:32
static const int kAllRPZBits
Definition: FWViewType.h:59
FWViewType(EType)
Definition: FWViewType.cc:58
static const int kAll3DBits
Definition: FWViewType.h:60
const EType m_id
Definition: FWViewType.h:79
virtual ~FWViewType()
Definition: FWViewType.cc:63
const std::string & name() const
Definition: FWViewType.cc:75
static bool isProjected(int)
Definition: FWViewType.cc:129
static std::string sName[kTypeSize]
Definition: FWViewType.h:63
EType id() const
Definition: FWViewType.cc:82
static const std::string & checkNameWithViewVersion(const std::string &name, unsigned int viewVersion)
Definition: FWViewType.cc:103
static const int kAllLegoBits
Definition: FWViewType.h:61
static bool isLego(int)
Definition: FWViewType.cc:136
static const std::string & idToName(int)
Definition: FWViewType.cc:90