VR-Link API Documentation for DIS
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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 
93  virtual void notifyRtiOfUpdate();
94 
96 
97  virtual const RTI::Region* region() const;
98  virtual RTI::Region* region();
100 
102  virtual void addAttributeHandle(RTI::AttributeHandle handle);
103 
107  virtual void addAttributeHandle(const DtString& objClassName, const DtString& attrName);
108 
110  virtual const RTI::AttributeHandleSet& attributeHandles() const;
111 
113  virtual int attributeHandleCount() const;
114 
116  virtual bool hasAttributeHandles() const;
117 
118 protected:
119 
121  DtDDMRegion(const DtDDMRegion& orig);
122 
124  DtDDMRegion& operator=(const DtDDMRegion& orig);
125 
126 
127 protected:
128 
129  DtExerciseConn* myExConn;
130  DtVrlRtiAmbassador* myRtiAmb;
131  RTI::Region* myRegion;
132  std::map<DtString, RTI::DimensionHandle> myDimensionMap;
133  RTI::SpaceHandle mySpaceHandle;
134  bool myIsDirty;
135 
136  // Set of attributes to use when associating or subscribing with this region
137  RTI::AttributeHandleSet* myAttributeHandles;
138 };
139 
140 #endif
141 
142 #endif
143 

Document ID: Generated on Thu Feb 22 04:26:36 EST 2018 from SVN revision 186468
Copyright © 2005-2016 VT MÄK. All Rights Reserved (www.mak.com)