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

Handler for looking at all the props in the system and translating them into shapefile point features.

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

Classes

struct  PropInformation
 

Public Member Functions

 DtPropShapefileCreateHandler (makVrv::DtDe &de)
 
virtual ~DtPropShapefileCreateHandler ()
 
virtual const DtFilename & exportTo () const
 
virtual void setExportToDirectory (const DtFilename &)
 
virtual const DtFilename & propInformationFilename () const
 
virtual void setPropInformationFilename (const DtFilename &)
 
virtual bool exportPropsToShapefile (const std::string &, makVrv::DtUnicode &sError, DtString &filesCreated) const
 
- Public Member Functions inherited from makVrv::DtVirtualBaseClass
 DtVirtualBaseClass ()
 
virtual ~DtVirtualBaseClass ()
 

Static Public Member Functions

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

Protected Types

typedef struct
makVrf::DtPropShapefileCreateHandler::PropInformation 
PropInformation
 
typedef std::map< std::string,
PropInformation
PropInformationMap
 

Protected Member Functions

virtual PropInformationMap readPropInformation (const DtFilename &) const
 
virtual void addPropRecords (const std::vector< makArchives::DtPropRecord > &propRecords, OGRLayer *poLayer, const PropInformationMap &propInformationMap, const DtFilename &dataRoot, bool forSpeedTree) const
 
virtual DtFilename modelDefinitionFilename (const std::string &modelDefinition, const DtFilename &dataRoot, bool &isSpeedtree) const
 
virtual bool createBuildingsShapefile (const makArchives::DtTerrainRecord &, const PropInformationMap &, const DtFilename &relativePath, GDALDriver *, const DtFilename &, makVrv::DtUnicode &sError, bool &haveSome) const
 
virtual bool createSpeedTreeShapefile (const makArchives::DtTerrainRecord &, const PropInformationMap &, const DtFilename &relativePath, GDALDriver *, const DtFilename &, makVrv::DtUnicode &sError, bool &haveSome) const
 
virtual void removeSourceFiles (const DtFilename &, const std::string &type) const
 
virtual GDALDataset * createDataSource (GDALDriver *, const DtFilename &, const std::string &type, makVrv::DtUnicode &sError) const
 
virtual OGRLayer * createLayer (GDALDataset *, bool forSpeedTree, makVrv::DtUnicode &sError) const
 
virtual bool hasBuildings (const makArchives::DtTerrainRecord &terrainRecord, const DtFilename &) const
 
virtual bool hasSpeedTrees (const makArchives::DtTerrainRecord &terrainRecord, const DtFilename &) const
 
virtual bool hasBuildings (const makArchives::DtPropSettingsRecord &records, const DtFilename &dataRoot) const
 
virtual bool hasSpeedTrees (const makArchives::DtPropSettingsRecord &records, const DtFilename &dataRoot) const
 

Protected Attributes

DtFilename myExportToDirectory
 
DtFilename myPropInformationFilename
 
makVrv::DtDemyDe
 

Member Typedef Documentation

Constructor & Destructor Documentation

makVrf::DtPropShapefileCreateHandler::DtPropShapefileCreateHandler ( makVrv::DtDe de)

CTOR.

virtual makVrf::DtPropShapefileCreateHandler::~DtPropShapefileCreateHandler ( )
virtual

DTOR.

Member Function Documentation

static DtPropShapefileCreateHandler& makVrf::DtPropShapefileCreateHandler::instance ( makVrv::DtDe de)
static
static void makVrf::DtPropShapefileCreateHandler::registerInstance ( makVrv::DtDe de,
DtPropShapefileCreateHandler  
)
static
virtual const DtFilename& makVrf::DtPropShapefileCreateHandler::exportTo ( ) const
virtual

Directory name to export to. When exporting from a shapefile this will be set to that directory.

