c1232c6dd4
- aggiunta gestione opzione visualizzazione direzione su curve.
59 lines
1.9 KiB
C++
59 lines
1.9 KiB
C++
|
|
|
|
#pragma once
|
|
|
|
#include "/EgtDev/Include/EGkPoint3d.h"
|
|
#include <windows.h>
|
|
#include <string>
|
|
|
|
class IGeomDB ;
|
|
class ILogger ;
|
|
class IEGrScene ;
|
|
|
|
//----------------------------------------------------------------------------
|
|
class TestEGrView : public CWnd
|
|
{
|
|
public :
|
|
TestEGrView( void) ;
|
|
~TestEGrView( void) ;
|
|
bool Create( CWnd* pParent, int nID) ;
|
|
bool StartScene( int nDriver, bool b2Buff, int nColorBits, int nDepthBits) ;
|
|
IEGrScene* GetScene( void)
|
|
{ return m_pScene ; }
|
|
bool GetSceneInfo( std::string& sInfo) ;
|
|
void Destroy( void) ;
|
|
bool Reshape( int nX, int nY, int nW, int nH) ;
|
|
void Redraw( void) ;
|
|
void ShowMode( UINT nID) ;
|
|
void ShowCurveDir( bool bShow) ;
|
|
void Zoom( UINT nID) ;
|
|
void View( UINT nID) ;
|
|
|
|
protected :
|
|
afx_msg void OnPaint( void) ;
|
|
afx_msg BOOL OnEraseBkgnd( CDC* pDC)
|
|
{ return TRUE ; }
|
|
afx_msg void OnMButtonDown( UINT nFlags, CPoint point) ;
|
|
afx_msg void OnMButtonUp( UINT nFlags, CPoint point) ;
|
|
afx_msg void OnMouseMove( UINT nFlags, CPoint point) ;
|
|
afx_msg BOOL OnMouseWheel( UINT nFlags, short zDelta, CPoint point) ;
|
|
virtual BOOL OnGesturePan( CPoint ptFRom, CPoint ptTO) ;
|
|
virtual BOOL OnGestureRotate( CPoint ptCenter, double dblAngle) ;
|
|
virtual BOOL OnGesturePressAndTap( CPoint ptPress, long lDelta) ;
|
|
|
|
private :
|
|
HDC GetSafeHdc( void)
|
|
{ return ( ( m_pDC != nullptr) ? m_pDC->GetSafeHdc() : nullptr) ; }
|
|
void ShowCursorCoordinates( const Point3d& ptWin) ;
|
|
|
|
private :
|
|
enum Status { ST_NULL = 0, ST_PAN, ST_ROT, ST_ZOOMWIN} ;
|
|
|
|
private :
|
|
CClientDC* m_pDC ;
|
|
IEGrScene* m_pScene ;
|
|
Status m_nStatus ;
|
|
CPoint m_PrevPoint ;
|
|
|
|
DECLARE_MESSAGE_MAP()
|
|
} ; |