VR-Forces 4.3.1 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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>
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 
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 
73  {
74  public:
76 
77  DtPropAdder* create( const std::string& filename, DtAgentManagerInterface&);
78 
79  protected:
81  };
82 }
83 
84 #endif
85 

Document ID: Generated on Wed Jul 29 00:55:00 EDT 2015 from SVN revision 155257
Copyright © 2005-2015 VT MÄK. All Rights Reserved (www.mak.com)