GME  13
Public Member Functions | Public Attributes
CGraphics Class Reference

#include <GraphicsUtil.h>

Collaboration diagram for CGraphics:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 CGraphics ()
 ~CGraphics ()
void Initialize (void)
void Uninitialize (void)
Gdiplus::Pen * GetGdipPen2 (Gdiplus::Graphics *gdip, COLORREF color, GMEConnLineType lineType=GME_LINE_SOLID, bool isViewMagnified=false, int width=1)
Gdiplus::Pen * GetGdipPen (Gdiplus::Graphics *gdip, COLORREF color, bool isPrinting, GMEConnLineType lineType=GME_LINE_SOLID, bool isViewMagnified=false, int width=1)
Gdiplus::SolidBrush * GetGdipBrush (COLORREF color)
Gdiplus::Font * GetGdipFont (GMEFontKind kind)
Gdiplus::Font * GetGdipFont (int kindsize, bool bold=false, bool semibold=false)
void DeleteBrushes (GdipBrushTable &gdipBrushTable)
void CreateFonts (CFont **font, Gdiplus::Font **gdipFont, int boldness)
void DrawGrid (Gdiplus::Graphics *gdip, int xSpace, int ySpace, int maxx, int maxy, COLORREF color=GME_GRID_COLOR)
void DrawConnection (Gdiplus::Graphics *gdip, const CPointList &points, const std::vector< long > &customizedEdgeIndexes, COLORREF color, GMEConnLineType lineType, int srcEnd, int dstEnd, bool isViewMagnified, bool drawBullets, int width=1)
void DrawArrow (Gdiplus::Graphics *gdip, Gdiplus::Pen *pen, Gdiplus::Brush *brush, const CPoint &beforeLast, const CPoint &last, int iEnd, bool bold)
void DrawGdipText (Gdiplus::Graphics *gdip, const CString &txt, const CPoint &pt, Gdiplus::Font *font, COLORREF color, int align)
Gdiplus::RectF MeasureText2 (Gdiplus::Graphics *gdip, const CString &txt, const CPoint &pt, Gdiplus::Font *font)
CSize MeasureText (Gdiplus::Graphics *gdip, const CString &txt, const CPoint &pt, Gdiplus::Font *font)

Public Attributes

std::map< CString, Gdiplus::Pen * > m_mapGdipPens
GdipBrushTable gdipBrushes
CFont * normalFonts [GME_FONT_KIND_NUM]
CFont * semiboldFonts [GME_FONT_KIND_NUM]
CFont * boldFonts [GME_FONT_KIND_NUM]
Gdiplus::Font * normalGdipFonts [GME_FONT_KIND_NUM]
Gdiplus::Font * semiboldGdipFonts [GME_FONT_KIND_NUM]
Gdiplus::Font * boldGdipFonts [GME_FONT_KIND_NUM]
CArrowHeadarrows [GME_DIRECTION_NUM]
CArrowHeaddiamonds [GME_DIRECTION_NUM]
CArrowHeadapexes [GME_DIRECTION_NUM]
CArrowHeadbullets [GME_DIRECTION_NUM]
CArrowHeadleftHalfArrows [GME_DIRECTION_NUM]
CArrowHeadrightHalfArrows [GME_DIRECTION_NUM]

Detailed Description

Definition at line 38 of file GraphicsUtil.h.


Constructor & Destructor Documentation

Definition at line 164 of file GraphicsUtil.cpp.

Definition at line 168 of file GraphicsUtil.cpp.


Member Function Documentation

void CGraphics::CreateFonts ( CFont **  font,
Gdiplus::Font **  gdipFont,
int  boldness 
)

Definition at line 248 of file GraphicsUtil.cpp.

void CGraphics::DeleteBrushes ( GdipBrushTable gdipBrushTable)

Definition at line 237 of file GraphicsUtil.cpp.

void CGraphics::DrawArrow ( Gdiplus::Graphics *  gdip,
Gdiplus::Pen *  pen,
Gdiplus::Brush *  brush,
const CPoint &  beforeLast,
const CPoint &  last,
int  iEnd,
bool  bold 
)

Definition at line 440 of file GraphicsUtil.cpp.

void CGraphics::DrawConnection ( Gdiplus::Graphics *  gdip,
const CPointList points,
const std::vector< long > &  customizedEdgeIndexes,
COLORREF  color,
GMEConnLineType  lineType,
int  srcEnd,
int  dstEnd,
bool  isViewMagnified,
bool  drawBullets,
int  width = 1 
)

Definition at line 337 of file GraphicsUtil.cpp.

void CGraphics::DrawGdipText ( Gdiplus::Graphics *  gdip,
const CString &  txt,
const CPoint &  pt,
Gdiplus::Font *  font,
COLORREF  color,
int  align 
)

Definition at line 503 of file GraphicsUtil.cpp.

void CGraphics::DrawGrid ( Gdiplus::Graphics *  gdip,
int  xSpace,
int  ySpace,
int  maxx,
int  maxy,
COLORREF  color = GME_GRID_COLOR 
)

Definition at line 326 of file GraphicsUtil.cpp.

Gdiplus::SolidBrush * CGraphics::GetGdipBrush ( COLORREF  color)

Definition at line 315 of file GraphicsUtil.cpp.

Gdiplus::Font * CGraphics::GetGdipFont ( GMEFontKind  kind)

Definition at line 264 of file GraphicsUtil.cpp.

Gdiplus::Font * CGraphics::GetGdipFont ( int  kindsize,
bool  bold = false,
bool  semibold = false 
)

Definition at line 269 of file GraphicsUtil.cpp.

Gdiplus::Pen * CGraphics::GetGdipPen ( Gdiplus::Graphics *  gdip,
COLORREF  color,
bool  isPrinting,
GMEConnLineType  lineType = GME_LINE_SOLID,
bool  isViewMagnified = false,
int  width = 1 
)

Definition at line 284 of file GraphicsUtil.cpp.

Gdiplus::Pen * CGraphics::GetGdipPen2 ( Gdiplus::Graphics *  gdip,
COLORREF  color,
GMEConnLineType  lineType = GME_LINE_SOLID,
bool  isViewMagnified = false,
int  width = 1 
)

Definition at line 274 of file GraphicsUtil.cpp.

void CGraphics::Initialize ( void  )

Definition at line 172 of file GraphicsUtil.cpp.

CSize CGraphics::MeasureText ( Gdiplus::Graphics *  gdip,
const CString &  txt,
const CPoint &  pt,
Gdiplus::Font *  font 
)

Definition at line 556 of file GraphicsUtil.cpp.

Gdiplus::RectF CGraphics::MeasureText2 ( Gdiplus::Graphics *  gdip,
const CString &  txt,
const CPoint &  pt,
Gdiplus::Font *  font 
)

Definition at line 546 of file GraphicsUtil.cpp.

void CGraphics::Uninitialize ( void  )

Definition at line 212 of file GraphicsUtil.cpp.


Member Data Documentation

Definition at line 55 of file GraphicsUtil.h.

Definition at line 53 of file GraphicsUtil.h.

Definition at line 49 of file GraphicsUtil.h.

Definition at line 52 of file GraphicsUtil.h.

Definition at line 56 of file GraphicsUtil.h.

Definition at line 54 of file GraphicsUtil.h.

Definition at line 46 of file GraphicsUtil.h.

Definition at line 57 of file GraphicsUtil.h.

std::map<CString,Gdiplus::Pen*> CGraphics::m_mapGdipPens

Definition at line 45 of file GraphicsUtil.h.

Definition at line 47 of file GraphicsUtil.h.

Definition at line 50 of file GraphicsUtil.h.

Definition at line 58 of file GraphicsUtil.h.

Definition at line 48 of file GraphicsUtil.h.

Definition at line 51 of file GraphicsUtil.h.


The documentation for this class was generated from the following files: