VR-Forces 4.8 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties 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 
std::string myFileName
Definition: DtTdbPropAdder.h:67
Contains makVrv::DtPropAdder class.
DtDe & myDe
Definition: DtTdbPropAdder.h:80
The DtPropAdder will create props from feature files containing prop point features and add them to t...
Definition: DtPropAdder.h:32
The DtTerrainlayer is the base implementation of a layer of data which makes up the terrain...
Definition: DtTerrainLayer.h:36
Definition: networkNode.h:38
Contains DLL export macros.
Record of a rule used to add props to a feaure layer.
Definition: DtAddPropsRuleRecord.h:26
The DtPropAdder will create props from feature files containing prop point features and add them to t...
Definition: DtTdbPropAdder.h:33
Creator class for creating a DtPropAdder.
Definition: DtPropAdder.h:56
Contains makArchives::DtAddPropsRuleRecord class.
Creator for registering the DtTdbPropAdder with the display engine.
Definition: DtTdbPropAdder.h:72
#define DT_DLL_VRVTERRAIN
Definition: vrvTerrain.h:19
The abstract interface necessary for agents.
Definition: DtAgentManagerInterface.h:36
The DtDe is the core component of any VR-Vantage application.
Definition: DtDe.h:69
Definition: point.h:34

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)