VR-Forces 4.6 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
dfadFeature.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_feature.h,v $ $Revision: 1.9 $ $State: Exp $
7 *******************************************************************************/
8 
9 //
10 // Defines a basic feature of any type to be read
11 //
12 #ifndef __DFADFEATURE
13 #define __DFADFEATURE
14 
15 #include "dted/dtedDefines.h"
16 #include <stdio.h>
17 #include <vlutil/vlMachineTypes.h>
18 #include "geometry/point.h"
19 #include <vlutil/vlList.h>
20 #include "dted/dfadInfo.h"
21 
22 
24 {
25 public:
26 
27  DtDfadFeature();
28  virtual ~DtDfadFeature();
29 
30  virtual DtDfadFeature& operator=(const DtDfadFeature& orig);
31 
32  virtual bool readBody(FILE* f);
33  virtual bool readList(FILE* f);
34 
35  virtual bool setBody(DtU8* data);
36 
37  virtual DtInt16 facNumber();
38  virtual DtInt8 type();
39  virtual DtInt16 fidCode();
40  virtual DtInt8 rsfFactor();
41  virtual DtInt16 countOfPoints();
42  virtual DtInt16 predominantHeight();
43  virtual DtInt32 heightInMeters();
44  virtual bool complete(DtDfadInfo &info);
45  virtual void clean();
46 
47  inline DtInt16 orientation() {return myOrientation;}
48  inline DtFloat32 length() {return myLength;}
49  inline DtFloat32 width() {return myWidth;}
50  inline DtList& list() {return myList;}
51 
52 protected:
53 
54  virtual void parseData();
55  virtual void parsePoint(const DtPoint &origin, DtU8* coord);
56  virtual void parseSpecificType();
57 
60 
63 
67 
68  DtU8 myData[9];
69  DtU8 myPoints[2700];
70 
74 
75  DtList myList;
76 };
77 
78 #endif

Document ID: Generated on Thu Apr 12 03:15:37 EDT 2018 from SVN revision 187986
Copyright © 2005-2018 VT MÄK. All Rights Reserved (www.mak.com)