VR-Link API Documentation for DIS
region13.h
Go to the documentation of this file.
1 //********************************************************************
4 //********************************************************************
5 //********************************************************************
7 //********************************************************************
8 
9 #ifndef region13_H_
10 #define region13_H_
11 
12 #if (DtHLA && !DtHLA_1516)
13 
14 #include <map>
15 #include <vector>
16 #include <RTI.hh>
17 #include <vlutil/vlExceptions.h>
18 #include <matrix/geodeticCoord.h>
19 
20 #include <vlutil/vlSmartPointers.h>
21 
22 #include <set>
23 
26 
27 class DtExerciseConn;
28 class DtVrlRtiAmbassador;
29 class DtGeodeticNormalizer;
30 
31 class DtDDMRegion;
32 
33 typedef DtBoost::shared_ptr<DtDDMRegion> DtDDMRegionSP;
34 typedef std::set<DtDDMRegionSP> DtDDMRegionSet;
35 
39 {
40 public:
41 
46  DtDDMRegion(DtExerciseConn* exConn);
47 
52  DtDDMRegion(DtExerciseConn* exConn, const DtString& spaceName,
53  int numberOfExtents = 1);
54 
60  DtDDMRegion(DtExerciseConn* exConn, const DtString& spaceName,
61  const std::vector<DtString>& dimensionNameVector, int numberOfExtents = 1);
62 
64  virtual ~DtDDMRegion();
65 
68  void init(const DtString& spaceName, const std::vector<DtString>&
69  dimensionNameVector, int numberOfExtents = 1);
70 
74  virtual void initializeDimensions(
75  const std::vector<DtString>& dimensionNameVector);
76 
79  virtual void setUpperBound(const DtString& dimensionName, unsigned long upperBound,
80  int extentIndex = 0);
81 
84  virtual void setLowerBound(const DtString& dimensionName, unsigned long lowerBound,
85  int extentIndex = 0);
86 
88  virtual void setDimensionBounds(const DtString& dimensionName, unsigned long
89  lowerBound, unsigned long upperBound, int extentIndex = 0);
90 
92  virtual void notifyRtiOfUpdate();
93 
95 
96  virtual const RTI::Region* region() const;
97  virtual RTI::Region* region();
99 
101  virtual void addAttributeHandle(RTI::AttributeHandle handle);
102 
106  virtual void addAttributeHandle(const DtString& objClassName, const DtString& attrName);
107 
109  virtual const RTI::AttributeHandleSet& attributeHandles() const;
110 
112  virtual int attributeHandleCount() const;
113 
115  virtual bool hasAttributeHandles() const;
116 
117 protected:
118 
120  DtDDMRegion(const DtDDMRegion& orig);
121 
123  DtDDMRegion& operator=(const DtDDMRegion& orig);
124 
125 
126 protected:
127 
128  DtExerciseConn* myExConn;
129  DtVrlRtiAmbassador* myRtiAmb;
130  RTI::Region* myRegion;
131  std::map<DtString, RTI::DimensionHandle> myDimensionMap;
132  RTI::SpaceHandle mySpaceHandle;
133 
134  // Set of attributes to use when associating or subscribing with this region
135  RTI::AttributeHandleSet* myAttributeHandles;
136 };
137 
138 #endif
139 
140 #endif
141 

Document ID: Generated on Wed Oct 23 22:25:48 EDT 2013 from SVN revision 132765
Copyright © 2005-2013 VT MÄK. All Rights Reserved (www.mak.com)