23 #include "wxgis/carto/layer.h"
24 #include "wxgis/display/symbol.h"
35 enum wxGISEnumShapeType{
36 enumGISShapeTypeRectangle = 0,
37 enumGISShapeTypePolygon,
38 enumGISShapeTypeCircle,
39 enumGISShapeTypeEllipse,
41 #ifdef wxGIS_USE_SPLINE
42 enumGISShapeTypeCurve,
43 #endif // wxGIS_USE_SPLINE
44 enumGISShapeTypeFreeHand,
45 enumGISShapeTypeMarker,
49 enum wxGISEnumShapeState{
50 enumGISShapeStateNormal = 0,
51 enumGISShapeStateSelected,
52 enumGISShapeStateRotated,
53 enumGISShapeStatePoints,
69 virtual wxGISEnumShapeType GetType()
const;
70 virtual wxGISEnumShapeState GetState()
const;
72 virtual OGREnvelope GetBounds()
const;
76 wxGISEnumShapeState m_eState;
77 wxGISEnumShapeType m_eType;
97 virtual bool Draw(wxGISEnumDrawPhase DrawPhase,
ITrackCancel*
const pTrackCancel = NULL);
98 virtual wxGISEnumDatasetType GetType(
void)
const {
return enumGISDrawing; };
99 virtual bool AddShape(
const wxGISGeometry &Geom, wxGISEnumShapeType eType);
100 virtual size_t GetShapeCount(
void)
const;
101 virtual wxGISShape* GetShape(
size_t nIndex)
const;
102 virtual wxGISSymbol* GetSymbol(wxGISEnumShapeType eType);
103 virtual void Clear();
110 wxVector<wxGISShape*> m_aoShapes;
112 wxCriticalSection m_CritSect;
113 OGREnvelope m_oLayerExtent;
Definition: gdalinh.h:333
Definition: gisdisplay.h:43
A TrackCancel interface class.
Definition: core.h:144
Definition: drawinglayer.h:63
Definition: drawinglayer.h:89