CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Attributes
FWRepresentationInfo Class Reference

#include <Fireworks/Core/interface/FWRepresentationInfo.h>

Public Member Functions

unsigned int bitPackedViews () const
 
 FWRepresentationInfo (const std::string &iPurpose, unsigned int iProximity, unsigned int iBitPackedViews, bool iRepresentsSubPart)
 
 FWRepresentationInfo ()
 
bool isValid () const
 
unsigned int proximity () const
 measures how 'close' this representation is to the type in question, the large the number the farther away More...
 
const std::string & purpose () const
 
bool representsSubPart () const
 

Private Attributes

unsigned int m_bitPackedViews
 
unsigned int m_proximity
 
std::string m_purpose
 
bool m_representsSubPart
 

Detailed Description

Description: Collection of information about how a particular representation matches a data type

Usage: <usage>

Definition at line 29 of file FWRepresentationInfo.h.

Constructor & Destructor Documentation

FWRepresentationInfo::FWRepresentationInfo ( const std::string &  iPurpose,
unsigned int  iProximity,
unsigned int  iBitPackedViews,
bool  iRepresentsSubPart 
)
inline

Definition at line 32 of file FWRepresentationInfo.h.

32  :
33  m_purpose(iPurpose),
34  m_proximity(iProximity),
35  m_bitPackedViews(iBitPackedViews),
36  m_representsSubPart(iRepresentsSubPart){
37  }
FWRepresentationInfo::FWRepresentationInfo ( )
inline

Definition at line 38 of file FWRepresentationInfo.h.

38  :
39  m_purpose(),
40  m_proximity(0xFFFFFFFF),
42  m_representsSubPart(false) {
43  }

Member Function Documentation

unsigned int FWRepresentationInfo::bitPackedViews ( ) const
inline

Definition at line 62 of file FWRepresentationInfo.h.

References m_bitPackedViews.

62  {
63  return m_bitPackedViews;
64  }
bool FWRepresentationInfo::isValid ( void  ) const
inline

Definition at line 54 of file FWRepresentationInfo.h.

References m_purpose.

Referenced by FWTypeToRepresentations::add(), and FWTypeToRepresentations::representationsForType().

54  {
55  return !m_purpose.empty();
56  }
unsigned int FWRepresentationInfo::proximity ( ) const
inline

measures how 'close' this representation is to the type in question, the large the number the farther away

Definition at line 51 of file FWRepresentationInfo.h.

References m_proximity.

Referenced by FWDetailViewManager::findViewersFor().

51  {
52  return m_proximity;
53  }
const std::string& FWRepresentationInfo::purpose ( ) const
inline

Definition at line 47 of file FWRepresentationInfo.h.

References m_purpose.

47  {
48  return m_purpose;
49  }
bool FWRepresentationInfo::representsSubPart ( void  ) const
inline

Definition at line 58 of file FWRepresentationInfo.h.

References m_representsSubPart.

58  {
59  return m_representsSubPart;
60  }

Member Data Documentation

unsigned int FWRepresentationInfo::m_bitPackedViews
private

Definition at line 77 of file FWRepresentationInfo.h.

Referenced by bitPackedViews().

unsigned int FWRepresentationInfo::m_proximity
private

Definition at line 76 of file FWRepresentationInfo.h.

Referenced by proximity().

std::string FWRepresentationInfo::m_purpose
private

Definition at line 75 of file FWRepresentationInfo.h.

Referenced by isValid(), and purpose().

bool FWRepresentationInfo::m_representsSubPart
private

Definition at line 78 of file FWRepresentationInfo.h.

Referenced by representsSubPart().