CMS 3D CMS Logo

Public Member Functions | Private Attributes

FWRepresentationInfo Class Reference

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

List of all members.

Public Member Functions

unsigned int bitPackedViews () const
 FWRepresentationInfo ()
 FWRepresentationInfo (const std::string &iPurpose, unsigned int iProximity, unsigned int iBitPackedViews, bool iRepresentsSubPart)
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
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.

                                                                                                                                   :
      m_purpose(iPurpose),
      m_proximity(iProximity),
      m_bitPackedViews(iBitPackedViews),
      m_representsSubPart(iRepresentsSubPart){
   }
FWRepresentationInfo::FWRepresentationInfo ( ) [inline]

Definition at line 38 of file FWRepresentationInfo.h.

                          :
      m_purpose(),
      m_proximity(0xFFFFFFFF),
      m_bitPackedViews(0),
      m_representsSubPart(false) {
   }

Member Function Documentation

unsigned int FWRepresentationInfo::bitPackedViews ( ) const [inline]

Definition at line 62 of file FWRepresentationInfo.h.

References m_bitPackedViews.

                                       {
      return m_bitPackedViews;
   }
bool FWRepresentationInfo::isValid ( void  ) const [inline]

Definition at line 54 of file FWRepresentationInfo.h.

References m_purpose.

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

                        {
      return !m_purpose.empty();
   }
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().

                                  {
      return m_proximity;
   }
const std::string& FWRepresentationInfo::purpose ( ) const [inline]

Definition at line 47 of file FWRepresentationInfo.h.

References m_purpose.

                                    {
      return m_purpose;
   }
bool FWRepresentationInfo::representsSubPart ( void  ) const [inline]

Definition at line 58 of file FWRepresentationInfo.h.

References m_representsSubPart.

                                  {
      return m_representsSubPart;
   }

Member Data Documentation

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().

Definition at line 78 of file FWRepresentationInfo.h.

Referenced by representsSubPart().