VR-Forces Developer's Guide
 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. Base class does nothing and returns true...
DtSetArtPartRequest is used to set the state of an articulated part for an entity. It inherits read/writableness from DtSetDataRequest.
Definition: setArtPartRequest.h:25
Definition: readerWriterRegistry.h:39
virtual int netRepSize() const
DtSetDataRequest is an abstract base class from which real setDataRequests can derive. It manages the read/write capability; derived classes need only use and register read/writatble data types for derived information.
Definition: setDataRequest.h:41
virtual const DtSetMessageType & type() const =0
What kind of setDataRequest am I? (from radioMsgTypes.h). Returns a string representing the kind of d...
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. Returns a pointer to a newly created copy of this data 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. Base class does nothing and return...
#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. Returns a human readable string represen...
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 Tue Sep 24 19:28:17 EDT 2024 from SVN revision 269799
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)