VR-Link API Documentation for HLA 1.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
ddmFedAmb1516.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 2009 MaK Technologies, Inc.
3 ** All rights reserved.
4 *********************************************************************/
5 #pragma once
6 
7 #if DtHLA
8 #if DtHLA_1516
9 #if !DtHLA_1516_EVOLVED
10 
12 
14 {
15 public:
16  struct DtRegionInfo
17  {
18  unsigned long lowerXBound;
19  unsigned long lowerYBound;
20  unsigned long upperXBound;
21  unsigned long upperYBound;
22  bool infoSet;
23  };
24 
26 
27  virtual ~DtDdmFederateAmbassador() throw();
28 
29  virtual void discoverObjectInstance(
30  RTI::ObjectInstanceHandle theObject,
31  RTI::ObjectClassHandle theObjectClass,
32  std::wstring const & theObjectInstanceName)
33  throw (RTI::CouldNotDiscover,
34  RTI::ObjectClassNotKnown,
35  RTI::FederateInternalError);
36 
37  virtual void reflectAttributeValues(
38  RTI::ObjectInstanceHandle theObject,
39  RTI::AttributeHandleValueMap const & theAttributeValues,
40  RTI::VariableLengthData const & aTag,
41  RTI::OrderType sentOrder,
42  RTI::TransportationType theType,
43  RTI::RegionHandleSet const & theSentRegionHandleSet)
44  throw (RTI::ObjectInstanceNotKnown,
45  RTI::AttributeNotRecognized,
46  RTI::AttributeNotSubscribed,
47  RTI::FederateInternalError);
48 
49  virtual void removeObjectInstance(
50  RTI::ObjectInstanceHandle theObject,
51  RTI::VariableLengthData const & aTag,
52  RTI::OrderType sentOrder)
53  throw (RTI::ObjectInstanceNotKnown,
54  RTI::FederateInternalError);
55 
56  virtual void receiveInteraction(
57  RTI::InteractionClassHandle theInteraction,
58  RTI::ParameterHandleValueMap const & theParameterValues,
59  RTI::VariableLengthData const & aTag,
60  RTI::OrderType sentOrder,
61  RTI::TransportationType theType,
62  RTI::RegionHandleSet const & theSentRegionHandleSet)
63  throw (RTI::InteractionClassNotRecognized,
64  RTI::InteractionParameterNotRecognized,
65  RTI::InteractionClassNotSubscribed,
66  RTI::FederateInternalError);
67 
68 
70 
71  virtual void setXHandle(RTI::DimensionHandle handle);
72  virtual void setYHandle(RTI::DimensionHandle handle);
73 
74  virtual DtRegionInfo regionInfoForObject(RTI::ObjectInstanceHandle handle) const;
75  virtual DtRegionInfo lastInteractionRegion() const;
76 
77  virtual void clearLastInteractionRegion();
78 
79 protected:
80 
81 protected:
82  std::map<RTI::ObjectInstanceHandle, DtRegionInfo> myHandleToRegionMap;
83  DtRegionInfo myLastInteractionRegion;
84 
85  RTI::DimensionHandle myXHandle;
86  RTI::DimensionHandle myYHandle;
87 
88  DtRegionInfo myEmptyRegionInfo;
89 };
90 
91 #endif
92 #endif
93 #endif
94 
95 
unsigned long lowerXBound
Definition: ddmFedAmb13.h:17
DtRegionInfo myLastInteractionRegion
Definition: ddmFedAmb13.h:74
unsigned long upperXBound
Definition: ddmFedAmb13.h:19
virtual ~DtDdmFederateAmbassador()
Definition: ddmFedAmb13.h:12
Definition: vrlFederateAmbassador13.h:45
virtual void discoverObjectInstance(RTI::ObjectHandle theObject, RTI::ObjectClassHandle theObjectClass, const char *theObjectName)
! Object Management Services //!
RTI::DimensionHandle myYHandle
Definition: ddmFedAmb13.h:77
virtual void clearLastInteractionRegion()
virtual void setYHandle(RTI::DimensionHandle handle)
virtual void setXHandle(RTI::DimensionHandle handle)
virtual DtRegionInfo lastInteractionRegion() const
std::map< RTI::ObjectHandle, DtRegionInfo > myHandleToRegionMap
Definition: ddmFedAmb13.h:73
bool infoSet
Definition: ddmFedAmb13.h:21
DtRegionInfo myEmptyRegionInfo
Definition: ddmFedAmb13.h:79
unsigned long lowerYBound
Definition: ddmFedAmb13.h:18
virtual void receiveInteraction(RTI::InteractionClassHandle theInteraction, const RTI::ParameterHandleValuePairSet &theParameters, const char *theTag)
supplied C4
virtual void reflectAttributeValues(RTI::ObjectHandle theObject, const RTI::AttributeHandleValuePairSet &theAttributes, const char *theTag)
supplied C4
RTI::DimensionHandle myXHandle
Definition: ddmFedAmb13.h:76
unsigned long upperYBound
Definition: ddmFedAmb13.h:20
virtual DtRegionInfo regionInfoForObject(RTI::ObjectHandle handle) const
virtual void removeObjectInstance(RTI::ObjectHandle theObject, const char *theTag)
supplied C4
static DtVrlFederateAmbassador * create()
This file declares the class DtVrlFederateAmbassador for HLA 1516.

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)