VR-Link API Documentation for HLA 1.3
 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;
30 
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 
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 
This file declares vlException.
Instances of DtExerciseConn are used to provide an application&#39;s interface or connection to the netwo...
Definition: exerciseConnHLA.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.
std::set< DtDDMRegionSP > DtDDMRegionSet
Definition: region13.h:34
DtBoost::shared_ptr< DtDDMRegion > DtDDMRegionSP
Definition: region13.h:31
Instances of DtDDMRegion create an RTI region with specified dimensions.
Definition: region13.h:38
DtExerciseConn * myExConn
Definition: region13.h:129
bool myIsDirty
Definition: region13.h:134
DtVrlRtiAmbassador * myRtiAmb
Definition: region13.h:130
RTI::SpaceHandle mySpaceHandle
Definition: region13.h:133
static const xmlChar * attrName
Definition: xmlFedTags.h:117
DtVrlRtiAmbassador is a pure virtual class, designed to provide a foundation for different ways to se...
Definition: vrlRtiAmbassador13.h:25
Instances of DtString are used to represent strings.
Definition: vlString.h:29
Definition: geodeticNormalizer.h:57
RTI::Region * myRegion
Definition: region13.h:131
RTI::AttributeHandleSet * myAttributeHandles
Definition: region13.h:137
std::map< DtString, RTI::DimensionHandle > myDimensionMap
Definition: region13.h:132

Document ID: Generated on Wed Mar 27 02:04:30 EDT 2024 from SVN revision 264570
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)