virtual void makVrf::DtPropShapefileCreateHandler::setExportToDirectory ( const DtFilename &  )
virtual
virtual const DtFilename& makVrf::DtPropShapefileCreateHandler::propInformationFilename ( ) const
virtual

Accessor/mutator for prop information that will be stored in shapefile. Default is /importConfig/PropAttributes.txt.

virtual void makVrf::DtPropShapefileCreateHandler::setPropInformationFilename ( const DtFilename &  )
virtual
virtual bool makVrf::DtPropShapefileCreateHandler::exportPropsToShapefile ( const std::string &  ,
makVrv::DtUnicode sError,
DtString filesCreated 
) const
virtual

Exports all the props to the shapefile with the given name. Will overwrite any shapefile and shapefile information of that name that might exist.

virtual PropInformationMap makVrf::DtPropShapefileCreateHandler::readPropInformation ( const DtFilename &  ) const
protectedvirtual
virtual void makVrf::DtPropShapefileCreateHandler::addPropRecords ( const std::vector< makArchives::DtPropRecord > &  propRecords,
OGRLayer *  poLayer,
const PropInformationMap propInformationMap,
const DtFilename &  dataRoot,
bool  forSpeedTree 
) const
protectedvirtual
virtual DtFilename makVrf::DtPropShapefileCreateHandler::modelDefinitionFilename ( const std::string &  modelDefinition,
const DtFilename &  dataRoot,
bool isSpeedtree 
) const
protectedvirtual
virtual bool makVrf::DtPropShapefileCreateHandler::createBuildingsShapefile ( const makArchives::DtTerrainRecord ,
const PropInformationMap ,
const DtFilename &  relativePath,
GDALDriver *  ,
const DtFilename &  ,
makVrv::DtUnicode sError,
bool haveSome 
) const
protectedvirtual
virtual bool makVrf::DtPropShapefileCreateHandler::createSpeedTreeShapefile ( const makArchives::DtTerrainRecord ,
const PropInformationMap ,
const DtFilename &  relativePath,
GDALDriver *  ,
const DtFilename &  ,
makVrv::DtUnicode sError,
bool haveSome 
) const
protectedvirtual
virtual void makVrf::DtPropShapefileCreateHandler::removeSourceFiles ( const DtFilename &  ,
const std::string &  type 
) const
protectedvirtual
virtual GDALDataset* makVrf::DtPropShapefileCreateHandler::createDataSource ( GDALDriver *  ,
const DtFilename &  ,
const std::string &  type,
makVrv::DtUnicode sError 
) const
protectedvirtual
virtual OGRLayer* makVrf::DtPropShapefileCreateHandler::createLayer ( GDALDataset *  ,
bool  forSpeedTree,
makVrv::DtUnicode sError 
) const
protectedvirtual
virtual bool makVrf::DtPropShapefileCreateHandler::hasBuildings ( const makArchives::DtTerrainRecord terrainRecord,
const DtFilename &   
) const
protectedvirtual
virtual bool makVrf::DtPropShapefileCreateHandler::hasSpeedTrees ( const makArchives::DtTerrainRecord terrainRecord,
const DtFilename &   
) const
protectedvirtual
virtual bool makVrf::DtPropShapefileCreateHandler::hasBuildings ( const makArchives::DtPropSettingsRecord records,
const DtFilename &  dataRoot 
) const
protectedvirtual
virtual bool makVrf::DtPropShapefileCreateHandler::hasSpeedTrees ( const makArchives::DtPropSettingsRecord records,
const DtFilename &  dataRoot 
) const
protectedvirtual

Member Data Documentation

DtFilename makVrf::DtPropShapefileCreateHandler::myExportToDirectory
protected
DtFilename makVrf::DtPropShapefileCreateHandler::myPropInformationFilename
protected
makVrv::DtDe& makVrf::DtPropShapefileCreateHandler::myDe
protected

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

Document ID: Generated on Thu Jun 1 17:58:13 EDT 2023 from SVN revision 255404
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)