DecoratorSDK::Facilities Class Reference

#include <DecoratorUtil.h>

Collaboration diagram for DecoratorSDK::Facilities:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 Facilities ()
 ~Facilities ()
bool loadPathes (IMgaProject *pProject, bool bRefresh=false)
bool arePathesValid () const
std::vector< CString > getPathes (void) const
Gdiplus::Graphics * getGraphics (void) const
CDC * getCDC (void)
BitmapBasegetBitmap (const CString &strName)
BitmapBasegetBitmapT (const CString &strName, COLORREF crTransparent)
BitmapBasegetBitmapB (const CString &strName, COLORREF crBackground)
BitmapBasegetBitmapTB (const CString &strName, COLORREF crTransparent, COLORREF crBackground)
BitmapBasegetMaskedBitmap (const CString &strName, COLORREF crTransparent, COLORREF crBackground)
BitmapBasegetMaskedBitmap (UINT nResID, COLORREF crTransparent, COLORREF crBackground)
void addTileVector (const CString &strName, TileVector *vecTiles)
TileVectorgetTileVector (const CString &strName) const
void createFont (int iFontKey, const CString &strKind, int iBoldness, bool bItalics, int iSize)
GdipFontGetFont (int iFontKey) const
Gdiplus::Pen * GetPen (COLORREF crColor, int iWidth=1)
Gdiplus::SolidBrush * GetBrush (COLORREF crColor)
bool getPreference (CComPtr< IMgaFCO > spFCO, const CString &strName, CString &strValue) const
bool getPreference (CComPtr< IMgaFCO > spFCO, const CString &strName, long &lValue, bool bInHexa=false) const
bool getPreference (CComPtr< IMgaFCO > spFCO, const CString &strName, COLORREF &crValue) const
bool getPreference (CComPtr< IMgaFCO > spFCO, const CString &strName, ELocation &eValue) const
bool getPreference (CComPtr< IMgaFCO > spFCO, const CString &strName, bool &bValue) const
bool getPreference (CComPtr< IMgaMetaFCO > spMetaFCO, const CString &strName, CString &strValue) const
bool getPreference (CComPtr< IMgaMetaFCO > spMetaFCO, const CString &strName, long &lValue, bool bInHexa=false) const
bool getPreference (CComPtr< IMgaMetaFCO > spMetaFCO, const CString &strName, COLORREF &crValue) const
bool getPreference (CComPtr< IMgaMetaFCO > spMetaFCO, const CString &strName, ELocation &eValue) const
bool getPreference (CComPtr< IMgaMetaFCO > spMetaFCO, const CString &strName, bool &bValue) const
bool getPreference (CComPtr< IMgaFCO > spFCO, CComPtr< IMgaMetaFCO > spMetaFCO, const CString &strName, CString &strValue) const
bool getPreference (CComPtr< IMgaFCO > spFCO, CComPtr< IMgaMetaFCO > spMetaFCO, const CString &strName, long &lValue, bool bInHexa=false) const
bool getPreference (CComPtr< IMgaFCO > spFCO, CComPtr< IMgaMetaFCO > spMetaFCO, const CString &strName, COLORREF &crValue) const
bool getPreference (CComPtr< IMgaFCO > spFCO, CComPtr< IMgaMetaFCO > spMetaFCO, const CString &strName, ELocation &eValue) const
bool getPreference (CComPtr< IMgaFCO > spFCO, CComPtr< IMgaMetaFCO > spMetaFCO, const CString &strName, bool &bValue) const
EPrefStatus getPreferenceStatus (CComPtr< IMgaFCO > spFCO, const CString &strName) const
bool getAttribute (CComPtr< IMgaFCO > spFCO, const CString &strName, CString &strValue) const
bool getAttribute (CComPtr< IMgaFCO > spFCO, const CString &strName, bool &bValue) const
bool getAttribute (CComPtr< IMgaFCO > spFCO, const CString &strName, long &lValue) const
bool getAttribute (CComPtr< IMgaFCO > spFCO, const CString &strName, double &fValue) const
bool setAttribute (CComPtr< IMgaFCO > spFCO, const CString &strName, const CString &strValue) const
bool setAttribute (CComPtr< IMgaFCO > spFCO, const CString &strName, bool bValue) const
bool setAttribute (CComPtr< IMgaFCO > spFCO, const CString &strName, long lValue) const
bool setAttribute (CComPtr< IMgaFCO > spFCO, const CString &strName, double fValue) const
bool getMetaFCO (const CComPtr< IMgaMetaPart > &metaPart, CComPtr< IMgaMetaFCO > &metaFco) const
CSize MeasureText (Gdiplus::Graphics *gdip, GdipFont *pFont, const CString &strText) const
CSize MeasureText (Gdiplus::Graphics *gdip, Gdiplus::Font *pFont, const CString &strText) const
void DrawString (Gdiplus::Graphics *gdip, const CString &strText, const CRect &crBounds, GdipFont *pFont, COLORREF crColor, int iAlign, int iLength=-1, const CString &strPre="", const CString &strPost="", bool bPeriods=true) const
void DrawString (Gdiplus::Graphics *gdip, const CString &strText, const CRect &crBounds, Gdiplus::Font *pFont, COLORREF crColor, int iAlign, int iLength=-1, const CString &strPre="", const CString &strPost="", bool bPeriods=true) const
void DrawRect (Gdiplus::Graphics *gdip, const CRect &cRect, COLORREF crColor, int iWidth=1, bool bRoundRect=false, int iCornerRadius=0) const
void DrawBox (Gdiplus::Graphics *gdip, const CRect &cRect, COLORREF crColor, int iDepth, bool bRoundRect=false, int iCornerRadius=0) const
COLORREF ShiftColor (COLORREF crColor, int iShift) const
double Deg2Rad (long deg) const
std::vector< CString > wrapString (const CString &str, int iWrap, int iMax) const
CString getStereotyped (const CString &str) const

