![]() |
VR-Forces 4.0.4 Class Documentation
|
00001 /******************************************************************************* 00002 ** Copyright (c) 1998 MAK Technologies, Inc. 00003 ** All rights reserved. 00004 *******************************************************************************/ 00005 /******************************************************************************* 00006 ** $RCSfile: pixPprMapRec.h,v $ $Revision: 1.14 $ $State: Exp $ 00007 *******************************************************************************/ 00008 00009 #ifndef PIXPPRMAPREC_H 00010 #define PIXPPRMAPREC_H 00011 00014 00015 #include "terrainDbFactory/terrainDbFactoryDefines.h" 00016 #include "terrainDbFactory/pprMapRec.h" 00017 #include "geometry/point.h" 00018 00023 00024 class DT_DLL_terrainDbFactory DtPixmapPaperMapRecord : public DtPaperMapRecord 00025 { 00026 00027 public: 00028 00030 DtPixmapPaperMapRecord(); 00031 00033 virtual ~DtPixmapPaperMapRecord(); 00034 00036 DtPixmapPaperMapRecord(const DtPixmapPaperMapRecord& orig); 00037 00039 DtPixmapPaperMapRecord& operator=(const DtPixmapPaperMapRecord& rhs); 00040 00041 virtual DtPaperMapRecord* clone(); 00042 00044 virtual DtString recordTypeName() const; 00045 00047 virtual void setSwCorner(const DtPoint& pnt); 00048 virtual const DtPoint& swCorner() const; 00049 00051 virtual void setNeCorner(const DtPoint& pnt); 00052 virtual const DtPoint& neCorner() const; 00053 00059 virtual void setCornersInDatabase(bool db); 00060 virtual bool cornersInDatabase(); 00061 00063 virtual bool get(std::istream& stream); 00064 00066 virtual bool processToken(std::istream& stream, DtString& token); 00067 00069 static DtMetafileRecord * create(); 00070 00071 protected: 00072 00074 virtual bool writeAttributes(std::ostream& stream) const; 00075 00077 virtual bool getAttribute(const DtString attrName, DtString& value, unsigned index=0); 00078 00080 virtual bool setToken(const DtString& token, const DtString value); 00081 00082 protected: 00083 00084 DtPoint mySwCorner; 00085 DtPoint myNeCorner; 00086 00087 bool myCornersInDBCoords; 00088 00089 static const DtString theParameterSwCorner; 00090 static const DtString theParameterNeCorner; 00091 00092 }; 00093 00094 #endif 00095