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

This is the VPF Database class. It can load a feature or set of features from a VPF directory structure.

Public Member Functions

 DtVpfDatabase (DtString path)
 
virtual ~DtVpfDatabase ()
 
virtual bool initDatabase ()
 
virtual DtString dbPath () const
 
virtual DtString library () const
 
virtual DtString theme () const
 
virtual DtString feature () const
 
virtual DtString tilePath (int ID) const
 
virtual bool setAreaOfInterest (const DtGeodeticCoord &SWCorner, const DtGeodeticCoord &NECorner)
 
virtual void getAreaOfInterest (DtGeodeticCoord &SWCorner, DtGeodeticCoord &NECorner) const
 
virtual bool setLibraryOfInterest (DtString lib)
 
virtual bool setThemeOfInterest (DtString theme)
 
virtual bool setFeatureOfInterest (DtString feature)
 
virtual bool loadTiles (DtVectorNetwork *vectorNetwork)
 
virtual DtTerrainDatabaseterrainDatabase () const
 
virtual void setTerrainDatabase (DtTerrainDatabase *tdb)
 
virtual DtVpfSpecFactoryspecFactory () const
 
virtual std::list< DtStringlibraryList () const
 
virtual std::list< DtStringthemeList () const
 
virtual std::list< DtStringfeatureList () const
 

Protected Member Functions

virtual bool overlap (DtAreaQuad &a1, DtAreaQuad &a2)
 

Protected Attributes

DtVectorNetworkmyVectorNetwork
 
DtString myPath
 
DtString myLibraryOfInterest
 
DtString myThemeOfInterest
 
DtString myFeatureOfInterest
 
DtGeodeticCoord mySWCorner
 
DtGeodeticCoord myNECorner
 
DtVpfTablemyLibraryReferenceTable
 
DtVpfTablemyTileReferenceTable
 
DtVpfTablemyTileFaceTable
 
DtVpfTablemyTileFaceBoundsTable
 
DtVpfTablemyGeoReferenceTable
 
DtVpfTablemyThemeCatagoryTable
 
DtVpfTablemyFeatureClassTable
 
DtTerrainDatabasemyTerrainDatabase
 
DtVpfSpecFactorymySpecFactory
 

Private Member Functions

 DtVpfDatabase (const DtVpfDatabase &input)
 
DtVpfDatabaseoperator= (const DtVpfDatabase &input)
 

Constructor & Destructor Documentation

DtVpfDatabase::DtVpfDatabase ( const DtVpfDatabase input)
private

Copy constructor is private to prevent copying.

DtVpfDatabase::DtVpfDatabase ( DtString  path)

Constructor takes a string that represents the absolute path to the database'sbase directory.

virtual DtVpfDatabase::~DtVpfDatabase ( )
virtual

Destructor.

Member Function Documentation

DtVpfDatabase& DtVpfDatabase::operator= ( const DtVpfDatabase input)
private

Assignment operator is private to prevent copying.

virtual bool DtVpfDatabase::initDatabase ( )
virtual

Initializes the the database by loading the proper files.

Returns
a boolean to indicate the success or failure of the load
virtual DtString DtVpfDatabase::dbPath ( ) const
virtual

returns the path of the database

Returns
A DtString containing the path of the database
virtual DtString DtVpfDatabase::library ( ) const
inlinevirtual

returns the name of the requested library

Returns
A DtString containing the name of the requested library
virtual DtString DtVpfDatabase::theme ( ) const
inlinevirtual

returns the name of the theme that is requested

Returns
A DtString containing the requested theme
virtual DtString DtVpfDatabase::feature ( ) const
inlinevirtual

returns the name of the feature that is requested

Returns
A DtString containing the requested feature class
virtual DtString DtVpfDatabase::tilePath ( int  ID) const
virtual

returns the path to the requested tile

Returns
A DtString containing the relative tile path
virtual bool DtVpfDatabase::setAreaOfInterest ( const DtGeodeticCoord &  SWCorner,
const DtGeodeticCoord &  NECorner 
)
virtual

sets the area of interest between two lat/long points

Returns
A boolean indicating the success or failure of setting the AOI
virtual void DtVpfDatabase::getAreaOfInterest ( DtGeodeticCoord &  SWCorner,
DtGeodeticCoord &  NECorner 
) const
virtual

gets the area of interest and sets the SW and NE values in the DtGeodeticCoord structures that are passed in

virtual bool DtVpfDatabase::setLibraryOfInterest ( DtString  lib)
virtual

sets the library of interest

virtual bool DtVpfDatabase::setThemeOfInterest ( DtString  theme)
virtual

sets the theme of interest

Returns
A boolean indicating the success or failure of setting the theme
virtual bool DtVpfDatabase::setFeatureOfInterest ( DtString  feature)
virtual

sets the feature of interest

Returns
A boolean indicating the success or failure of setting the feature class
virtual bool DtVpfDatabase::loadTiles ( DtVectorNetwork vectorNetwork)
virtual

loads the tiles based on area of interest, theme and features requested into the the submitted GDB vector network.

Returns
A boolean indicating the success or failure of loading the tiles
virtual DtTerrainDatabase* DtVpfDatabase::terrainDatabase ( ) const
virtual

returns the terrain database that is being loaded with the vector data. Needed for coordinate conversions internally

Returns
a pointer to a terrain database
virtual void DtVpfDatabase::setTerrainDatabase ( DtTerrainDatabase tdb)
virtual

sets the terrain database that is being loaded with vector features

virtual DtVpfSpecFactory* DtVpfDatabase::specFactory ( ) const
virtual

returns the specification factory that is being used to create specifications for loading into the MaK terrain database

Returns
a pointer to a specification database.
virtual std::list<DtString> DtVpfDatabase::libraryList ( ) const
virtual

returns a list of all the libraries in the given database returns an empty list if the theme does not exist or not initialized

virtual std::list<DtString> DtVpfDatabase::themeList ( ) const
virtual

returns a list of all the themes in the current library returns an empty list if the database is not initialized or exists

virtual std::list<DtString> DtVpfDatabase::featureList ( ) const
virtual

returns a list of all the features in the given theme returns an empty list if the theme does not exist or not initialized

virtual bool DtVpfDatabase::overlap ( DtAreaQuad a1,
DtAreaQuad a2 
)
protectedvirtual

Member Data Documentation

DtVectorNetwork* DtVpfDatabase::myVectorNetwork
protected
DtString DtVpfDatabase::myPath
protected
DtString DtVpfDatabase::myLibraryOfInterest
protected
DtString DtVpfDatabase::myThemeOfInterest
protected
DtString DtVpfDatabase::myFeatureOfInterest
protected
DtGeodeticCoord DtVpfDatabase::mySWCorner
protected
DtGeodeticCoord DtVpfDatabase::myNECorner
protected
DtVpfTable* DtVpfDatabase::myLibraryReferenceTable
protected
DtVpfTable* DtVpfDatabase::myTileReferenceTable
protected
DtVpfTable* DtVpfDatabase::myTileFaceTable
protected
DtVpfTable* DtVpfDatabase::myTileFaceBoundsTable
protected
DtVpfTable* DtVpfDatabase::myGeoReferenceTable
protected
DtVpfTable* DtVpfDatabase::myThemeCatagoryTable
protected
DtVpfTable* DtVpfDatabase::myFeatureClassTable
protected
DtTerrainDatabase* DtVpfDatabase::myTerrainDatabase
protected
DtVpfSpecFactory* DtVpfDatabase::mySpecFactory
protected

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

Document ID: Generated on Sun Dec 4 20:22:03 EST 2022 from SVN revision 249613
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)