SHARE
TWEET

Untitled

a guest Nov 19th, 2019 87 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2. // Vezba1View.h : interface of the CVezba1View class
  3. //
  4.  
  5. #pragma once
  6. #include "DImage.h"
  7.  
  8. class CVezba1View : public CView
  9. {
  10. protected: // create from serialization only
  11.     CVezba1View();
  12.     DECLARE_DYNCREATE(CVezba1View)
  13.  
  14. // Attributes
  15. public:
  16.     CVezba1Doc* GetDocument() const;
  17.  
  18. // Operations
  19. public:
  20.     void DrawTrapeze(CDC* pDC, double a,double b, double h);
  21.     void DrawArm1(CDC* pDC);
  22.     void DrawArm2(CDC* pDC);
  23.     void DrawBase(CDC* pDC);
  24.     void DrawCircle(CDC* pDC, double r);
  25.     void Draw4(CDC* pDC, double r);
  26.     void Draw6(CDC* pDC, double r);
  27.     void Draw8(CDC* pDC, double r);
  28.     void DrawH(CDC* pDC);
  29.     void DrawHH1(CDC* pDC);
  30.     void DrawHH2(CDC* pDC);
  31.     void DrawH0(CDC* pDC);
  32.     //void DrawH1(CDC* pDC, float n);
  33.     //void DrawH2(CDC* pDC, float n);
  34.     //void DrawK0(CDC* pDC, float n);
  35.     void DrawK1(CDC* pDC);
  36.     //void DrawK2(CDC* pDC, float n);
  37.     void Translate(CDC* pDC, double x, double y, int direction);
  38.     void Rotate(CDC* pDC, double ang, int direction);
  39.     void Scale(CDC* pDC, double x, int direction);
  40.     void Mirror(CDC* pDC, double x, double y, int direction);
  41.     void DrawTransparentBitmap(CDC *pDC, DImage* bitmap);
  42.     void Filter1(DImage* bitmap, int r, int g, int b);
  43. // Overrides
  44. public:
  45.     virtual void OnDraw(CDC* pDC);  // overridden to draw this view
  46.     virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
  47. protected:
  48.     virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
  49.     virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
  50.     virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
  51.  
  52. // Implementation
  53. public:
  54.     virtual ~CVezba1View();
  55. #ifdef _DEBUG
  56.     virtual void AssertValid() const;
  57.     virtual void Dump(CDumpContext& dc) const;
  58. #endif
  59.  
  60. protected:
  61.  
  62. // Generated message map functions
  63. protected:
  64.     DECLARE_MESSAGE_MAP()
  65. public:
  66.     afx_msg void OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags);
  67.     afx_msg BOOL OnEraseBkgnd(CDC* pDC);
  68. };
  69.  
  70. #ifndef _DEBUG  // debug version in Vezba1View.cpp
  71. inline CVezba1Doc* CVezba1View::GetDocument() const
  72.    { return reinterpret_cast<CVezba1Doc*>(m_pDocument); }
  73. #endif
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top