VR-Forces 4.0.4 Class Documentation
Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions
DtVpfDatabase Class Reference

This is the VPF Database class. More...

List of all members.

Public Member Functions

 DtVpfDatabase (DtString path)
 Constructor takes a string that represents the absolute path to the database'sbase directory.
virtual ~DtVpfDatabase ()
 Destructor.
virtual bool initDatabase ()
 Initializes the the database by loading the proper files.
virtual DtString dbPath () const
 returns the path of the database
virtual DtString library () const
 returns the name of the requested library
virtual DtString theme () const
 returns the name of the theme that is requested
virtual DtString feature () const
 returns the name of the feature that is requested
virtual DtString tilePath (int ID) const
 returns the path to the requested tile
virtual bool setAreaOfInterest (const DtGeodeticCoord &SWCorner, const DtGeodeticCoord &NECorner)
 sets the area of interest between two lat/long points
virtual void getAreaOfInterest (DtGeodeticCoord &SWCorner, DtGeodeticCoord &NECorner) const
 gets the area of interest and sets the SW and NE values in the DtGeodeticCoord structures that are passed in
virtual bool setLibraryOfInterest (DtString lib)
 sets the library of interest
virtual bool setThemeOfInterest (DtString theme)
 sets the theme of interest
virtual bool setFeatureOfInterest (DtString feature)
 sets the feature of interest
virtual bool loadTiles (DtVectorNetwork *vectorNetwork)
 loads the tiles based on area of interest, theme and features requested into the the submitted GDB vector network.
virtual DtTerrainDatabaseterrainDatabase () const
 returns the terrain database that is being loaded with the vector data.
virtual void setTerrainDatabase (DtTerrainDatabase *tdb)
 sets the terrain database that is being loaded with vector features
virtual DtVpfSpecFactoryspecFactory () const
 returns the specification factory that is being used to create specifications for loading into the MaK terrain database
virtual std::list< DtStringlibraryList () const
 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< DtStringthemeList () const
 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< DtStringfeatureList () const
 returns a list of all the features in the given theme returns an empty list if the theme does not exist or not initialized

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)
 Copy constructor is private to prevent copying.
DtVpfDatabaseoperator= (const DtVpfDatabase &input)
 Assignment operator is private to prevent copying.

Detailed Description

This is the VPF Database class.

It can load a feature or set of features from a VPF directory structure


Constructor & Destructor Documentation

DtVpfDatabase::DtVpfDatabase ( const DtVpfDatabase input) [private]

Copy constructor is private to prevent copying.

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 [inline, virtual]

returns the name of the requested library

Returns:
A DtString containing the name of the requested library
virtual DtString DtVpfDatabase::theme ( ) const [inline, virtual]

returns the name of the theme that is requested

Returns:
A DtString containing the requested theme
virtual DtString DtVpfDatabase::feature ( ) const [inline, virtual]

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

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 
) [protected, virtual]

Member Data Documentation

DtGeodeticCoord DtVpfDatabase::mySWCorner [protected]
DtGeodeticCoord DtVpfDatabase::myNECorner [protected]

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

Document ID: Generated on Fri Jun 29 16:33:32 EDT 2012 from SVN revision 116588
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)