Files
TestEGr/TestEGrView.h
T
Dario Sassi 859537bbf4 TestEGr 1.5b5 :
- aggiunto comando Nuovo
- aggiunta comando Esegui Tsc
2014-02-19 11:27:07 +00:00

54 lines
1.6 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 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) ;
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 } ;
private :
CClientDC* m_pDC ;
IEGrScene* m_pScene ;
Status m_nStatus ;
CPoint m_PrevPoint ;
DECLARE_MESSAGE_MAP()
} ;