23 #include "wxgis/datasource/gdalinh.h"
24 #include "wxgis/datasource/spatialtree.h"
30 wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_GIS_DS, wxDS_FEATURES_ADDED,
wxFeatureDSEvent);
31 wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_GIS_DS, wxDS_FEATURE_ADDED,
wxFeatureDSEvent);
32 wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_GIS_DS, wxDS_FEATURE_DELETED,
wxFeatureDSEvent);
33 wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_GIS_DS, wxDS_FEATURE_CHANGED,
wxFeatureDSEvent);
35 wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_GIS_DS, wxDS_CHANGED,
wxFeatureDSEvent);
43 wxFeatureDSEvent(wxEventType eventType = wxDS_FEATURES_ADDED,
const wxGISSpatialTreeCursor &Cursor = wxNullSpatialTreeCursor) : wxEvent(0, eventType)
50 m_Cursor = wxNullSpatialTreeCursor;
55 for (
size_t i = 0; i <
event.m_Cursor.GetCount(); ++i)
57 if (event.m_Cursor[i])
58 m_Cursor.Add(event.m_Cursor[i]->Clone());
60 m_nFid =
event.m_nFid;
63 void SetCursor(
const wxGISSpatialTreeCursor &Cursor){m_Cursor = Cursor;};
64 wxGISSpatialTreeCursor GetCursor(
void)
const {
return m_Cursor;};
65 long GetFID(
void)
const {
return m_nFid;};
70 wxGISSpatialTreeCursor m_Cursor;
78 #define wxFeatureDSEventHandler(func) \
79 wxEVENT_HANDLER_CAST(wxFeatureDSEventFunction, func)
81 #define EVT_DS_FEATURES_ADDED(func) wx__DECLARE_EVT0(wxDS_FEATURES_ADDED, wxFeatureDSEventHandler(func))
82 #define EVT_DS_FEATURE_ADDED(func) wx__DECLARE_EVT0(wxDS_FEATURE_ADDED, wxFeatureDSEventHandler(func))
83 #define EVT_DS_FEATURE_DELETED(func) wx__DECLARE_EVT0(wxDS_FEATURE_DELETED, wxFeatureDSEventHandler(func))
84 #define EVT_DS_FEATURE_CHANGED(func) wx__DECLARE_EVT0(wxDS_FEATURE_CHANGED, wxFeatureDSEventHandler(func))
85 #define EVT_DS_CLOSED(func) wx__DECLARE_EVT0(wxDS_CLOSED, wxFeatureDSEventHandler(func))
86 #define EVT_DS_CHANGED(func) wx__DECLARE_EVT0(wxDS_CHANGED, wxFeatureDSEventHandler(func))
89 WXDLLIMPEXP_GIS_DS
void IncreaseEnvelope(OGREnvelope &Env,
double dSize);
90 WXDLLIMPEXP_GIS_DS
void SetEnvelopeRatio(OGREnvelope &Env,
double dRatio);
91 WXDLLIMPEXP_GIS_DS
void MoveEnvelope(OGREnvelope &MoveEnv,
const OGREnvelope &Env);
The FeatureDS class event.
Definition: vectorop.h:40
Definition: gdalinh.h:333