VR-Forces 5.0.1 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
c7bAbstractFeature.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2002 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 /*******************************************************************************
6 ** $RCSfile: c7bAbstractFeature.h,v $ $Revision: 1.11 $ $State: Exp $
7 *******************************************************************************/
8 #ifndef c7bAbstractFeature_H_
9 #define c7bAbstractFeature_H_
10 
11 #include "ctdb/ctdbDefines.h"
12 #include <stdio.h>
13 #include "ctdb/c7NetTypes.h"
14 
15 class DtC7bReader;
16 
17 
18 // Class: DtC7bAbstractFeature
19 //
20 // The class is public because should not be used but anyone else than
21 // DtC7b.
22 //
23 
25 {
26 public:
28  DtNetU8 myNumAbstracts;
29  DtNetU8 myType;
30 };
31 
33 {
34 public:
35  DtNetU8 myType;
36  DtNetU8 myNumAbstracts;
38 };
39 
41 {
42 public:
43 
44  enum
45  {
46  CTDB_ABSTRACT_CANOPY = 1,
56  CTDB_ABSTRACT_MAX
57 
58  } DtC7bAbstractFeatureType;
59 
61  DtC7bAbstractFeature(const DtC7NetU32* data);
63 
64  bool read(FILE *f);
65  bool processFeature(DtC7bReader *db);
66 
67  bool impenetrable(int abstData);
68  int soilIndex(int abstData);
69  int level(int abstData);
70  int soilmapIndex(int abstData);
71  int slopeDegrees(int abstData);
72  char *label();
73  unsigned edgeNumber(int abstData);
74 
75  const DtNetU8& numAbstracts() const;
76  const DtNetU8& type() const;
77  int abstractData(int abstData) const;
78  DtC7NetU16 numVertices(bool swap = false) const;
79  double vertex(int) const;
80 
85 };
86 
87 #endif
88 
Definition: c7bReader.h:52
Definition: c7bAbstractFeature.h:32
DtNetU8 myType
Definition: c7bAbstractFeature.h:29
Definition: c7bAbstractFeature.h:48
DtC7NetU32 * myAbstractData
Definition: c7bAbstractFeature.h:84
DT_DLL_VRVCORE DtTaitBryan level(const DtCoordinateSystem &cs, const DtVector &localOrigin, double topoHeading)
Returns a level orientation with the topographic heading.
Definition: c7bAbstractFeature.h:40
DtNetU8 myType
Definition: c7bAbstractFeature.h:35
Definition: c7bAbstractFeature.h:50
Definition: c7bAbstractFeature.h:52
Network-order 32-bit IEEE-754 floating-point quantity.
Definition: c7NetTypes.h:106
Network-order unsigned 16-bit quantity.
Definition: c7NetTypes.h:28
Definition: c7bAbstractFeature.h:47
#define DT_DLL_ctdb
Definition: ctdbDefines.h:23
DtC7bAbstractFeatureTemplate_Big * myBig
Definition: c7bAbstractFeature.h:82
Definition: c7bAbstractFeature.h:24
Definition: c7bAbstractFeature.h:53
DtC7NetU16 myNumVertices
Definition: c7bAbstractFeature.h:37
Definition: c7bAbstractFeature.h:49
Network-order unsigned 32-bit quantity.
Definition: c7NetTypes.h:66
DtC7NetFloat32 * myVertices
Definition: c7bAbstractFeature.h:83
DtC7bAbstractFeatureTemplate_Little * myLittle
Definition: c7bAbstractFeature.h:81
Definition: c7bAbstractFeature.h:55
DtC7NetU16 myNumVertices
Definition: c7bAbstractFeature.h:27
DtNetU8 myNumAbstracts
Definition: c7bAbstractFeature.h:36
Definition: c7bAbstractFeature.h:54
DtNetU8 myNumAbstracts
Definition: c7bAbstractFeature.h:28

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)