![]() |
VR-Forces 4.0.4 Class Documentation
|
class DtPixmapPaperMapRecord: Instances of this class are accessors to Mak terrain database metafiles. More...

Public Member Functions | |
| DtPixmapPaperMapRecord () | |
| default constructor. | |
| virtual | ~DtPixmapPaperMapRecord () |
| destructor | |
| DtPixmapPaperMapRecord (const DtPixmapPaperMapRecord &orig) | |
| copy constructor | |
| DtPixmapPaperMapRecord & | operator= (const DtPixmapPaperMapRecord &rhs) |
| assignment operator | |
| virtual DtPaperMapRecord * | clone () |
| virtual DtString | recordTypeName () const |
| Returns the record type. | |
| virtual void | setSwCorner (const DtPoint &pnt) |
| Returns the southwest point of the bitmap. | |
| virtual const DtPoint & | swCorner () const |
| virtual void | setNeCorner (const DtPoint &pnt) |
| Returns the northeast point of the bitmap. | |
| virtual const DtPoint & | neCorner () const |
| virtual void | setCornersInDatabase (bool db) |
| If a papermap gets loaded with out extents, it's extents are set to a default of whatever the terrain's extent is. | |
| virtual bool | cornersInDatabase () |
| virtual bool | get (std::istream &stream) |
| Read self from stream. | |
| virtual bool | processToken (std::istream &stream, DtString &token) |
| identifies a token or passes it to the parent class | |
Static Public Member Functions | |
| static DtMetafileRecord * | create () |
Protected Member Functions | |
| virtual bool | writeAttributes (std::ostream &stream) const |
| Write self to stream. | |
| virtual bool | getAttribute (const DtString attrName, DtString &value, unsigned index=0) |
| Given the name of a record's attribute, returns its value in the 'value' parameter. | |
| virtual bool | setToken (const DtString &token, const DtString value) |
| identifies a token and returns true if the value can be set to it, false otherwise | |
Protected Attributes | |
| DtPoint | mySwCorner |
| DtPoint | myNeCorner |
| bool | myCornersInDBCoords |
Static Protected Attributes | |
| static const DtString | theParameterSwCorner |
| static const DtString | theParameterNeCorner |
class DtPixmapPaperMapRecord: Instances of this class are accessors to Mak terrain database metafiles.
Certain database formats require the use of a metafile as the top-level file. Example: gdf, dted
default constructor.
| virtual DtPixmapPaperMapRecord::~DtPixmapPaperMapRecord | ( | ) | [virtual] |
destructor
| DtPixmapPaperMapRecord::DtPixmapPaperMapRecord | ( | const DtPixmapPaperMapRecord & | orig | ) |
copy constructor
| DtPixmapPaperMapRecord& DtPixmapPaperMapRecord::operator= | ( | const DtPixmapPaperMapRecord & | rhs | ) |
assignment operator
| virtual DtPaperMapRecord* DtPixmapPaperMapRecord::clone | ( | ) | [virtual] |
Reimplemented from DtPaperMapRecord.
| virtual DtString DtPixmapPaperMapRecord::recordTypeName | ( | ) | const [virtual] |
Returns the record type.
Reimplemented from DtPaperMapRecord.
| virtual void DtPixmapPaperMapRecord::setSwCorner | ( | const DtPoint & | pnt | ) | [virtual] |
Returns the southwest point of the bitmap.
| virtual const DtPoint& DtPixmapPaperMapRecord::swCorner | ( | ) | const [virtual] |
| virtual void DtPixmapPaperMapRecord::setNeCorner | ( | const DtPoint & | pnt | ) | [virtual] |
Returns the northeast point of the bitmap.
| virtual const DtPoint& DtPixmapPaperMapRecord::neCorner | ( | ) | const [virtual] |
| virtual void DtPixmapPaperMapRecord::setCornersInDatabase | ( | bool | db | ) | [virtual] |
If a papermap gets loaded with out extents, it's extents are set to a default of whatever the terrain's extent is.
However when this happens the corners are set in database coords not the pixmap's current coordinate system. This flag indicates this case.
| virtual bool DtPixmapPaperMapRecord::cornersInDatabase | ( | ) | [virtual] |
| virtual bool DtPixmapPaperMapRecord::get | ( | std::istream & | stream | ) | [virtual] |
Read self from stream.
Reimplemented from DtPaperMapRecord.
| virtual bool DtPixmapPaperMapRecord::processToken | ( | std::istream & | stream, |
| DtString & | token | ||
| ) | [virtual] |
identifies a token or passes it to the parent class
Reimplemented from DtPaperMapRecord.
| static DtMetafileRecord* DtPixmapPaperMapRecord::create | ( | ) | [static] |
Reimplemented from DtPaperMapRecord.
| virtual bool DtPixmapPaperMapRecord::writeAttributes | ( | std::ostream & | stream | ) | const [protected, virtual] |
Write self to stream.
Reimplemented from DtPaperMapRecord.
| virtual bool DtPixmapPaperMapRecord::getAttribute | ( | const DtString | attrName, |
| DtString & | value, | ||
| unsigned | index = 0 |
||
| ) | [protected, virtual] |
Given the name of a record's attribute, returns its value in the 'value' parameter.
Returns True if successful; false otherwise
Reimplemented from DtPaperMapRecord.
| virtual bool DtPixmapPaperMapRecord::setToken | ( | const DtString & | token, |
| const DtString | value | ||
| ) | [protected, virtual] |
identifies a token and returns true if the value can be set to it, false otherwise
Reimplemented from DtPaperMapRecord.
DtPoint DtPixmapPaperMapRecord::mySwCorner [protected] |
DtPoint DtPixmapPaperMapRecord::myNeCorner [protected] |
bool DtPixmapPaperMapRecord::myCornersInDBCoords [protected] |
const DtString DtPixmapPaperMapRecord::theParameterSwCorner [static, protected] |
const DtString DtPixmapPaperMapRecord::theParameterNeCorner [static, protected] |