Detailed Description

Definition at line 40 of file DecoratorUtil.h.


Constructor & Destructor Documentation

DecoratorSDK::Facilities::Facilities (  ) 

Definition at line 121 of file DecoratorUtil.cpp.

DecoratorSDK::Facilities::~Facilities (  ) 

Definition at line 199 of file DecoratorUtil.cpp.


Member Function Documentation

void DecoratorSDK::Facilities::addTileVector ( const CString &  strName,
TileVector vecTiles 
)

Definition at line 704 of file DecoratorUtil.cpp.

bool DecoratorSDK::Facilities::arePathesValid (  )  const

Definition at line 236 of file DecoratorUtil.cpp.

void DecoratorSDK::Facilities::createFont ( int  iFontKey,
const CString &  strKind,
int  iBoldness,
bool  bItalics,
int  iSize 
)

Definition at line 718 of file DecoratorUtil.cpp.

double DecoratorSDK::Facilities::Deg2Rad ( long  deg  )  const

Definition at line 1138 of file DecoratorUtil.cpp.

void DecoratorSDK::Facilities::DrawBox ( Gdiplus::Graphics *  gdip,
const CRect &  cRect,
COLORREF  crColor,
int  iDepth,
bool  bRoundRect = false,
int  iCornerRadius = 0 
) const

Definition at line 896 of file DecoratorUtil.cpp.

void DecoratorSDK::Facilities::DrawRect ( Gdiplus::Graphics *  gdip,
const CRect &  cRect,
COLORREF  crColor,
int  iWidth = 1,
bool  bRoundRect = false,
int  iCornerRadius = 0 
) const

Definition at line 871 of file DecoratorUtil.cpp.

void DecoratorSDK::Facilities::DrawString ( Gdiplus::Graphics *  gdip,
const CString &  strText,
const CRect &  crBounds,
Gdiplus::Font *  pFont,
COLORREF  crColor,
int  iAlign,
int  iLength = -1,
const CString &  strPre = "",
const CString &  strPost = "",
bool  bPeriods = true 
) const

Definition at line 808 of file DecoratorUtil.cpp.

void DecoratorSDK::Facilities::DrawString ( Gdiplus::Graphics *  gdip,
const CString &  strText,
const CRect &  crBounds,
GdipFont pFont,
COLORREF  crColor,
int  iAlign,
int  iLength = -1,
const CString &  strPre = "",
const CString &  strPost = "",
bool  bPeriods = true 
) const

Definition at line 802 of file DecoratorUtil.cpp.

bool DecoratorSDK::Facilities::getAttribute ( CComPtr< IMgaFCO >  spFCO,
const CString &  strName,
double &  fValue 
) const

Definition at line 456 of file DecoratorUtil.cpp.

bool DecoratorSDK::Facilities::getAttribute ( CComPtr< IMgaFCO >  spFCO,
const CString &  strName,
long &  lValue 
) const

Definition at line 438 of file DecoratorUtil.cpp.

bool DecoratorSDK::Facilities::getAttribute ( CComPtr< IMgaFCO >  spFCO,
const CString &  strName,
bool &  bValue 
) const

Definition at line 418 of file DecoratorUtil.cpp.

