VR-Forces Developer's Guide
 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) 2022 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
10 #ifndef DtTdbPropAdder_H_
11 #define DtTdbPropAdder_H_
12 
13 #include <vrvTerrain/vrvTerrain.h>
14 #include <vrvCore/DtPropAdder.h>
16 
18 
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  class DtCoordinateSystem;
31 
35  {
36  public:
37 
39  DtTdbPropAdder(DtDe& de, const std::string& fileName,
40  DtAgentManagerInterface& agentManagerInterface);
41 
43  virtual ~DtTdbPropAdder();
44 
47  void addProps(const makArchives::DtAddPropsRuleRecord& rule,
48  DtTerrainLayer* terrainLayer);
49 
50  protected:
51 
53  bool matchRuleWithNode(const makArchives::DtAddPropsRuleRecord& rule, const DtNetworkNode& node);
54 
56  bool matchPairWithNode(const std::string& field, const std::string& value, const DtNetworkNode& node);
57 
59  bool buildProp(const makArchives::DtAddPropsRuleRecord& rule, const DtNetworkNode& node,
60  DtTerrainLayer* terrainLayer);
61 
64  bool validPoint(const DtPoint& point) const;
65 
67  virtual void slot_coordinateSystemChanged();
68 
69  protected:
70 
71  std::string myFileName;
73 
76  DtCoordinateSystem* myCoordinateSystem = nullptr;
77  };
78 
81  {
82  public:
84 
85  DtPropAdder* create( const std::string& filename, DtAgentManagerInterface&);
86 
87  protected:
89  };
90 }
91 
92 #endif
93 
std::string myFileName
Definition: DtTdbPropAdder.h:71
Contains makVrv::DtPropAdder class.
DtDe & myDe
Definition: DtTdbPropAdder.h:88
The DtPropAdder will create props from feature files containing prop point features and add them to t...
Definition: DtPropAdder.h:29
The DtTerrainlayer is the base implementation of a layer of data which makes up the terrain...
Definition: DtTerrainLayer.h:33
Definition: networkNode.h:38
Contains DLL export macros.
Record of a rule used to add props to a feaure layer.
Definition: DtAddPropsRuleRecord.h:23
Class to manage disconnection of boost connections on deletion.
Definition: DtSignalConnectionManager.h:20
The DtPropAdder will create props from feature files containing prop point features and add them to t...
Definition: DtTdbPropAdder.h:34
Creator class for creating a DtPropAdder.
Definition: DtPropAdder.h:53
The DtCoordinateSystem is used to manage the current coordinate system of the scene.
Definition: DtCoordinateSystem.h:40
Base class to provide boost signal/slot management.
Contains makArchives::DtAddPropsRuleRecord class.
DtSignalConnectionManager myConnections
Definition: DtTdbPropAdder.h:72
Creator for registering the DtTdbPropAdder with the display engine.
Definition: DtTdbPropAdder.h:80
#define DT_DLL_VRVTERRAIN
Definition: vrvTerrain.h:19
The abstract interface necessary for agents.
Definition: DtAgentManagerInterface.h:33
The DtDe is the core component of any VR-Vantage application. It owns a DtRenderer, DtDeCommunicator, as well as a DtDisplay and other things.
Definition: DtDe.h:76
Definition: point.h:34

Document ID: Generated on Thu Oct 23 22:29:17 EDT 2025 from SVN revision 280951
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)