VR-Forces 4.8 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
include
gdb
vectorNetworkRecord.h
Go to the documentation of this file.
1
/*******************************************************************************
2
** Copyright (c) 1999 MAK Technologies, Inc.
3
** All rights reserved.
4
*******************************************************************************/
5
/*******************************************************************************
6
** $RCSfile: vecNetwrkRecord.h,v $ $Revision: 1.10 $ $State: Exp $
7
*******************************************************************************/
8
9
#ifndef vectorNetworkRecord_H_
10
#define vectorNetworkRecord_H_
11
12
#include "
gdb/gdbDefines.h
"
13
#include <vlutil/vlNetTypes.h>
14
15
//forward declarations
16
class
DtSimpleList
;
17
class
DtSpecificationAttribute
;
18
19
// class DtVectorNetworkRecord:
20
//
21
// DtVectorNetworkRecord is used to pass info to DtTerrainDatabase
22
// to be used during a search into the vector network
23
24
class
DT_DLL_gdb
DtVectorNetworkRecord
25
{
26
public
:
27
28
// default constructor
29
DtVectorNetworkRecord
();
30
31
// destructor
32
virtual
~
DtVectorNetworkRecord
();
33
34
// copy constructor
35
DtVectorNetworkRecord
(
const
DtVectorNetworkRecord
& orig);
36
37
// assignment operator
38
DtVectorNetworkRecord
& operator=(
const
DtVectorNetworkRecord
& orig);
39
40
// set/get the value for range of interest
41
virtual
void
setInterestRange(
double
range);
42
virtual
double
interestRange()
const
;
43
44
// set/get if we want to evaluate elevation in features
45
virtual
void
setEvalInZ(
bool
inZ);
46
virtual
bool
evalInZ()
const
;
47
48
// Functions to add attributes to evaluate them against the
49
// specifications of the vector network.
50
// They can be used to be equal, lees than, greater than or different,
51
//
52
// add: Clone the attribute and add its own copy.
53
// take: return the list and give it up to be owned (and deleted)
54
// by some one else. After use a take function there is not more
55
// function available in the record.
56
// XXX: return the current list
57
58
virtual
void
addEqualCondAttr(
DtSpecificationAttribute
* attr);
59
virtual
DtSimpleList
* equalCondAttrList()
const
;
60
virtual
DtSimpleList
* takeEqualCondAttrList();
61
62
virtual
void
addDiffCondAttr(
DtSpecificationAttribute
* attr);
63
virtual
DtSimpleList
* diffCondAttrList()
const
;
64
virtual
DtSimpleList
* takeDiffCondAttrList();
65
66
virtual
void
addLessThanCondAttr(
DtSpecificationAttribute
* attr);
67
virtual
DtSimpleList
* lessThanCondAttrList()
const
;
68
virtual
DtSimpleList
* takeLessThanCondAttrList();
69
70
virtual
void
addGreaterThanCondAttr(
DtSpecificationAttribute
* attr);
71
virtual
DtSimpleList
* greaterThanCondAttrList()
const
;
72
virtual
DtSimpleList
* takeGreaterThanCondAttrList();
73
74
protected
:
75
76
virtual
bool
testInvariant
()
const
;
77
78
// empty the condition lists and free memory
79
virtual
void
emptyLists();
80
81
// copy lists
82
virtual
void
copyLists(
const
DtVectorNetworkRecord
& orig);
83
84
double
myRange
;
85
bool
myInZ
;
86
DtSimpleList
*
myEqualList
;
87
DtSimpleList
*
myDiffList
;
88
DtSimpleList
*
myLessThanList
;
89
DtSimpleList
*
myGreaterThanList
;
90
};
91
92
#endif
93
DtVectorNetworkRecord::myInZ
bool myInZ
Definition:
vectorNetworkRecord.h:85
testInvariant
*bool testInvariant() const
DtVectorNetworkRecord::myDiffList
DtSimpleList * myDiffList
Definition:
vectorNetworkRecord.h:87
gdbDefines.h
DtVectorNetworkRecord::myLessThanList
DtSimpleList * myLessThanList
Definition:
vectorNetworkRecord.h:88
DT_DLL_gdb
#define DT_DLL_gdb
Definition:
gdbDefines.h:25
DtVectorNetworkRecord::myGreaterThanList
DtSimpleList * myGreaterThanList
Definition:
vectorNetworkRecord.h:89
DtVectorNetworkRecord
Definition:
vectorNetworkRecord.h:24
DtVectorNetworkRecord::myRange
double myRange
Definition:
vectorNetworkRecord.h:84
DtVectorNetworkRecord::myEqualList
DtSimpleList * myEqualList
Definition:
vectorNetworkRecord.h:86
DtSpecificationAttribute
Definition:
specificationAttribute.h:23
DtSimpleList
Definition:
simpleList.h:29
Document ID: Generated on Thu Aug 27 10:56:05 EDT 2020 from SVN revision 217100
Copyright © 2005-2020 MAK Technologies. All Rights Reserved (
www.mak.com
)