VR-Vantage 3.1.1 API Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
rfxElevationMessage.h
Go to the documentation of this file.
1 // ******************************************************************************
2 // ** Copyright (c) 2016 MAK Technologies, Inc.
3 // ** All rights reserved.
4 // ******************************************************************************
5 
6 
10 
11 
12 #pragma once
13 
14 #include "export.h"
15 #include "rfxMessage.h"
16 
17 #include <matrix/vlVector.h>
18 
19 #include <string>
20 
21 namespace makRadarFx
22 {
23 
28 {
29  public:
32  virtual ~DtElevationRequest();
33 
37  virtual void useObserverAsHost();
38 
41  virtual void setOwnshipLocation(DtVector location);
42  virtual DtVector ownshipLocation();
43 
46  virtual void setOwnshipEntityId(const std::string& name);
47  virtual std::string ownshipEntityId();
48 
50  virtual bool isUsingObserverAsHost();
51  virtual bool isUsingEntityAsHost();
52  virtual bool isUsingAbsoluteLocation();
53 
56  virtual void useObserverForTarget();
57 
60  virtual void setTargetEntityId(const std::string& name);
61  virtual std::string targetEntityId();
62 
65  virtual void setTargetLocation(DtVector location);
66  virtual DtVector targetLocation();
67 
69  virtual bool isUsingObserverForTarget();
70  virtual bool isUsingEntityForTarget();
71  virtual bool isUsingLocationForTarget();
72 
73 
75  virtual int messageSize();
77  static DtBaseMessage* decode(unsigned char* buffer, int length);
79  virtual DtBaseMessage* clone();
80 
81  protected:
82  virtual void serialize(DtStreamWriter& writer);
83  virtual void deserialize(DtStreamReader& reader);
84 
91 
92  std::string myOwnshipName;
93  std::string myTargetName;
95  DtVector myTargetLocation;
96 };
97 
100 {
101  public:
102  enum DtElevationError {ELEVATION_NO_ERROR, ELEVATION_ERROR_OCCLUDED, ELEVATION_ERROR_OTHER};
103 
104 
107  virtual ~DtElevationResponse();
108 
111  virtual void setElevation(float elevation);
112  virtual float elevation();
113 
115  virtual void setError(DtElevationError error);
116  virtual DtElevationError error();
117 
119  virtual int messageSize();
121  static DtBaseMessage* decode(unsigned char* buffer, int length);
123  virtual DtBaseMessage* clone();
124 
125  protected:
126  virtual void serialize(DtStreamWriter& writer);
127  virtual void deserialize(DtStreamReader& reader);
128 
129  float myElevation;
131 };
132 }
133 
DtVector myOwnshipLocation
Definition: rfxElevationMessage.h:94
DtBaseMessage is the base class for all messages that can be sent between the server and the client...
Definition: rfxMessage.h:25
float myElevation
Definition: rfxElevationMessage.h:129
bool myUseObserverAsHost
Definition: rfxElevationMessage.h:85
Instances of DtStreamWriter encode values into a byte array this writes the data to the stream in lit...
Definition: byteStream.h:74
bool myUseObserverForTarget
Definition: rfxElevationMessage.h:88
bool myUseEntityAsHost
Definition: rfxElevationMessage.h:86
The DtElevationResponse encapsulates a response from the RadarFX Server for a given elevation request...
Definition: rfxElevationMessage.h:99
DtElevationError myError
Definition: rfxElevationMessage.h:130
The DtElevationRequest encapsulates a request for the elevation a given target location using the sen...
Definition: rfxElevationMessage.h:27
bool myUseEntityAsTarget
Definition: rfxElevationMessage.h:89
DtElevationError
Definition: rfxElevationMessage.h:102
DtVector myTargetLocation
Definition: rfxElevationMessage.h:95
#define RFX_DLL_SHARED
Definition: include/radarFxShared/export.h:15
std::string myOwnshipName
Definition: rfxElevationMessage.h:92
Defines the base class for all messages that can be sent between the server and the client...
DT_DLL_VRVCORE double length(const makVrv::DtCoordinateSystem &, const std::vector< DtVector > &vertices)
Returns the total distance of a segmented line defined by the provided vector of vertices.
std::string myTargetName
Definition: rfxElevationMessage.h:93
bool myUseAbsoluteOwnship
Definition: rfxElevationMessage.h:87
Instances of DtStreamReader decode values from a byte array this assumes the data in the byte stream ...
Definition: byteStream.h:27
bool myUseAbsoluteTarget
Definition: rfxElevationMessage.h:90


Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)