bool DecoratorSDK::Facilities::getAttribute ( CComPtr< IMgaFCO >  spFCO,
const CString &  strName,
CString &  strValue 
) const

Definition at line 396 of file DecoratorUtil.cpp.

BitmapBase * DecoratorSDK::Facilities::getBitmap ( const CString &  strName  ) 

Definition at line 674 of file DecoratorUtil.cpp.

BitmapBase * DecoratorSDK::Facilities::getBitmapB ( const CString &  strName,
COLORREF  crBackground 
)

Definition at line 684 of file DecoratorUtil.cpp.

BitmapBase * DecoratorSDK::Facilities::getBitmapT ( const CString &  strName,
COLORREF  crTransparent 
)

Definition at line 679 of file DecoratorUtil.cpp.

BitmapBase * DecoratorSDK::Facilities::getBitmapTB ( const CString &  strName,
COLORREF  crTransparent,
COLORREF  crBackground 
)

Definition at line 689 of file DecoratorUtil.cpp.

Gdiplus::SolidBrush * DecoratorSDK::Facilities::GetBrush ( COLORREF  crColor  ) 

Definition at line 768 of file DecoratorUtil.cpp.

CDC * DecoratorSDK::Facilities::getCDC ( void   ) 

Definition at line 251 of file DecoratorUtil.cpp.

GdipFont * DecoratorSDK::Facilities::GetFont ( int  iFontKey  )  const

Definition at line 750 of file DecoratorUtil.cpp.

Gdiplus::Graphics * DecoratorSDK::Facilities::getGraphics ( void   )  const

Definition at line 246 of file DecoratorUtil.cpp.

BitmapBase * DecoratorSDK::Facilities::getMaskedBitmap ( UINT  nResID,
COLORREF  crTransparent,
COLORREF  crBackground 
)

Definition at line 699 of file DecoratorUtil.cpp.

BitmapBase * DecoratorSDK::Facilities::getMaskedBitmap ( const CString &  strName,
COLORREF  crTransparent,
COLORREF  crBackground 
)

Definition at line 694 of file DecoratorUtil.cpp.

bool DecoratorSDK::Facilities::getMetaFCO ( const CComPtr< IMgaMetaPart > &  metaPart,
CComPtr< IMgaMetaFCO > &  metaFco 
) const

Definition at line 549 of file DecoratorUtil.cpp.

std::vector< CString > DecoratorSDK::Facilities::getPathes ( void   )  const

Definition at line 241 of file DecoratorUtil.cpp.

Gdiplus::Pen * DecoratorSDK::Facilities::GetPen ( COLORREF  crColor,
int  iWidth = 1 
)

Definition at line 756 of file DecoratorUtil.cpp.

bool DecoratorSDK::Facilities::getPreference ( CComPtr< IMgaFCO >  spFCO,
CComPtr< IMgaMetaFCO >  spMetaFCO,
const CString &  strName,
bool &  bValue 
) const

Definition at line 366 of file DecoratorUtil.cpp.

bool DecoratorSDK::Facilities::getPreference ( CComPtr< IMgaFCO >  spFCO,
CComPtr< IMgaMetaFCO >  spMetaFCO,
const CString &  strName,
ELocation eValue 
) const

Definition at line 354 of file DecoratorUtil.cpp.

bool DecoratorSDK::Facilities::getPreference ( CComPtr< IMgaFCO >  spFCO,
CComPtr< IMgaMetaFCO >  spMetaFCO,
const CString &  strName,
COLORREF &  crValue 
) const

Definition at line 342 of file DecoratorUtil.cpp.

bool DecoratorSDK::Facilities::getPreference ( CComPtr< IMgaFCO >  spFCO,
CComPtr< IMgaMetaFCO >  spMetaFCO,
const CString &  strName,
long &  lValue,
bool  bInHexa = false 
) const

Definition at line 330 of file DecoratorUtil.cpp.

bool DecoratorSDK::Facilities::getPreference ( CComPtr< IMgaFCO >  spFCO,
CComPtr< IMgaMetaFCO >  spMetaFCO,
const CString &  strName,
CString &  strValue 
) const

Definition at line 306 of file DecoratorUtil.cpp.

bool DecoratorSDK::Facilities::getPreference ( CComPtr< IMgaMetaFCO >  spMetaFCO,
const CString &  strName,
bool &  bValue 
) const

Definition at line 301 of file DecoratorUtil.cpp.

bool DecoratorSDK::Facilities::getPreference ( CComPtr< IMgaMetaFCO >  spMetaFCO,
const CString &  strName,
ELocation eValue 
) const

