You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
80 lines
2.5 KiB
C++
80 lines
2.5 KiB
C++
#pragma once
|
|
#include "IDcDraw.h"
|
|
#include "XyDC.h"
|
|
|
|
#include "Direct2DRender.h"
|
|
using namespace EzUI;
|
|
|
|
class CDcDrawD2D : public IDcDraw
|
|
{
|
|
public:
|
|
CDcDrawD2D();
|
|
CDcDrawD2D(CXyDC* pXyDC);
|
|
~CDcDrawD2D();
|
|
void Create(CXyDC* pXyDC);
|
|
|
|
void InitDC();
|
|
void ReleaseDC();
|
|
|
|
void Draw(CText& text, CCurveEx* pCurveRect = NULL); // 当pCurveRect不为空时表示仅是为了获得显示范围
|
|
void Draw2(CText& text, CCurveEx* pCurveRect = NULL);
|
|
void Draw(CText& text, COLORREF color);
|
|
void Draw(CMText& mtext);
|
|
|
|
void Draw(CEllipse &elp, COLORREF Color);
|
|
void Draw(CCircle &circle, COLORREF Color);
|
|
void Draw(CInsertDraw& m_insert);
|
|
void Draw(CXyDC* pNewXyDC, CInsertDraw& m_insert);
|
|
void Draw(CInsertOld& m_insert);
|
|
void Draw(CXyDC* pInsertXyDC, CInsertOld& m_insert);
|
|
void Draw(CSection& section, CRect8* rect = NULL);
|
|
void Draw(CImageInsert& image);
|
|
void Draw(CMesh &mesh);
|
|
void Draw(CMetaFile& mf);
|
|
void Draw(CColorRuler& ruler, CColorBase& color);
|
|
void Draw(CPathFill& path, COLORREF fillColor, void* HowToViewCurve);
|
|
void Draw(C3DFaultageSurface& fs, COLORREF fillColor, void* HowToViewCurve);
|
|
|
|
void Draw(CProportion& proportion, COLORREF color);
|
|
|
|
void Draw(CCurveEx &curve, double l1, double l2);
|
|
void Draw(CCurveEx& m_curve);
|
|
void Draw(CCurveEx& curve, void* HowToViewCurve);
|
|
void Draw(CCurveEx& curve, COLORREF color, BOOL bSmoothHead = TRUE);
|
|
|
|
void Draw(CCurveRect& rt, void* HowToViewCurve);
|
|
void Draw(CCurveRect& curve, COLORREF color);
|
|
|
|
void Draw(CPointNameEx& point, void* HowToViewPoint);
|
|
void Draw(CPointCrossName& point, void* HowToViewPoint);
|
|
void Draw(CPointTwoName& point, void* HowToViewPoint);
|
|
|
|
void Draw(CInsertDrawRect& idr);//-
|
|
void Draw(CArc& arc, void* HowToViewCurve);//-
|
|
void Draw(CArc& arc, COLORREF color);//-
|
|
void Draw(CFrame& frame, COLORREF color);
|
|
void Draw(CNet& net, COLORREF colText, COLORREF colLine);
|
|
void Draw(CGridding& grid, COLORREF colText, COLORREF colLine);
|
|
void Draw(COtherDraw& od, void* HowToViewCurve);
|
|
void Draw(COtherDraw& od, COLORREF color);
|
|
void Draw(COleObject& ole);
|
|
void Draw(CTree& tree);
|
|
void Draw(CStation& cs);
|
|
void Draw(CCurveTV5& tv, void* HowToViewCurve);
|
|
void Draw(CScaleRuler& sr, COLORREF color);
|
|
void Draw(CRectLabel& rl, COLORREF color, void* HowToViewCurve);
|
|
|
|
void DrawArray(CMxn& mxn, COLORREF colFront, COLORREF colBack); //前景色与背景色
|
|
void Draw(CMxn& mxn, COLORREF colFront, COLORREF colBack);
|
|
void DrawGrid(CMxn& mxn);
|
|
|
|
void Draw(CHorizontalWell &horizontalwell, void* HowToViewCurve);
|
|
|
|
void PolyLine(CPointList& dp);
|
|
void PaintRgn(LPPOINT sp, int count);
|
|
private:
|
|
|
|
EzUI::D2DRender* pRender;
|
|
};
|
|
|