VR-Forces 4.1.1 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
include
ctdb
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
24
class
DT_DLL_ctdb
DtC7bAbstractFeatureTemplate_Little
25
{
26
public
:
27
DtC7NetU16
myNumVertices
;
28
DtNetU8
myNumAbstracts
;
29
DtNetU8
myType
;
30
};
31
32
class
DT_DLL_ctdb
DtC7bAbstractFeatureTemplate_Big
33
{
34
public
:
35
DtNetU8
myType
;
36
DtNetU8
myNumAbstracts
;
37
DtC7NetU16
myNumVertices
;
38
};
39
40
class
DT_DLL_ctdb
DtC7bAbstractFeature
41
{
42
public
:
43
44
enum
45
{
46
CTDB_ABSTRACT_CANOPY = 1,
47
CTDB_ABSTRACT_SOIL_DEFRAG
,
48
CTDB_ABSTRACT_STEEP_SLOPE
,
49
CTDB_ABSTRACT_RAILROAD
,
50
CTDB_ABSTRACT_PIPELINE
,
51
CTDB_ABSTRACT_POLITICAL_BOUNDARY
,
52
CTDB_ABSTRACT_POWERLINE
,
53
CTDB_ABSTRACT_LABEL
,
54
CTDB_ABSTRACT_TACTICAL_SIGN
,
55
CTDB_ABSTRACT_OFFROAD_SEGMENT
,
56
CTDB_ABSTRACT_MAX
57
58
} DtC7bAbstractFeatureType;
59
60
DtC7bAbstractFeature
();
61
DtC7bAbstractFeature
(
const
DtC7NetU32
* data);
62
~
DtC7bAbstractFeature
();
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
81
DtC7bAbstractFeatureTemplate_Little
*
myLittle
;
82
DtC7bAbstractFeatureTemplate_Big
*
myBig
;
83
DtC7NetFloat32
*
myVertices
;
84
DtC7NetU32
*
myAbstractData
;
85
};
86
87
#endif
88
Document ID: Generated on Mon Apr 8 19:24:01 EDT 2013 from SVN revision 125877
Copyright © 2005-2013 VT MÄK. All Rights Reserved (
www.mak.com
)