Definition at line 296 of file DecoratorUtil.cpp.

bool DecoratorSDK::Facilities::getPreference ( CComPtr< IMgaMetaFCO >  spMetaFCO,
const CString &  strName,
COLORREF &  crValue 
) const

Definition at line 291 of file DecoratorUtil.cpp.

bool DecoratorSDK::Facilities::getPreference ( CComPtr< IMgaMetaFCO >  spMetaFCO,
const CString &  strName,
long &  lValue,
bool  bInHexa = false 
) const

Definition at line 286 of file DecoratorUtil.cpp.

bool DecoratorSDK::Facilities::getPreference ( CComPtr< IMgaMetaFCO >  spMetaFCO,
const CString &  strName,
CString &  strValue 
) const

Definition at line 281 of file DecoratorUtil.cpp.

bool DecoratorSDK::Facilities::getPreference ( CComPtr< IMgaFCO >  spFCO,
const CString &  strName,
bool &  bValue 
) const

Definition at line 276 of file DecoratorUtil.cpp.

bool DecoratorSDK::Facilities::getPreference ( CComPtr< IMgaFCO >  spFCO,
const CString &  strName,
ELocation eValue 
) const

Definition at line 271 of file DecoratorUtil.cpp.

bool DecoratorSDK::Facilities::getPreference ( CComPtr< IMgaFCO >  spFCO,
const CString &  strName,
COLORREF &  crValue 
) const

Definition at line 266 of file DecoratorUtil.cpp.

bool DecoratorSDK::Facilities::getPreference ( CComPtr< IMgaFCO >  spFCO,
const CString &  strName,
long &  lValue,
bool  bInHexa = false 
) const

Definition at line 261 of file DecoratorUtil.cpp.

bool DecoratorSDK::Facilities::getPreference ( CComPtr< IMgaFCO >  spFCO,
const CString &  strName,
CString &  strValue 
) const

Definition at line 256 of file DecoratorUtil.cpp.

EPrefStatus DecoratorSDK::Facilities::getPreferenceStatus ( CComPtr< IMgaFCO >  spFCO,
const CString &  strName 
) const

Definition at line 376 of file DecoratorUtil.cpp.

CString DecoratorSDK::Facilities::getStereotyped ( const CString &  str  )  const

Definition at line 1187 of file DecoratorUtil.cpp.

TileVector * DecoratorSDK::Facilities::getTileVector ( const CString &  strName  )  const

Definition at line 712 of file DecoratorUtil.cpp.

bool DecoratorSDK::Facilities::loadPathes ( IMgaProject *  pProject,
bool  bRefresh = false 
)

Definition at line 217 of file DecoratorUtil.cpp.

CSize DecoratorSDK::Facilities::MeasureText ( Gdiplus::Graphics *  gdip,
Gdiplus::Font *  pFont,
const CString &  strText 
) const

Definition at line 785 of file DecoratorUtil.cpp.

CSize DecoratorSDK::Facilities::MeasureText ( Gdiplus::Graphics *  gdip,
GdipFont pFont,
const CString &  strText 
) const

Definition at line 780 of file DecoratorUtil.cpp.

bool DecoratorSDK::Facilities::setAttribute ( CComPtr< IMgaFCO >  spFCO,
const CString &  strName,
double  fValue 
) const

Definition at line 531 of file DecoratorUtil.cpp.

bool DecoratorSDK::Facilities::setAttribute ( CComPtr< IMgaFCO >  spFCO,
const CString &  strName,
long  lValue 
) const

Definition at line 513 of file DecoratorUtil.cpp.

bool DecoratorSDK::Facilities::setAttribute ( CComPtr< IMgaFCO >  spFCO,
const CString &  strName,
bool  bValue 
) const

Definition at line 494 of file DecoratorUtil.cpp.

bool DecoratorSDK::Facilities::setAttribute ( CComPtr< IMgaFCO >  spFCO,
const CString &  strName,
const CString &  strValue 
) const

Definition at line 474 of file DecoratorUtil.cpp.

COLORREF DecoratorSDK::Facilities::ShiftColor ( COLORREF  crColor,
int  iShift 
) const

Definition at line 1127 of file DecoratorUtil.cpp.

std::vector< CString > DecoratorSDK::Facilities::wrapString ( const CString &  str,
int  iWrap,
int  iMax 
) const

Definition at line 1143 of file DecoratorUtil.cpp.


The documentation for this class was generated from the following files:
Generated on Thu May 30 15:58:52 2013 for GME by  doxygen 1.6.3