CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups 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 //
20 
21 // system include files
22 #include <string>
23 
24 // user include files
25 
26 // forward declarations
27 
29 public:
31  unsigned int iProximity,
32  unsigned int iBitPackedViews,
33  bool iRepresentsSubPart,
34  bool iRequiresFF)
35  : m_purpose(iPurpose),
36  m_proximity(iProximity),
37  m_bitPackedViews(iBitPackedViews),
38  m_representsSubPart(iRepresentsSubPart),
39  m_requiresFF(iRequiresFF) {}
40 
43 
44  // ---------- const member functions ---------------------
45 
46  const std::string& purpose() const { return m_purpose; }
47 
49  unsigned int proximity() const { return m_proximity; }
50 
51  bool isValid() const { return !m_purpose.empty(); }
52 
53  bool representsSubPart() const { return m_representsSubPart; }
54 
55  bool requiresFF() const { return m_requiresFF; }
56 
57  unsigned int bitPackedViews() const { return m_bitPackedViews; }
58 
59  // ---------- static member functions --------------------
60 
61  // ---------- member functions ---------------------------
62 
63 private:
64  //FWRepresentationInfo(const FWRepresentationInfo&); // stop default
65 
66  //const FWRepresentationInfo& operator=(const FWRepresentationInfo&); // stop default
67 
68  // ---------- member data --------------------------------
70  unsigned int m_proximity;
71  unsigned int m_bitPackedViews;
72 
75 };
76 
77 #endif
unsigned int proximity() const
measures how &#39;close&#39; this representation is to the type in question, the large the number the farther...
FWRepresentationInfo(const std::string &iPurpose, unsigned int iProximity, unsigned int iBitPackedViews, bool iRepresentsSubPart, bool iRequiresFF)
bool representsSubPart() const
unsigned int bitPackedViews() const
const std::string & purpose() const