CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
FWRepresentationInfo.h
Go to the documentation of this file.
1 #ifndef Fireworks_Core_FWRepresentationInfo_h
2 #define Fireworks_Core_FWRepresentationInfo_h
3 // -*- C++ -*-
4 //
5 // Package: Core
6 // Class : FWRepresentationInfo
7 //
16 //
17 // Original Author: Chris Jones
18 // Created: Tue Nov 11 13:12:28 EST 2008
19 // $Id: FWRepresentationInfo.h,v 1.4 2010/06/02 22:55:42 chrjones Exp $
20 //
21 
22 // system include files
23 #include <string>
24 
25 // user include files
26 
27 // forward declarations
28 
30 
31 public:
32  FWRepresentationInfo(const std::string& iPurpose, unsigned int iProximity, unsigned int iBitPackedViews, bool iRepresentsSubPart) :
33  m_purpose(iPurpose),
34  m_proximity(iProximity),
35  m_bitPackedViews(iBitPackedViews),
36  m_representsSubPart(iRepresentsSubPart){
37  }
39  m_purpose(),
40  m_proximity(0xFFFFFFFF),
43  }
44  //virtual ~FWRepresentationInfo();
45 
46  // ---------- const member functions ---------------------
47  const std::string& purpose() const {
48  return m_purpose;
49  }
51  unsigned int proximity() const {
52  return m_proximity;
53  }
54  bool isValid() const {
55  return !m_purpose.empty();
56  }
57 
58  bool representsSubPart() const {
59  return m_representsSubPart;
60  }
61 
62  unsigned int bitPackedViews() const {
63  return m_bitPackedViews;
64  }
65  // ---------- static member functions --------------------
66 
67  // ---------- member functions ---------------------------
68 
69 private:
70  //FWRepresentationInfo(const FWRepresentationInfo&); // stop default
71 
72  //const FWRepresentationInfo& operator=(const FWRepresentationInfo&); // stop default
73 
74  // ---------- member data --------------------------------
75  std::string m_purpose;
76  unsigned int m_proximity;
77  unsigned int m_bitPackedViews;
79 
80 };
81 
82 
83 #endif
unsigned int proximity() const
measures how &#39;close&#39; this representation is to the type in question, the large the number the farther...
bool representsSubPart() const
unsigned int bitPackedViews() const
const std::string & purpose() const
FWRepresentationInfo(const std::string &iPurpose, unsigned int iProximity, unsigned int iBitPackedViews, bool iRepresentsSubPart)