VR-Link API Documentation for DIS
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
region1516.h
Go to the documentation of this file.
1 //********************************************************************
4 //********************************************************************
5 //********************************************************************
7 //********************************************************************
8 
9 #pragma once
10 
11 #if (DtHLA && DtHLA_1516)
12 
13 #include <map>
14 #include <vector>
15 #include "rtiNamespace.h"
16 #include <vlutil/vlExceptions.h>
17 #include <matrix/geodeticCoord.h>
18 
19 #include <vlutil/vlSmartPointers.h>
20 #include "vrlRtiAmbassador.h"
21 #include <set>
22 
25 
26 class DtExerciseConn;
27 class DtVrlRtiAmbassador;
28 class DtGeodeticNormalizer;
29 class DtDDMRegion;
30 
31 typedef DtBoost::shared_ptr<DtDDMRegion> DtDDMRegionSP;
32 typedef std::set<DtDDMRegionSP> DtDDMRegionSet;
33 
37 {
38 public:
41  DtDDMRegion(DtExerciseConn* exConn);
42 
45  DtDDMRegion(DtExerciseConn* exConn, const std::vector<DtString>& dimensionNameVector);
46 
48  virtual ~DtDDMRegion();
49 
51  virtual void init(const std::vector<DtString>& dimensionNameVector);
52 
57  virtual void initializeDimensions(
58  const std::vector<DtString>& dimensionNameVector);
59 
61  virtual void initializeDimensions(
62  const RTI::DimensionHandleSet& dimHandles );
63 
66  virtual void setUpperBound(const DtString& dimensionName, unsigned long upperBound );
67 
70  virtual void setLowerBound(const DtString& dimensionName, unsigned long lowerBound );
71 
74  virtual void setDimensionBounds(const DtString& dimensionName, unsigned long
75  lowerBound, unsigned long upperBound);
76 
79  virtual void notifyRtiOfUpdate();
80 
82 
83  virtual RTI::RegionHandle regionHandle();
84  virtual const RTI::RegionHandle regionHandle() const;
86 
88  virtual void addAttributeHandle(RTI::AttributeHandle handle);
89 
92  virtual void addAttributeHandle(const DtString& objClassName, const DtString& attrName);
93 
95  virtual const RTI::AttributeHandleSet& attributeHandles() const;
96 
98  virtual int attributeHandleCount() const;
99 
101  virtual bool hasAttributeHandles() const;
102 
103 protected:
104 
108  virtual void createRegion();
109 
110 protected:
111 
113  DtDDMRegion(const DtDDMRegion& orig);
114 
116  DtDDMRegion& operator=(const DtDDMRegion& orig);
117 
118 protected:
119 
120  struct DtDimensionHandleBoundsStruct
121  {
122  DtDimensionHandleBoundsStruct()
123  : handle(), lowerBound(0), upperBound(1), dirty(true) {}
124  DtDimensionHandleBoundsStruct(RTI::DimensionHandle handleToUse)
125  : handle(handleToUse), lowerBound(0), upperBound(1), dirty(true) {}
126 
127  RTI::DimensionHandle handle;
128  unsigned int lowerBound;
129  unsigned int upperBound;
130  bool dirty;
131  };
132 
133  RTI::RegionHandle myRegionHandle;
134  DtVrlRtiAmbassador* myRtiAmb;
135  std::map<DtString, DtDimensionHandleBoundsStruct> myDimensionMap;
136 
137  // This is added to associate a region with particular attributes.
138  DtExerciseConn* myExConn;
139  RTI::AttributeHandleSet* myAttributeHandles;
140 };
141 
142 
143 #endif
144 
This file declares vlException.
Instances of DtExerciseConn are used to provide an application&#39;s interface or connection to the netwo...
Definition: exerciseConnDIS.h:61
#define DT_DLL_VL
Definition: vlMachineTypes.h:108
Includes Boost smart pointers and aliases the Boost namespace.
This file provides a definition of GeodeticCoords and several helper functions.
static const xmlChar * attrName
Definition: xmlFedTags.h:117
Instances of DtString are used to represent strings.
Definition: vlString.h:29
This file provides protocol independence for the DtVrlRtiAmbassador class.

Document ID: Generated on Mon Apr 25 03:39:01 EDT 2022 from SVN revision 242502
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)