Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Vezba1View.h : interface of the CVezba1View class
- //
- #pragma once
- #include "DImage.h"
- class CVezba1View : public CView
- {
- protected: // create from serialization only
- CVezba1View();
- DECLARE_DYNCREATE(CVezba1View)
- // Attributes
- public:
- CVezba1Doc* GetDocument() const;
- // Operations
- public:
- void DrawTrapeze(CDC* pDC, double a,double b, double h);
- void DrawArm1(CDC* pDC);
- void DrawArm2(CDC* pDC);
- void DrawBase(CDC* pDC);
- void DrawCircle(CDC* pDC, double r);
- void Draw4(CDC* pDC, double r);
- void Draw6(CDC* pDC, double r);
- void Draw8(CDC* pDC, double r);
- void DrawH(CDC* pDC);
- void DrawHH1(CDC* pDC);
- void DrawHH2(CDC* pDC);
- void DrawH0(CDC* pDC);
- //void DrawH1(CDC* pDC, float n);
- //void DrawH2(CDC* pDC, float n);
- //void DrawK0(CDC* pDC, float n);
- void DrawK1(CDC* pDC);
- //void DrawK2(CDC* pDC, float n);
- void Translate(CDC* pDC, double x, double y, int direction);
- void Rotate(CDC* pDC, double ang, int direction);
- void Scale(CDC* pDC, double x, int direction);
- void Mirror(CDC* pDC, double x, double y, int direction);
- void DrawTransparentBitmap(CDC *pDC, DImage* bitmap);
- void Filter1(DImage* bitmap, int r, int g, int b);
- // Overrides
- public:
- virtual void OnDraw(CDC* pDC); // overridden to draw this view
- virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
- protected:
- virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
- virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
- virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
- // Implementation
- public:
- virtual ~CVezba1View();
- #ifdef _DEBUG
- virtual void AssertValid() const;
- virtual void Dump(CDumpContext& dc) const;
- #endif
- protected:
- // Generated message map functions
- protected:
- DECLARE_MESSAGE_MAP()
- public:
- afx_msg void OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags);
- afx_msg BOOL OnEraseBkgnd(CDC* pDC);
- };
- #ifndef _DEBUG // debug version in Vezba1View.cpp
- inline CVezba1Doc* CVezba1View::GetDocument() const
- { return reinterpret_cast<CVezba1Doc*>(m_pDocument); }
- #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement