VR-Forces 4.1.1 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
include
vrvTerrain
DtTdbPropAdder.h
Go to the documentation of this file.
1
/******************************************************************************
2
** Copyright (c) 2008 MAK Technologies, Inc.
3
** All rights reserved.
4
******************************************************************************/
5
/******************************************************************************
6
** $RCSfile: DtTdbPropAdder.h,v $ $Revision: 1.1 $ $State: Exp $
7
******************************************************************************/
8
12
13
#ifndef DtTdbPropAdder_H_
14
#define DtTdbPropAdder_H_
15
16
#include <
vrvTerrain/vrvTerrain.h
>
17
#include <
vrvCore/DtPropAdder.h
>
18
#include <
makArchives/DtAddPropsRuleRecord.h
>
19
#include <vector>
20
21
class
DtNetworkNode
;
22
class
DtPoint
;
23
24
namespace
makVrv
25
{
26
class
DtDe;
27
class
DtAgentManagerInterface;
28
class
DtProp;
29
class
DtTerrainLayer;
30
33
class
DT_DLL_VRVTERRAIN
DtTdbPropAdder
:
public
DtPropAdder
34
{
35
public
:
36
38
DtTdbPropAdder
(
DtDe
& de,
const
std::string& fileName,
39
DtAgentManagerInterface
& agentManagerInterface);
40
42
virtual
~
DtTdbPropAdder
();
43
46
void
addProps(
const
makArchives::DtAddPropsRuleRecord
& rule,
47
DtTerrainLayer
* terrainLayer);
48
49
protected
:
50
52
bool
matchRuleWithNode(
const
makArchives::DtAddPropsRuleRecord
& rule,
const
DtNetworkNode
& node);
53
55
bool
matchPairWithNode(
const
std::string& field,
const
std::string& value,
const
DtNetworkNode
& node);
56
58
bool
buildProp(
const
makArchives::DtAddPropsRuleRecord
& rule,
const
DtNetworkNode
& node,
59
DtTerrainLayer
* terrainLayer);
60
63
bool
validPoint(
const
DtPoint
&
point
)
const
;
64
65
protected
:
66
67
std::string
myFileName
;
68
69
};
70
72
class
DT_DLL_VRVTERRAIN
DtTdbPropAdderCreator
:
public
DtPropAdderCreator
73
{
74
public
:
75
DtTdbPropAdderCreator
(
DtDe
& de);
76
77
DtPropAdder
* create(
const
std::string& filename,
DtAgentManagerInterface
&);
78
79
protected
:
80
DtDe
&
myDe
;
81
};
82
}
83
84
#endif
85
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
)