VR-Forces 4.8 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes
makVrf::DtOverlayShapeFileSaveHandler Class Reference

The DtOverlayShapeFileSaveHandler class is the interface to be used when saving and overlay layer to a shape file. More...

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

Public Member Functions

 DtOverlayShapeFileSaveHandler (makVrv::DtDe &de)
 CTOR. More...
 
virtual ~DtOverlayShapeFileSaveHandler ()
 DTOR. More...
 
virtual bool overlayLayerCanBeExported (const std::string &overlayLayer) const
 Returns true if there is any valid exportable item on the overlay layer. More...
 
virtual bool exportOverlay (const std::string &overlay, const std::string &rootname)
 Exports all valid overlay items on the given layer to the rootname file. More...
 
virtual const DtFilename & exportTo () const
 Directory name to export to. More...
 
virtual bool isExportable (makVrv::DtUniqueID) const
 Returns true if this id is an exportable id. More...
 
- Public Member Functions inherited from makVrv::DtVirtualBaseClass
 DtVirtualBaseClass ()
 Do nothing constructor. More...
 
virtual ~DtVirtualBaseClass ()
 Virtual do nothing destructor. More...
 

Static Public Member Functions

static
DtOverlayShapeFileSaveHandler
instance (makVrv::DtDe &de)
 
static void registerInstance (makVrv::DtDe &de, DtOverlayShapeFileSaveHandler *)
 

Protected Member Functions

virtual bool exportPointModels (const std::set< makVrv::DtUniqueID > &points, const std::string &root, const std::string &type="P")
 Exports point, linear and area models to the specified root concactinated with the supplied filename. More...
 
virtual bool exportAreaModels (const std::set< makVrv::DtUniqueID > &areas, const std::string &root, const std::string &type="A")
 
virtual bool exportLinearModels (const std::set< makVrv::DtUniqueID > &lines, const std::string &root, const std::string &type="L")
 
virtual void removeExistingFiles (const std::string &) const
 Removes any existing shapefiles at the given location. Called before saving new files. More...
 
virtual bool isExportableModel (makVrv::DtModel *) const
 Returns true if this is an exportable model. More...
 
virtual bool isPointModel (makVrv::DtModel *) const
 
virtual bool isAreaModel (makVrv::DtModel *) const
 
virtual bool isLinearModel (makVrv::DtModel *) const
 
virtual bool isPointModel (makVrv::DtUniqueID) const
 
virtual bool isAreaModel (makVrv::DtUniqueID) const
 
virtual bool isLinearModel (makVrv::DtUniqueID) const
 
virtual makVrv::DtModelmodelFor (makVrv::DtUniqueID) const
 
virtual makVrv::DtSceneObjectfindSceneObjectFor (makVrv::DtUniqueID) const
 
virtual GDALDriver * createOGRDriver (const char *driverName="ESRI Shapefile")
 
virtual OGRLayer * initializeLayerBasedOnType (const std::string &root, const std::string &fileExtension, int ogrType)
 
virtual void addFeaturesToLayer (const std::set< makVrv::DtUniqueID > &items, OGRLayer *, int type) const
 
virtual void cleanup ()
 
virtual OGRGeometry * convertObjectToGeometry (makVrv::DtUniqueID, int type) const
 
virtual std::string objectName (makVrv::DtUniqueID) const
 
virtual std::string objectPaletteName (makVrv::DtUniqueID) const
 
virtual std::string objectEntityType (makVrv::DtUniqueID) const
 

Protected Attributes

makVrv::DtDemyDe
 
GDALDriver * myCurrentDriver
 
GDALDataset * myCurrentDataSource
 
DtFilename myExportToDirectory
 

Detailed Description

The DtOverlayShapeFileSaveHandler class is the interface to be used when saving and overlay layer to a shape file.

All routes (lines) will be saved to a <rootname>L.shp, areas to <rootname>A.shp and point to <rootname>P.shp

Constructor & Destructor Documentation

makVrf::DtOverlayShapeFileSaveHandler::DtOverlayShapeFileSaveHandler ( makVrv::DtDe de)

CTOR.

virtual makVrf::DtOverlayShapeFileSaveHandler::~DtOverlayShapeFileSaveHandler ( )
virtual

DTOR.

Member Function Documentation

static DtOverlayShapeFileSaveHandler& makVrf::DtOverlayShapeFileSaveHandler::instance ( makVrv::DtDe de)
static
static void makVrf::DtOverlayShapeFileSaveHandler::registerInstance ( makVrv::DtDe de,
DtOverlayShapeFileSaveHandler  
)
static
virtual bool makVrf::DtOverlayShapeFileSaveHandler::overlayLayerCanBeExported ( const std::string &  overlayLayer) const
virtual

Returns true if there is any valid exportable item on the overlay layer.

virtual bool makVrf::DtOverlayShapeFileSaveHandler::exportOverlay ( const std::string &  overlay,
const std::string &  rootname 
)
virtual

