VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
dfadInfo.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2003 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 /*******************************************************************************
6 ** $RCSfile: dfad_info.h,v $ $Revision: 1.5 $ $State: Exp $
7 *******************************************************************************/
8 
9 //
10 // Define a dfad data Info.
11 // It permits access to read it sequentially from a
12 // point, asking for:
13 // a feature : 2 words
14 // a coord : a word
15 // checksum : a word
16 // a zero word.
17 //
18 // - setPointerToWord(int i = 0); i <= 601 : sets the pointer to word i
19 // - getFeature(pfeature): gets next feature data size (two words)
20 // - getCoord(pCoord): gets next coord data size ( word)
21 // - getWords(pWords, howMany): gets howMany words
22 //
23 // For more details, see dfad_main.doc
24 //
25 
26 
27 #ifndef __DFADInfo
28 #define __DFADInfo
29 
30 #include "dted/dtedDefines.h"
31 #include <stdio.h>
32 #include "geometry/point.h"
33 #include "dted/dfadRecord.h"
34 
36 {
37 public:
38 
39  DtDfadInfo();
40 
41  virtual bool setFile(FILE* f);
42  virtual void setOrigin(const DtPoint &origin);
43  virtual bool getFeatureData(DtU8* pfeature);
44  virtual bool getCoordData(DtU8* pcoord);
45  virtual bool getWords(DtU8* pword, int howMany = 1);
46 
47  inline const DtPoint &origin() {return myOrigin;}
48 
49 protected:
50 
53 };
54 
55 #endif
const DtPoint & origin()
Definition: dfadInfo.h:47
voidpf uLong int origin
Definition: ioapi.h:42
Definition: dfadRecord.h:38
#define DT_DLL_dted
Definition: dtedDefines.h:23
Definition: dfadInfo.h:35
DtPoint myOrigin
Definition: dfadInfo.h:52
DtDfadRecord myRecord
Definition: dfadInfo.h:51
Definition: point.h:34

Document ID: Generated on Wed Mar 27 22:49:11 EDT 2024 from SVN revision 264633
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)