![]() |
VR-Forces Developer's Guide
|
The DtOverlayShapeFileLoadHandler class is the interface to be used when loading a shape file and having the contents either created locally (if not part of a scenario) or in the scenario as published objects. It will load road, area and point features.

Public Types | |
| typedef std::map< std::string, std::pair< DtDataFileReader *, makVrv::DtUnicode > > | Drivers |
Public Member Functions | |
| DtOverlayShapeFileLoadHandler (makVrv::DtDe &de) | |
| virtual | ~DtOverlayShapeFileLoadHandler () override |
| virtual void | setDefaultDriver (const std::string &) |
| virtual const std::string & | defaultDriver () const |
| virtual bool | importShapeFileOntoOverlay (const std::string &shapefile, const std::string &overlay, bool keepLocal=false) |
| virtual const DtFilename & | importFrom () const |
| virtual DtDataFileReader * | readerBasedOnFilename (const std::string &) const |
| virtual void | addDriver (const std::string &extension, DtDataFileReader *, const makVrv::DtUnicode &displayString) |
| const Drivers & | drivers () const |
Public Member Functions inherited from makVrv::DtVirtualBaseClass | |
| DtVirtualBaseClass () | |
| virtual | ~DtVirtualBaseClass () |
Static Public Member Functions | |
| static DtOverlayShapeFileLoadHandler & | instance (makVrv::DtDe &de) |
| static void | registerInstance (makVrv::DtDe &de, DtOverlayShapeFileLoadHandler *) |
Protected Attributes | |
| makVrv::DtDe & | myDe |
| DtFilename | myImportFromDirectory |
| Drivers | myDrivers |
| std::string | myDefaultDriver |
| typedef std::map<std::string, std::pair<DtDataFileReader*, makVrv::DtUnicode> > makVrf::DtOverlayShapeFileLoadHandler::Drivers |
| makVrf::DtOverlayShapeFileLoadHandler::DtOverlayShapeFileLoadHandler | ( | makVrv::DtDe & | de | ) |
CTOR.
|
overridevirtual |
DTOR.
|
static |
|
static |
|
virtual |
Sets the default driver to show when loading data files. This is the extension of the file. Default is shp.
|
virtual |
|
virtual |
Imports the shapefile to the specified overlay. If no overlay is given the name of the file will be used as the overlay. If keepLocal is true will always keep local, even if there is a back-end.
|
virtual |
Directory name to import from. When importing from a shapefile this will be set to that directory.
|
virtual |
Returns the reader based on the filename. Use the register method to register filenames that are not part of the default.
|
virtual |
Routines to add driver based on filename.
|
inline |
|
protected |
|
protected |
|
protected |
|
protected |