VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Types | Public Member Functions | Static Public Member Functions | Protected Attributes
makVrf::DtOverlayShapeFileLoadHandler Class Reference

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.

Inheritance diagram for makVrf::DtOverlayShapeFileLoadHandler:
Inheritance graph
[legend]

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 DtDataFileReaderreaderBasedOnFilename (const std::string &) const
 
virtual void addDriver (const std::string &extension, DtDataFileReader *, const makVrv::DtUnicode &displayString)
 
const Driversdrivers () 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::DtDemyDe
 
DtFilename myImportFromDirectory
 
Drivers myDrivers
 
std::string myDefaultDriver
 

Member Typedef Documentation

Constructor & Destructor Documentation

makVrf::DtOverlayShapeFileLoadHandler::DtOverlayShapeFileLoadHandler ( makVrv::DtDe de)

CTOR.

virtual makVrf::DtOverlayShapeFileLoadHandler::~DtOverlayShapeFileLoadHandler ( )
overridevirtual

DTOR.

Member Function Documentation

static DtOverlayShapeFileLoadHandler& makVrf::DtOverlayShapeFileLoadHandler::instance ( makVrv::DtDe de)
static
static void makVrf::DtOverlayShapeFileLoadHandler::registerInstance ( makVrv::DtDe de,
DtOverlayShapeFileLoadHandler  
)
static
virtual void makVrf::DtOverlayShapeFileLoadHandler::setDefaultDriver ( const std::string &  )
virtual

Sets the default driver to show when loading data files. This is the extension of the file. Default is shp.

virtual const std::string& makVrf::DtOverlayShapeFileLoadHandler::defaultDriver ( ) const
virtual
virtual bool makVrf::DtOverlayShapeFileLoadHandler::importShapeFileOntoOverlay ( const std::string &  shapefile,
const std::string &  overlay,
bool  keepLocal = false 
)
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 const DtFilename& makVrf::DtOverlayShapeFileLoadHandler::importFrom ( ) const
virtual

Directory name to import from. When importing from a shapefile this will be set to that directory.

virtual DtDataFileReader* makVrf::DtOverlayShapeFileLoadHandler::readerBasedOnFilename ( const std::string &  ) const
virtual

Returns the reader based on the filename. Use the register method to register filenames that are not part of the default.

virtual void makVrf::DtOverlayShapeFileLoadHandler::addDriver ( const std::string &  extension,
DtDataFileReader ,
const makVrv::DtUnicode displayString 
)
virtual

Routines to add driver based on filename.

const Drivers& makVrf::DtOverlayShapeFileLoadHandler::drivers ( ) const
inline

Member Data Documentation

makVrv::DtDe& makVrf::DtOverlayShapeFileLoadHandler::myDe
protected
DtFilename makVrf::DtOverlayShapeFileLoadHandler::myImportFromDirectory
protected
Drivers makVrf::DtOverlayShapeFileLoadHandler::myDrivers
protected
std::string makVrf::DtOverlayShapeFileLoadHandler::myDefaultDriver
protected

The documentation for this class was generated from the following file:

Document ID: Generated on Thu Oct 23 22:29:17 EDT 2025 from SVN revision 280951
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)