SplineTestView.h 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. /*
  2. ** Command & Conquer Renegade(tm)
  3. ** Copyright 2025 Electronic Arts Inc.
  4. **
  5. ** This program is free software: you can redistribute it and/or modify
  6. ** it under the terms of the GNU General Public License as published by
  7. ** the Free Software Foundation, either version 3 of the License, or
  8. ** (at your option) any later version.
  9. **
  10. ** This program is distributed in the hope that it will be useful,
  11. ** but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. ** GNU General Public License for more details.
  14. **
  15. ** You should have received a copy of the GNU General Public License
  16. ** along with this program. If not, see <http://www.gnu.org/licenses/>.
  17. */
  18. // SplineTestView.h : interface of the CSplineTestView class
  19. //
  20. /////////////////////////////////////////////////////////////////////////////
  21. #if !defined(AFX_SPLINETESTVIEW_H__2AE09FDD_FBEF_11D2_9BD9_00A0C9988171__INCLUDED_)
  22. #define AFX_SPLINETESTVIEW_H__2AE09FDD_FBEF_11D2_9BD9_00A0C9988171__INCLUDED_
  23. #if _MSC_VER > 1000
  24. #pragma once
  25. #endif // _MSC_VER > 1000
  26. class Vector3;
  27. class CSplineTestView : public CView
  28. {
  29. protected: // create from serialization only
  30. CSplineTestView();
  31. DECLARE_DYNCREATE(CSplineTestView)
  32. // Attributes
  33. public:
  34. CSplineTestDoc* GetDocument();
  35. // Operations
  36. public:
  37. // Overrides
  38. // ClassWizard generated virtual function overrides
  39. //{{AFX_VIRTUAL(CSplineTestView)
  40. public:
  41. virtual void OnDraw(CDC* pDC); // overridden to draw this view
  42. virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
  43. protected:
  44. //}}AFX_VIRTUAL
  45. // Implementation
  46. public:
  47. virtual ~CSplineTestView();
  48. void Map_Point(const Vector3 & point,int * set_x,int * set_y);
  49. void Un_Map_Point(int x,int y,Vector3 * set_point);
  50. Vector3 Clamp_Point(const Vector3 & input);
  51. void Enable_Draw_Tangents(bool onoff);
  52. bool Is_Draw_Tangents_Enabled(void);
  53. #ifdef _DEBUG
  54. virtual void AssertValid() const;
  55. virtual void Dump(CDumpContext& dc) const;
  56. #endif
  57. protected:
  58. bool DrawTangents;
  59. // Generated message map functions
  60. protected:
  61. //{{AFX_MSG(CSplineTestView)
  62. afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
  63. afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
  64. afx_msg void OnMouseMove(UINT nFlags, CPoint point);
  65. afx_msg void OnRButtonUp(UINT nFlags, CPoint point);
  66. //}}AFX_MSG
  67. DECLARE_MESSAGE_MAP()
  68. };
  69. #ifndef _DEBUG // debug version in SplineTestView.cpp
  70. inline CSplineTestDoc* CSplineTestView::GetDocument()
  71. { return (CSplineTestDoc*)m_pDocument; }
  72. #endif
  73. /////////////////////////////////////////////////////////////////////////////
  74. //{{AFX_INSERT_LOCATION}}
  75. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  76. #endif // !defined(AFX_SPLINETESTVIEW_H__2AE09FDD_FBEF_11D2_9BD9_00A0C9988171__INCLUDED_)