VR-Link API Documentation for DIS
ddmFedAmb1516e.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 2009 MaK Technologies, Inc.
3 ** All rights reserved.
4 *********************************************************************/
5 /*********************************************************************
6 ** $RCSfile: ddmFedAmb1516e.h,v $ $Revision: 1.1.2.2 $ $State: Exp $
7 *********************************************************************/
8 #pragma once
9 
10 #if DtHLA
11 #if DtHLA_1516
12 #if DtHLA_1516_EVOLVED
13 
14 
15 #include <vl/vrlFedAmb1516e.h>
16 
17 class DtDdmFederateAmbassador : public DtVrlFederateAmbassador
18 {
19 public:
20  struct DtRegionInfo
21  {
22  unsigned long lowerXBound;
23  unsigned long lowerYBound;
24  unsigned long upperXBound;
25  unsigned long upperYBound;
26  bool infoSet;
27  };
28 
29  DtDdmFederateAmbassador()
30  throw (RTI::FederateInternalError);
31 
32  virtual ~DtDdmFederateAmbassador() throw();
33 
34  virtual void discoverObjectInstance(
35  RTI::ObjectInstanceHandle theObject,
36  RTI::ObjectClassHandle theObjectClass,
37  std::wstring const & theObjectInstanceName)
38  throw (RTI::FederateInternalError);
39 
40  virtual void reflectAttributeValues(
41  RTI::ObjectInstanceHandle theObject,
42  RTI::AttributeHandleValueMap const & theAttributeValues,
43  RTI::VariableLengthData const & aTag,
44  RTI::OrderType sentOrder,
45  RTI::TransportationType theType,
46  RTI::SupplementalReflectInfo theReflectInfo)
47  throw (RTI::FederateInternalError);
48 
49  virtual void removeObjectInstance(
50  RTI::ObjectInstanceHandle theObject,
51  RTI::VariableLengthData const & aTag,
52  RTI::OrderType sentOrder,
53  RTI::SupplementalRemoveInfo theRemoveInfo)
54  throw (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::SupplementalReceiveInfo theReceiveInfo)
63  throw (RTI::FederateInternalError);
64 
65 
66  static DtVrlFederateAmbassador* create();
67 
68  virtual void setXHandle(RTI::DimensionHandle handle);
69  virtual void setYHandle(RTI::DimensionHandle handle);
70 
71  virtual DtRegionInfo regionInfoForObject(RTI::ObjectInstanceHandle handle) const;
72  virtual DtRegionInfo lastInteractionRegion() const;
73 
74  virtual void clearLastInteractionRegion();
75 
76 protected:
77 
78 protected:
79  std::map<RTI::ObjectInstanceHandle, DtRegionInfo> myHandleToRegionMap;
80  DtRegionInfo myLastInteractionRegion;
81 
82  RTI::DimensionHandle myXHandle;
83  RTI::DimensionHandle myYHandle;
84 
85  DtRegionInfo myEmptyRegionInfo;
86 };
87 
88 #endif
89 #endif
90 #endif
91 

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)