VR-Forces 4.0.4 Class Documentation
Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | Static Protected Attributes
DtPixmapPaperMapRecord Class Reference

class DtPixmapPaperMapRecord: Instances of this class are accessors to Mak terrain database metafiles. More...

Inheritance diagram for DtPixmapPaperMapRecord:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 DtPixmapPaperMapRecord ()
 default constructor.
virtual ~DtPixmapPaperMapRecord ()
 destructor
 DtPixmapPaperMapRecord (const DtPixmapPaperMapRecord &orig)
 copy constructor
DtPixmapPaperMapRecordoperator= (const DtPixmapPaperMapRecord &rhs)
 assignment operator
virtual DtPaperMapRecordclone ()
virtual DtString recordTypeName () const
 Returns the record type.
virtual void setSwCorner (const DtPoint &pnt)
 Returns the southwest point of the bitmap.
virtual const DtPointswCorner () const
virtual void setNeCorner (const DtPoint &pnt)
 Returns the northeast point of the bitmap.
virtual const DtPointneCorner () 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 DtMetafileRecordcreate ()

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

Detailed Description

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


Constructor & Destructor Documentation

default constructor.

destructor

copy constructor


Member Function Documentation

DtPixmapPaperMapRecord& DtPixmapPaperMapRecord::operator= ( const DtPixmapPaperMapRecord rhs)

assignment operator

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::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.

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.


Member Data Documentation


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)