VR-Forces 5.0.1 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
pixmapPaperMapRecord.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 1998 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 /*******************************************************************************
6 ** $RCSfile: pixPprMapRec.h,v $ $Revision: 1.14 $ $State: Exp $
7 *******************************************************************************/
8 
9 #ifndef PIXPPRMAPREC_H
10 #define PIXPPRMAPREC_H
11 
14 
17 #include "geometry/point.h"
18 
23 
25 {
26 
27 public:
28 
31 
33  virtual ~DtPixmapPaperMapRecord();
34 
37 
40 
41  virtual DtPaperMapRecord* clone();
42 
44  virtual DtString recordTypeName() const;
45 
47  virtual void setSwCorner(const DtPoint& pnt);
48  virtual const DtPoint& swCorner() const;
49 
51  virtual void setNeCorner(const DtPoint& pnt);
52  virtual const DtPoint& neCorner() const;
53 
59  virtual void setCornersInDatabase(bool db);
60  virtual bool cornersInDatabase();
61 
63  virtual bool get(std::istream& stream);
64 
66  virtual bool processToken(std::istream& stream, DtString& token);
67 
69  static DtMetafileRecord * create();
70 
71 protected:
72 
74  virtual bool writeAttributes(std::ostream& stream) const;
75 
77  virtual bool getAttribute(const DtString attrName, DtString& value, unsigned index=0);
78 
80  virtual bool setToken(const DtString& token, const DtString value);
81 
82 protected:
83 
86 
88 
91 
92 };
93 
94 #endif
95 
DtPaperMapRecord & operator=(const DtPaperMapRecord &rhs)
DtPoint mySwCorner
Definition: pixmapPaperMapRecord.h:84
virtual bool processToken(std::istream &stream, DtString &token)
identifies a token or passes token the parent class.
class DtPixmapPaperMapRecord: Instances of this class are accessors to Mak terrain database metafiles...
Definition: pixmapPaperMapRecord.h:24
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. Returns True if successful; false otherwise.
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 ...
bool myCornersInDBCoords
Definition: pixmapPaperMapRecord.h:87
Definition: paperMapRecord.h:22
virtual DtString recordTypeName() const
Returns the type name for the particular record. Descendants should have this method return some stri...
static DtMetafileRecord * create()
virtual DtPaperMapRecord * clone()
virtual bool writeAttributes(std::ostream &stream) const
Write attributes to stream. This is called by put(stream)
DtPoint myNeCorner
Definition: pixmapPaperMapRecord.h:85
#define DT_DLL_terrainDbFactory
Definition: terrainDbFactoryDefines.h:23
voidpf stream
Definition: ioapi.h:39
static const DtString theParameterNeCorner
Definition: pixmapPaperMapRecord.h:90
Definition: metafileRecord.h:28
static const DtString theParameterSwCorner
Definition: pixmapPaperMapRecord.h:89
Definition: point.h:34

Document ID: Generated on Mon Jun 20 00:38:30 EDT 2022 from SVN revision 244029
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)