5#include "common/map/shapefile.h"
16 ShapefileHandler(std::string shapefile);
19 std::string shapefile_name;
20 std::unique_ptr<shapefile::Shapefile> file;
21 nlohmann::json dbf_file;
24 ImVec4 color_to_draw = {0, 1, 0, 1};
26 int scalerank_filter = 3;
28 void draw_to_image(
image::Image &img, std::function<std::pair<double, double>(
double,
double,
double,
double)> projectionFunc);
38 std::string
getName() {
return shapefile_name; }
40 std::string getID() {
return "shapefile_handler"; }
SatDump's handler base class.
Definition handler.h:32
void drawMenu()
Render explorer menu left sidebar.
Definition shapefile_handler.cpp:45
void setConfig(nlohmann::json p)
Optional, allows setting a configuration/state from JSON.
Definition shapefile_handler.cpp:117
nlohmann::json getConfig()
Optional, allows getting a configuration/state as JSON.
Definition shapefile_handler.cpp:133
void drawContents(ImVec2 win_size)
Render explorer contents (center/left)
Definition shapefile_handler.cpp:58
std::string getName()
Get this handler's readable name.
Definition shapefile_handler.h:38
void drawMenuBar()
Render explorer menu bar (in the left sidebar)
Definition shapefile_handler.cpp:56