VR-Forces 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) 2025 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() override;
34 
37 
40 
41  virtual DtPaperMapRecord *clone() override;
42 
44  virtual DtString recordTypeName() const override;
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) override;
64 
66  virtual bool processToken(std::istream &stream, DtString &token) override;
67 
69  static DtMetafileRecord * create();
70 
71 protected:
72 
74  virtual bool writeAttributes(std::ostream &stream) const override;
75 
77  virtual bool getAttribute(const DtString attrName, DtString &value,
78  unsigned index = 0) override;
79 
81  virtual bool setToken(const DtString &token, const DtString value) override;
82 
83 protected:
84 
87 
89 
92 
93 };
94 
95 #endif
96 
DtPaperMapRecord & operator=(const DtPaperMapRecord &rhs)
DtPoint mySwCorner
Definition: pixmapPaperMapRecord.h:85
class DtPixmapPaperMapRecord: Instances of this class are accessors to Mak terrain database metafiles...
Definition: pixmapPaperMapRecord.h:24
bool myCornersInDBCoords
Definition: pixmapPaperMapRecord.h:88
virtual bool getAttribute(const DtString attrName, DtString &value, unsigned index=0) override
Given the name of a record's attribute, returns its value in the 'value' parameter. Returns True if successful; false otherwise.
Definition: paperMapRecord.h:22
static DtMetafileRecord * create()
virtual DtPaperMapRecord * clone()
DtPoint myNeCorner
Definition: pixmapPaperMapRecord.h:86
#define DT_DLL_terrainDbFactory
Definition: terrainDbFactoryDefines.h:23
voidpf stream
Definition: ioapi.h:39
static const DtString theParameterNeCorner
Definition: pixmapPaperMapRecord.h:91
virtual bool processToken(std::istream &stream, DtString &token) override
identifies a token or passes token the parent class.
Definition: metafileRecord.h:28
virtual bool setToken(const DtString &token, const DtString value) override
identifies a token and returns true if the value can be set to it, false otherwise ...
virtual DtString recordTypeName() const override
Returns the type name for the particular record. Descendants should have this method return some stri...
static const DtString theParameterSwCorner
Definition: pixmapPaperMapRecord.h:90
virtual bool writeAttributes(std::ostream &stream) const override
Write attributes to stream. This is called by put(stream)
Definition: point.h:34

Document ID: Generated on Thu Oct 23 22:29:17 EDT 2025 from SVN revision 280951
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)