VR-Exchange 2.7 API Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
pActiveSonar.h
Go to the documentation of this file.
1 /****************************************************************************
2  * Copyright (c) 2016 VT MAK
3  * All rights reserved.
4  ****************************************************************************/
5 
9 
10 #pragma once
11 
13 
14 namespace MAKVrExchange
15 {
16 
21  {
22  public:
23 
26 
29 
31  virtual ~DtPortalActiveSonar();
32 
34  DtPortalActiveSonar& operator = ( const DtPortalActiveSonar& other );
35 
38 
39  virtual bool operator == ( const DtPortalActiveSonar& other ) const;
40  virtual bool operator != ( const DtPortalActiveSonar& other ) const;
41 
43 
46 
47  DtDEC_ATTRIBUTE( DtU16, AcousticName, acousticName );
48  DtDEC_ATTRIBUTE( DtU8, FunctionCode, functionCode );
49  DtDEC_ATTRIBUTE( DtU8, AcousticsIdentifier, acousticsIdentifier );
50  DtDEC_ATTRIBUTE( DtActiveSonarBeamList, ActiveSonarBeamList, activeSonarBeamList );
51 
53  public:
54 
55  bool isBeamWithinList( DtU8 beamId ) const;
56  DtActiveSonarBeamData* findBeam( DtU8 beamId );
57  const DtActiveSonarBeamData* findBeam( DtU8 beamId ) const;
60  DtActiveSonarBeamData* addBeam( DtU8 beamId );
62  void removeBeam( DtU8 beamId );
63 
65 
66  public:
67 
69 
70  static DtPortalMessage* create();
71 
72  virtual unsigned int netSize() const;
73  virtual void writeSelfToBuffer( void* buffer, int bufferSize ) const ;
74  virtual void readSelfFromBuffer( const void* buffer, int bufferSize );
75 
76  virtual std::ostream& printDataToStream( std::ostream& str ) const;
77 
78  };
79 
80 
82  {
83  return new DtPortalActiveSonar();
84  }
85 
86 }
static const DtPortalMessageKind theKind
Definition: pActiveSonar.h:68
#define DT_DLL_LIBPORTAL
Definition: include/portal/dllExport.h:20
#define DtDEC_ATTRIBUTE(T, N, n)
A Macro to define an attribute; as well as make an accessor and mutator for that attribute.
Definition: addAttribute.h:49
std::list< DtActiveSonarBeamData > DtActiveSonarBeamList
Definition: activeSonarBeamData.h:75
Messages which represent Active Sonars with state.
Definition: pUnderwaterAcousticsObject.h:24
The base class for all messages passed through the portal.
Definition: pMessage.h:65
Messages which represent Active Sonars with state.
Definition: pActiveSonar.h:20
Represents Emitter Beam Objects.
Definition: activeSonarBeamData.h:31
DtPortalMessageKind
A List of message kinds distributed with the Portal.
Definition: pMessageKinds.h:23
static DtPortalMessage * create()
Definition: pActiveSonar.h:81
Contains the DtPortalUnderwaterAcousticObject class declaration.

Document ID: Generated on Mon Apr 19 15:55:22 EDT 2021 from SVN revision 227909
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)