RadarFX API Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
rfxEntityLocationMessage.h
Go to the documentation of this file.
1 // ******************************************************************************
2 // ** Copyright (c) 2017 MAK Technologies, Inc.
3 // ** All rights reserved.
4 // ******************************************************************************
5 
9 
10 #pragma once
11 
12 #include "export.h"
13 #include "rfxMessage.h"
14 
15 #include <vlutil/vlString.h>
16 #include <matrix/vlVector.h>
17 
18 #include <vector>
19 #include <string>
20 
21 
22 namespace makRadarFx
23 {
24 
27 {
28  public:
31  virtual ~DtEntityLocationRequest();
32 
34  virtual void setEntityId(const std::string& name);
35  virtual std::string entityId();
36 
38  virtual int messageSize();
40  static DtBaseMessage* decode(unsigned char* buffer, int length);
42  virtual DtBaseMessage* clone();
43 
44  protected:
45  virtual void serialize(DtStreamWriter& writer);
46  virtual void deserialize(DtStreamReader& reader);
47 
48  std::string myEntityId;
49 };
50 
51 
54 {
55  public:
56 
57  enum DtEntityLocationError { ENTITY_LOC_NO_ERROR, ENTITY_LOC_NO_ENTITY, ENTITY_LOC_ERROR_OTHER };
58 
61  virtual ~DtEntityLocationResponse();
62 
64  virtual void setEntityLocation(DtVector location);
65  virtual DtVector entityLocation();
66 
68  virtual void setEntityTopoOrientation(DtTaitBryan topoOrientation);
69  virtual DtTaitBryan entityOrientation();
70 
72  virtual void setEntityVelocity(DtVector32 velocity);
73  virtual DtVector32 entityVelocity();
74 
76  virtual void setError(DtEntityLocationError error);
77  virtual DtEntityLocationError error();
78 
80  virtual int messageSize();
82  static DtBaseMessage* decode(unsigned char* buffer, int length);
84  virtual DtBaseMessage* clone();
85 
86  protected:
87  virtual void serialize(DtStreamWriter& writer);
88  virtual void deserialize(DtStreamReader& reader);
89 
90  DtVector myEntityLocation;
92  DtVector32 myEntityVelocity;
94 };
95 }
96 

Document ID: 1.0
Copyright © 2015 VT MÄK Inc. All Rights Reserved (www.mak.com)