VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
vrfFeatureMessage.h
Go to the documentation of this file.
1 
9 
10 #pragma once
11 
16 
17 #include "geometry/point.h"
18 
19 #include <string>
20 
21 namespace makVrf
22 {
23 
27 {
28  public:
31  virtual ~DtFeatureRequest();
32 
34  virtual int messageSize();
36  static DtBaseMessage* decode(unsigned char* buffer, int length);
38  virtual DtBaseMessage* clone();
39 
42  virtual void setentityId(const std::string& name);
43  virtual std::string entityId() const;
44 
46  virtual void setDrawFeaturePath();
47  virtual bool drawFeaturePath() const;
48 
50  virtual void setDeleteFeaturePath();
51  virtual bool deleteFeaturePath();
52 
53  typedef std::vector<DtLine> lineListType;
55  virtual lineListType& lineList();
57  virtual void addLine(const DtLine& line);
59  virtual void addLines(const lineListType& lineList);
60 
61  protected:
62  virtual void serialize(DtStreamWriter& writer);
63  virtual void deserialize(DtStreamReader& reader);
64 
65  std::string myIdName;
69 
70 };
71 
72 
75 {
76  public:
79  virtual ~DtFeatureResponse();
80 
82  virtual int messageSize();
84  static DtBaseMessage* decode(unsigned char* buffer, int length);
86  virtual DtBaseMessage* clone();
87 
89  virtual void setSucces(bool success);
90  virtual bool success() const;
91 
93  virtual void setError(const std::string& error);
94  virtual std::string error() const;
95 
96 
97  protected:
98  virtual void serialize(DtStreamWriter& writer);
99  virtual void deserialize(DtStreamReader& reader);
100 
101  bool mySuccess;
102  std::string myError;
103 };
104 }
105 
#define DT_DLL_DEBUGDRAWCONNECTOR
Definition: export.h:15
** Copyright (c) 2019 MAK Technologies, Inc. ** All rights reserved.
DtBaseMessage is the base class for all messages that can be sent between the server and the client...
Definition: vrfMessage.h:25
std::vector< DtLine > lineListType
Definition: vrfFeatureMessage.h:53
** Copyright (c) 2019 MAK Technologies, Inc. ** All rights reserved.
Instances of DtStreamReader decode values from a byte array this assumes the data in the byte stream ...
Definition: byteStream.h:27
lineListType myLinesList
Definition: vrfFeatureMessage.h:68
DtFeatureRequest is a message to draw/delete feature information from the debugDrawManager to the deb...
Definition: vrfFeatureMessage.h:26
std::string myIdName
Definition: vrfFeatureMessage.h:65
** Copyright (c) 2019 MAK Technologies, Inc. ** All rights reserved.
bool myDeleteFeaturePath
Definition: vrfFeatureMessage.h:67
bool myDrawFeaturePath
Definition: vrfFeatureMessage.h:66
Instances of DtStreamWriter encode values into a byte array this writes the data to the stream in lit...
Definition: byteStream.h:74
Definition: asyncJobServer.h:39
Definition: vrfLine.h:16
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. Coordinates are in local database coordinates. The coordinate system is used to convert between the local database coordinates and geocentric. All distance is in 2D – the Z value is ignored.
DtFeatureResponse is the returned response of DtFeatureRequest by the debugDrawRenderer.
Definition: vrfFeatureMessage.h:74
std::string myError
Definition: vrfFeatureMessage.h:102
DT_DLL_readerWriter const char * decode(DtString &val, const char *buffer)
Decodes a value from buffer and places the result in val of the type specified by val...
bool mySuccess
Definition: vrfFeatureMessage.h:101

Document ID: Generated on Tue Sep 24 19:28:17 EDT 2024 from SVN revision 269799
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)