![]() |
VR-Forces 4.6 Class Documentation
|
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. More...

Public Types | |
| typedef std::map< std::string, std::pair< DtDataFileReader *, makVrv::DtUnicode > > | Drivers |
Public Member Functions | |
| DtOverlayShapeFileLoadHandler (makVrv::DtDe &de) | |
| CTOR. | |
| virtual | ~DtOverlayShapeFileLoadHandler () |
| DTOR. | |
| virtual void | setDefaultDriver (const std::string &) |
| Sets the default driver to show when loading data files. This is the extension of the file. Default is shp. | |
| virtual const std::string & | defaultDriver () const |
| virtual bool | importShapeFileOntoOverlay (const std::string &shapefile, const std::string &overlay, bool keepLocal=false) |
| Imports the shapefile to the specified overlay. | |
| virtual const DtFilename & | importFrom () const |
| Directory name to import from. | |
| virtual DtDataFileReader * | readerBasedOnFilename (const std::string &) const |
| Returns the reader based on the filename. Use the register method to register filenames that are not part of the default. | |
| virtual void | addDriver (const std::string &extension, DtDataFileReader *, const makVrv::DtUnicode &displayString) |
| Routines to add driver based on filename. | |
| const Drivers & | drivers () const |
Public Member Functions inherited from makVrv::DtVirtualBaseClass | |
| DtVirtualBaseClass () | |
| Do nothing constructor. | |
| virtual | ~DtVirtualBaseClass () |
| Virtual do nothing destructor. | |
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 |
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
| typedef std::map<std::string, std::pair<DtDataFileReader*, makVrv::DtUnicode> > makVrf::DtOverlayShapeFileLoadHandler::Drivers |
| makVrf::DtOverlayShapeFileLoadHandler::DtOverlayShapeFileLoadHandler | ( | makVrv::DtDe & | de | ) |
CTOR.
|
virtual |
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 |