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/geodCoord.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 
37 {
38 public:
41  DtDDMRegion(DtExerciseConn* exConn);
42 
47  DtDDMRegion(DtExerciseConn* exConn, const DtString& spaceName,
48  int numberOfExtents = 1);
49 
56  DtDDMRegion(DtExerciseConn* exConn, const DtString& spaceName,
57  const std::vector<DtString>& dimensionNameVector, int numberOfExtents = 1);
58 
61  DtDDMRegion( DtExerciseConn* exConn, const RTI::Region& region );
62 
64  DtDDMRegion(const DtDDMRegion& orig);
65 
67  virtual ~DtDDMRegion();
68 
72  virtual void initializeDimensions(
73  const std::vector<DtString>& dimensionNameVector);
74 
77  virtual void setUpperBound(const DtString& dimensionName, unsigned long upperBound,
78  int extentIndex = 0);
79 
82  virtual void setLowerBound(const DtString& dimensionName, unsigned long lowerBound,
83  int extentIndex = 0);
84 
85  virtual void setDimensionBounds(const DtString& dimensionName, unsigned long
86  lowerBound, unsigned long upperBound, int extentIndex = 0);
87 
88  virtual void notifyRtiOfUpdate();
89 
92  void init(const DtString& spaceName, const std::vector<DtString>&
93  dimensionNameVector, int numberOfExtents = 1);
94 
96  virtual const RTI::Region* region() const;
97  virtual RTI::Region* region();
98 
99  virtual void addAttributeHandle(RTI::AttributeHandle handle);
100 
103  virtual void addAttributeHandle(const DtString& objClassName, const DtString& attrName);
104 
105  virtual int attributeHandleCount() const;
106 
107  virtual const RTI::AttributeHandleSet& attributeHandles() const;
108 
109  virtual bool hasAttributeHandles() const;
110 
112  DtDDMRegion& operator=(const DtDDMRegion& orig);
113 
114 
115 protected:
116 
117  RTI::Region* myRegion;
118  DtVrlRtiAmbassador* myRtiAmb;
119  std::map<DtString, RTI::DimensionHandle> myDimensionMap;
120  RTI::SpaceHandle mySpaceHandle;
121 
122  // This is added to associate a region with particular attributes.
123  DtExerciseConn* myExConn;
124  RTI::AttributeHandleSet* myAttributeHandles;
125 };
126 
127 #endif
128 
129 #endif
130 

Document ID: Generated on Wed Aug 14 15:35:11 EDT 2013 from SVN revision 130445
Copyright © 2005-2013 VT MÄK. All Rights Reserved (www.mak.com)