![]() |
VR-Forces 4.0.4 Class Documentation
|
00001 /******************************************************************************* 00002 ** Copyright (c) 2004 MAK Technologies, Inc. 00003 ** All rights reserved. 00004 *******************************************************************************/ 00005 /******************************************************************************* 00006 ** $RCSfile: pprMapDb.h,v $ $Revision: 1.8 $ $State: Exp $ 00007 *******************************************************************************/ 00008 00009 #ifndef PPRMAPDB_H 00010 #define PPRMAPDB_H 00011 00012 #include "terrainDbFactory/terrainDbFactoryDefines.h" 00013 #include <vlutil/vlFilename.h> 00014 00015 class DtList; 00016 class DtPaperMap; 00017 00018 // class DtPaperMapDatabase 00019 00020 class DT_DLL_terrainDbFactory DtPaperMapDatabase 00021 { 00022 00023 public: 00024 00025 // default constructor. 00026 DtPaperMapDatabase(); 00027 00028 // destructor 00029 virtual ~DtPaperMapDatabase(); 00030 00031 // Initialize the papermap set. 00032 virtual bool init(const DtFilename& filename); 00033 00034 // Returns the filename of the metafile where the papermaps were specified. 00035 virtual DtFilename filename() const; 00036 00037 // Returns a pointer to the papermap list (list of DtPaperMap instances). 00038 virtual DtList* paperMapList() const; 00039 00040 // Moves the specified map toward the front of the list by one, if it is not 00041 // the first entry. Returns true if successful. 00042 virtual bool lowerMapLayer(DtPaperMap* map); 00043 00044 // Modes the specified map toward the end of the list by one, if it is not 00045 // already the last entry. Returns true if successful. 00046 virtual bool raiseMapLayer(DtPaperMap* map); 00047 00048 // Removes the paper map record from the database 00049 virtual bool removePaperMap(DtPaperMap* map); 00050 00051 private: 00052 // copy constructor - not implemented 00053 DtPaperMapDatabase(const DtPaperMapDatabase& orig); 00054 // assignment operator - not implemented 00055 DtPaperMapDatabase& operator=(const DtPaperMapDatabase& rhs); 00056 00057 protected: 00058 00059 DtFilename myFilename; 00060 00061 DtList* myPaperMapList; 00062 00063 }; 00064 00065 #endif