23 #include "wxgis/cartoui/cartoui.h"
24 #include "wxgis/display/symbol.h"
25 #include "wxgis/carto/map.h"
26 #include "wxgis/cartoui/mxeventui.h"
27 #include "wxgis/carto/mxevent.h"
49 wxGISMapView(wxWindow* parent, wxWindowID
id = wxID_ANY,
const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize,
long style = wxTAB_TRAVERSAL | wxCLIP_CHILDREN | wxNO_FULL_REPAINT_ON_RESIZE);
51 virtual bool Create(wxWindow* parent, wxWindowID
id = wxID_ANY,
const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize,
long style = wxTAB_TRAVERSAL | wxCLIP_CHILDREN | wxNO_FULL_REPAINT_ON_RESIZE,
const wxString& name = wxT(
"GISMapView"));
53 virtual wxGISDisplay* GetDisplay(
void)
const {
return m_pGISDisplay;};
56 virtual void Clear(
void);
58 virtual void SetExtent(
const OGREnvelope& Env);
59 virtual void SetFullExtent(
void);
60 virtual OGREnvelope GetFullExtent(
void);
62 virtual double GetScaleRatio(OGREnvelope& Bounds, wxDC& dc);
63 virtual void PanStart(wxPoint MouseLocation);
64 virtual void PanMoveTo(wxPoint MouseLocation);
65 virtual void PanStop(wxPoint MouseLocation);
66 virtual void RotateStart(wxPoint MouseLocation);
67 virtual bool CanRotate(
void);
68 virtual void RotateBy(wxPoint MouseLocation);
69 virtual void RotateStop(wxPoint MouseLocation);
70 virtual void SetRotate(
double dAngleRad);
71 virtual double GetCurrentRotate(
void);
74 virtual void StartFlashing(wxGISEnumFlashStyle eFlashStyle = enumGISMapFlashNewColor);
90 virtual void OnPaint(wxPaintEvent & event);
91 virtual void OnEraseBackground(wxEraseEvent & event);
92 virtual void OnSize(wxSizeEvent & event);
93 virtual void OnTimer( wxTimerEvent & event);
94 virtual void OnKeyDown(wxKeyEvent & event);
95 virtual void OnCaptureLost(wxMouseCaptureLostEvent & event);
96 virtual void OnMouseWheel(wxMouseEvent& event);
98 virtual void OnDraw(wxGISEnumDrawPhase nPhase);
103 virtual void DrawToolTip(wxClientDC& dc,
const wxString& sText);
104 virtual OGREnvelope CreateEnvelopeFromZoomFactor(
double dZoom);
105 virtual void UpdateFrameCenter(
void);
107 virtual void Flash(wxGISEnumFlashStyle eFlashStyle = enumGISMapFlashNewColor);
113 virtual bool IsDrawing()
const;
114 virtual wxThread::ExitCode Entry();
115 virtual bool CreateAndRunDrawThread(
void);
116 virtual void DestroyDrawThread(
void);
121 wxDword m_nDrawingState;
123 wxPoint m_StartMouseLocation;
124 wxPoint m_FrameCenter;
125 double m_dOriginAngle;
126 double m_dCurrentAngle;
128 wxVector<FLASH_GEOMETRY> m_staFlashGeoms;
129 wxGISEnumFlashStyle m_eFlashStyle;
131 wxCriticalSection m_CritSect, m_KeysCritSect, m_FlashCritSect;
137 DECLARE_EVENT_TABLE()
Definition: mxeventui.h:54
Definition: gdalinh.h:333
Definition: gisdisplay.h:43
A TrackCancel interface class.
Definition: core.h:144