40 #ifndef INCLUDED_GLS_MAP_SHAPEFILE_H
41 #define INCLUDED_GLS_MAP_SHAPEFILE_H
47 #define LIB_BASE_NAME "gls_map_shapefile"
53 #undef GLS_LIB_CRT_SUFFIX
54 #undef GLS_AUTOLIB_SUFFIX
55 #define GLS_AUTOLIB_SUFFIX
57 #define GLS_LIB_CRT_SUFFIX
58 #define LIB_BASE_NAME "gdal"
62 #undef GLS_LIB_CRT_SUFFIX
63 #undef GLS_AUTOLIB_SUFFIX
103 typedef Shapefile::LibraryID LibraryID;
104 typedef Shapefile::LayerID LayerID;
121 void*
const userData,
122 const char* featureSet,
123 const char* featureType,
128 const double logicalHeight );
161 void*
const userData,
162 const char* featureSet,
163 const char* featureType,
166 const double logicalHeight );
202 bool LoadLibraryAs(
const char* shapefileRootPath, LibraryID libraryID );
283 bool GetFeatureSetVisibility( LibraryID libraryID,
const char* featureSet,
const char* featureType,
bool& isVisible )
const;
297 bool SetFeatureSetVisibility( LibraryID libraryID,
const char* featureSet,
const char* featureType,
bool isVisible );
318 const char* featureSet,
319 const char* featureType,
324 bool& useMapScale )
const;
345 const char* featureSet,
346 const char* featureType,
349 void*
const userData = NULL,
350 const bool useMapScale = NULL );
370 const char* featureSet,
371 const char* featureType,
375 uint16_t& stipplePattern,
376 int& stippleMultiplier )
const;
393 const LibraryID libraryID,
394 const char*
const featureSet,
395 const char*
const featureType,
398 void*& userData )
const;
419 const char* featureSet,
420 const char* featureType,
422 float width = DEF_LINE_WIDTH,
423 uint16_t stipplePattern = DEF_LINE_STIPPLE_PATTERN,
424 int stippleMultiplier = 0 );
443 const char* featureSet,
444 const char* featureType,
446 void*
const userData = NULL );
466 const char* featureSet,
467 const char* featureType,
472 float& boundaryWidth,
473 uint16_t& boundaryStipplePattern,
474 int& boundaryStippleMultiplier )
const;
495 const char* featureSet,
496 const char* featureType,
498 bool drawBoundary =
false,
500 float boundaryWidth = DEF_LINE_WIDTH,
501 uint16_t boundaryStipplePattern = DEF_LINE_STIPPLE_PATTERN,
502 int boundaryStippleMultiplier = 0 );
524 const char* featureSet,
525 const char* featureType,
532 bool& isVisible )
const;
554 const char* featureSet,
555 const char* featureType,
559 double xOffset = 0.0f,
560 double yOffset = 0.0f,
561 bool isVisible =
true );
569 bool SetCacheDimensions( LibraryID libraryID,
double degreesLongitude,
double degreesLatitude );
574 bool LowerAsyncCellRenderPriority(
bool belowNormal );
595 friend class ShapefileMapChartCell;
605 class ShapefileMapChartDataSourceImpl;
615 #endif // INCLUDED_GLS_MAP_SHAPEFILE_H
GlsColor glsColor
Alias for backwards compatibility.
Definition: gls_color.h:272
bool IsLibraryRenderingEnabled(LibraryID libraryID, bool &isEnabled) const
bool SetFeatureSetPointStyle(LibraryID libraryID, const char *featureSet, const char *featureType, const glsColor &color, const RenderPointFeatureCB renderCB=NULL, void *const userData=NULL, const bool useMapScale=NULL)
bool GetFeatureSetFillStyle(LibraryID libraryID, const char *featureSet, const char *featureType, glsColor &color, bool &drawBoundary, glsColor &boundaryColor, float &boundaryWidth, uint16_t &boundaryStipplePattern, int &boundaryStippleMultiplier) const
void(* RenderLineFeatureCB)(void *const userData, const char *featureSet, const char *featureType, const DynamicArray< ShapePoint > &points, const GeoRect ®ion, const double logicalHeight)
Definition: gls_map_shapefile.h:160
Definition: dynamic_array.h:66
Definition: gls_map_chart_data_source.h:210
float y
Definition: gls_map_shapefile.h:147
bool GetFeatureSetVisibility(LibraryID libraryID, const char *featureSet, const char *featureType, bool &isVisible) const
bool GetFeatureSetPointStyle(LibraryID libraryID, const char *featureSet, const char *featureType, glsColor &color, RenderPointFeatureCB &renderCB, void *&userData, bool &useMapScale) const
Definition: gls_map_util.h:414
bool SetOrderedFeatureSetNames(LibraryID libraryID, const DynamicArray< const char * > &orderedFeatureSetNames)
bool GetFeatureSetTextStyle(LibraryID libraryID, const char *featureSet, const char *featureType, GlsFontBase *&glsFont, glsColor &textColor, double &scale, double &xOffset, double &yOffset, bool &isVisible) const
bool SetFeatureSetLineStyle(LibraryID libraryID, const char *featureSet, const char *featureType, glsColor color, float width=DEF_LINE_WIDTH, uint16_t stipplePattern=DEF_LINE_STIPPLE_PATTERN, int stippleMultiplier=0)
The GlsMapView is a special group that controls the map view parameters. It contains all of the objec...
Definition: gls_map_view.h:86
LayerID GetBestLayer(GlsMapView *view, GlsMapChart *chart) const DISTI_METHOD_OVERRIDE
bool SetCacheDimensions(LibraryID libraryID, double degreesLongitude, double degreesLatitude)
Map chart data source for loading Shapefiles.
Definition: gls_map_shapefile.h:100
A file for all GL Studio files to include.
void(* RenderPointFeatureCB)(void *const userData, const char *featureSet, const char *featureType, double longitude, double latitude, const glsColor &color, const GeoRect ®ion, const double logicalHeight)
Definition: gls_map_shapefile.h:120
Utilities for the shapefile data source for GlsMapToolkit.
bool GetAvailableCoverage(GeoRect *dest) DISTI_METHOD_OVERRIDE
See base class.
bool GetFeatureSetLineStyle(LibraryID libraryID, const char *featureSet, const char *featureType, glsColor &color, float &width, uint16_t &stipplePattern, int &stippleMultiplier) const
Cartesian coordinate used by the points that define the paths loaded from shapefiles.
Definition: gls_map_shapefile.h:132
~ShapefileMapChartDataSource()
Destructor - stops rendering and releases all libraries.
The disti::GlsMapChartDataSource class.
bool SetFeatureSetVisibility(LibraryID libraryID, const char *featureSet, const char *featureType, bool isVisible)
DynamicArray< const char * > GetOrderedFeatureSetNames(LibraryID libraryID) const
bool SetFeatureSetFillStyle(LibraryID libraryID, const char *featureSet, const char *featureType, const glsColor &color, bool drawBoundary=false, const glsColor &boundaryColor=glsColor(0, 0, 0, 255), float boundaryWidth=DEF_LINE_WIDTH, uint16_t boundaryStipplePattern=DEF_LINE_STIPPLE_PATTERN, int boundaryStippleMultiplier=0)
bool EnableLibraryRendering(LibraryID libraryID, bool enable=true)
bool LoadLibraryAs(const char *shapefileRootPath, LibraryID libraryID)
void GetCellList(const GeoRect &coverage, LayerID layerID, double viewLogicalHeight, double viewGeoHeight, MapChartCellList &viewList) DISTI_METHOD_OVERRIDE
See base class.
Definition: gls_color.h:53
float x
Definition: gls_map_shapefile.h:146
DynamicArray< const char * > GetFeatureTypes(LibraryID libraryID, const char *featureSet) const
bool SetFeatureSetTextStyle(LibraryID libraryID, const char *featureSet, const char *featureType, GlsFontBase *glsFont, const glsColor &textColor=glsColor(0, 0, 0, 255), double scale=1.0, double xOffset=0.0f, double yOffset=0.0f, bool isVisible=true)
A smart pointer with unique ownership – poor man's std::unique_ptr.
Definition: gls_map_shapefile.h:592
Definition: gls_map_chart.h:70
Definition: bmpimage.h:46
bool UnloadLibrary(LibraryID libraryID)
ShapefileMapChartDataSource()
Constructor.
DynamicArray< LibraryID > GetLoadedLibraries() const
Definition: gls_font_base.h:85