VR-Forces 4.8 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
setArtPartRequest.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2019 MaK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
9 #pragma once
10 
12 #include <readerWriter/rwString.h>
13 #include <vlutil/vlNetTypes.h>
14 #include <vrfutil/rwTemplatedMap.h>
16 
26 {
27 
28 public:
29 
30  typedef std::map<DtRwInt, DtRwReal> DtParamValueMap;
31 
34 
37  DtSetArtPartRequest(const DtString & writeName,
38  DtReaderWriterRegistry * parentRegistry = 0);
39 
41  DtSetArtPartRequest(const DtString & writeName,
42  const DtSetArtPartRequest & orig,
43  DtReaderWriterRegistry * parentRegistry = 0);
44 
47 
48  virtual ~DtSetArtPartRequest();
49 
51  virtual const DtSetMessageType& type() const;
52 
54  virtual DtSetDataRequest * clone(const DtString & name,
55  DtReaderWriterRegistry * parentRegistry = 0) const;
56 
58  virtual DtString stringRep() const;
59 
63 
64  virtual DtArtPartType artPartType() const;
65  virtual void setArtPartType(DtArtPartType partType);
67 
69 
70  virtual const DtParamValueMap& paramValues() const;
71  virtual void setParamValues(const DtParamValueMap& vals);
73 
75  virtual void setParamValue(DtArtParamType param, double val);
76 
79  virtual int netRepSize() const;
80 
82  virtual bool setFromNet(const char* contentBuffer,
83  unsigned contentSize);
84 
87  virtual bool setToNet();
88 
89  static DtSetDataRequest* creator();
90 
91 protected:
92 
94 
97 
98 };
99 
virtual bool setToNet()
Sets netRep buffer to the contents of this set request.
DtSetArtPartRequest is used to set the state of an articulated part for an entity.
Definition: setArtPartRequest.h:25
Definition: readerWriterRegistry.h:39
virtual int netRepSize() const
DtSetDataRequest is an abstract base class from which real setDataRequests can derive.
Definition: setDataRequest.h:40
virtual const DtSetMessageType & type() const =0
What kind of setDataRequest am I? (from radioMsgTypes.h).
Description: Readable, Writable int.
Definition: rwInt.h:25
virtual DtSetDataRequest * clone(const DtString &name, DtReaderWriterRegistry *parentRegistry=0) const =0
Make a copy of this request.
const DtSetDataRequest & operator=(const DtSetDataRequest &orig)
assignment operator; same as copy costructor.
virtual bool setFromNet(const char *contentBuffer, unsigned contentSize)
Sets the contents of this set request based on the network buffer.
#define DT_DLL_vrftasks
This file is used to determine how to build.
Definition: vrftasksDefines.h:26
virtual DtString stringRep() const =0
Get a readable string representation of this setDataRequest.
DtRwParamValueMap myParamValues
Definition: setArtPartRequest.h:96
DtRwTemplatedMapPtr< DtRwInt, DtRwReal > DtRwParamValueMap
Definition: setArtPartRequest.h:93
std::map< DtRwInt, DtRwReal > DtParamValueMap
Definition: setArtPartRequest.h:30
DtRwInt myArtPartType
Definition: setArtPartRequest.h:95

Document ID: Generated on Thu Aug 27 10:56:05 EDT 2020 from SVN revision 217100
Copyright © 2005-2020 MAK Technologies. All Rights Reserved (www.mak.com)