00001
00002
00003
00004
00005 #pragma once
00006
00007 #include "visbsp_mfcDoc.h"
00008 #include "formrechtsview.h"
00009 #include "atltypes.h"
00010
00015 class Cvisbsp_mfcView : public CView
00016 {
00017 protected:
00018 Cvisbsp_mfcView();
00019 DECLARE_DYNCREATE(Cvisbsp_mfcView)
00020
00021
00022 public:
00023 Cvisbsp_mfcDoc* GetDocument() const;
00024
00025 HGLRC m_hRC;
00026 HDC m_myhDC;
00027 int m_height;
00028 int m_width;
00029 CFormRechtsView *formRechtsView;
00030
00031
00032 public:
00033
00034
00035 public:
00036 virtual void OnDraw(CDC* pDC);
00037 virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
00038 protected:
00039
00040
00041 public:
00042 virtual ~Cvisbsp_mfcView();
00043 #ifdef _DEBUG
00044 virtual void AssertValid() const;
00045 virtual void Dump(CDumpContext& dc) const;
00046 #endif
00047
00048 protected:
00049
00050
00051 protected:
00052 DECLARE_MESSAGE_MAP()
00053 public:
00054 BOOL SetupPixelFormat(void);
00055 afx_msg BOOL OnEraseBkgnd(CDC* pDC);
00056 void InitGL(void);
00057 afx_msg void OnSize(UINT nType, int cx, int cy);
00058 void SetProjection(void);
00059 afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
00060 void setFormRechtsView(CFormRechtsView *cfrv);
00061 protected:
00062 virtual void OnUpdate(CView* , LPARAM , CObject* );
00063 public:
00065 void DoColorMapping(void);
00067 void DrawPfeile(void);
00069 void DrawStream(void);
00070 afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
00071 afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
00072 afx_msg void OnMouseMove(UINT nFlags, CPoint point);
00073 afx_msg void OnRButtonDown(UINT nFlags, CPoint point);
00074 afx_msg void OnRButtonUp(UINT nFlags, CPoint point);
00075 bool m_bLMouseDown;
00076 bool m_bRMouseDown;
00078 GLuint dlPfeil;
00080 float n_offsetX;
00082 float n_offsetY;
00083 CPoint m_prevMousePoint;
00085 float px2dataX(float px);
00087 float px2dataY(float py);
00089 float data2pxX(Cvisbsp_mfcDoc* pDoc, float px);
00091 float data2pxY(Cvisbsp_mfcDoc* pDoc, float py);
00093 void drawStreamLine( list<Vector> list, bool bEuler );
00095 float doStreamPosCalc( float angle, float tapering);
00097 void mapGlyphs( list<Vector> list, bool bEuler);
00099 afx_msg void OnViewTransferfunk();
00100 };
00101
00102 #ifndef _DEBUG // Debugversion in visbsp_mfcView.cpp
00103 inline Cvisbsp_mfcDoc* Cvisbsp_mfcView::GetDocument() const
00104 { return reinterpret_cast<Cvisbsp_mfcDoc*>(m_pDocument); }
00105 #endif
00106