Exports all valid overlay items on the given layer to the rootname file.

virtual const DtFilename& makVrf::DtOverlayShapeFileSaveHandler::exportTo ( ) const
virtual

Directory name to export to.

When exporting from a shapefile this will be set to that directory

virtual bool makVrf::DtOverlayShapeFileSaveHandler::isExportable ( makVrv::DtUniqueID  ) const
virtual

Returns true if this id is an exportable id.

virtual bool makVrf::DtOverlayShapeFileSaveHandler::exportPointModels ( const std::set< makVrv::DtUniqueID > &  points,
const std::string &  root,
const std::string &  type = "P" 
)
protectedvirtual

Exports point, linear and area models to the specified root concactinated with the supplied filename.

virtual bool makVrf::DtOverlayShapeFileSaveHandler::exportAreaModels ( const std::set< makVrv::DtUniqueID > &  areas,
const std::string &  root,
const std::string &  type = "A" 
)
protectedvirtual
virtual bool makVrf::DtOverlayShapeFileSaveHandler::exportLinearModels ( const std::set< makVrv::DtUniqueID > &  lines,
const std::string &  root,
const std::string &  type = "L" 
)
protectedvirtual
virtual void makVrf::DtOverlayShapeFileSaveHandler::removeExistingFiles ( const std::string &  ) const
protectedvirtual

Removes any existing shapefiles at the given location. Called before saving new files.

virtual bool makVrf::DtOverlayShapeFileSaveHandler::isExportableModel ( makVrv::DtModel ) const
protectedvirtual

Returns true if this is an exportable model.

virtual bool makVrf::DtOverlayShapeFileSaveHandler::isPointModel ( makVrv::DtModel ) const
protectedvirtual
virtual bool makVrf::DtOverlayShapeFileSaveHandler::isAreaModel ( makVrv::DtModel ) const
protectedvirtual
virtual bool makVrf::DtOverlayShapeFileSaveHandler::isLinearModel ( makVrv::DtModel ) const
protectedvirtual
virtual bool makVrf::DtOverlayShapeFileSaveHandler::isPointModel ( makVrv::DtUniqueID  ) const
protectedvirtual
virtual bool makVrf::DtOverlayShapeFileSaveHandler::isAreaModel ( makVrv::DtUniqueID  ) const
protectedvirtual
virtual bool makVrf::DtOverlayShapeFileSaveHandler::isLinearModel ( makVrv::DtUniqueID  ) const
protectedvirtual
virtual makVrv::DtModel* makVrf::DtOverlayShapeFileSaveHandler::modelFor ( makVrv::DtUniqueID  ) const
protectedvirtual
virtual makVrv::DtSceneObject* makVrf::DtOverlayShapeFileSaveHandler::findSceneObjectFor ( makVrv::DtUniqueID  ) const
protectedvirtual
virtual GDALDriver* makVrf::DtOverlayShapeFileSaveHandler::createOGRDriver ( const char driverName = "ESRI Shapefile")
protectedvirtual
virtual OGRLayer* makVrf::DtOverlayShapeFileSaveHandler::initializeLayerBasedOnType ( const std::string &  root,
const std::string &  fileExtension,
int  ogrType 
)
protectedvirtual
virtual void makVrf::DtOverlayShapeFileSaveHandler::addFeaturesToLayer ( const std::set< makVrv::DtUniqueID > &  items,
OGRLayer *  ,
int  type 
) const
protectedvirtual
virtual void makVrf::DtOverlayShapeFileSaveHandler::cleanup ( )
protectedvirtual
virtual OGRGeometry* makVrf::DtOverlayShapeFileSaveHandler::convertObjectToGeometry ( makVrv::DtUniqueID  ,
int  type 
) const
protectedvirtual
virtual std::string makVrf::DtOverlayShapeFileSaveHandler::objectName ( makVrv::DtUniqueID  ) const
protectedvirtual
virtual std::string makVrf::DtOverlayShapeFileSaveHandler::objectPaletteName ( makVrv::DtUniqueID  ) const
protectedvirtual
virtual std::string makVrf::DtOverlayShapeFileSaveHandler::objectEntityType ( makVrv::DtUniqueID  ) const
protectedvirtual

Member Data Documentation

makVrv::DtDe& makVrf::DtOverlayShapeFileSaveHandler::myDe
protected
GDALDriver* makVrf::DtOverlayShapeFileSaveHandler::myCurrentDriver
protected
GDALDataset* makVrf::DtOverlayShapeFileSaveHandler::myCurrentDataSource
protected
DtFilename makVrf::DtOverlayShapeFileSaveHandler::myExportToDirectory
protected

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

Document ID: Generated on Thu Aug 27 10:56:05 EDT 2020 from SVN revision 217100
Copyright © 2005-2020 MAK Technologies. All Rights Reserved (www.mak.com)