VR-Forces Development_Version Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator 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 

Document ID: Generated on Mon Jul 4 01:00:18 EDT 2016 from SVN revision 166489
Copyright © 2005-2015 VT MÄK. All Rights Reserved (www.mak.com)