VR-Forces 5.0.2 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
swingingPartActuatorPSR.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2013 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
6 #pragma once
7 
10 
11 
13 #include <readerWriter/rwReal.h>
14 #include <readerWriter/rwInt.h>
16 #include "readerWriter/rwVector.h"
17 
19 class DtEntityIdentifier;
20 
22 {
23 public:
24  enum States
25  {
26  NoState = 0,
27  Opened = 1,
28  Closed = 2
29  };
30 
33  const DtString& rwName = DtString::nullString(),
34  DtReaderWriterRegistry* parentRegistry = 0);
35 
38  const DtString& rwName = DtString::nullString(),
39  DtReaderWriterRegistry* parentRegistry = 0);
40 
42  virtual ~DtSwingingPartActuatorPSR();
43 
46 
49  const DtString& rwName = DtString::nullString(),
50  DtReaderWriterRegistry* parentRegistry = 0) const;
51 
53  virtual DtString type() const;
54 
57  virtual DtVector partPosition() const;
58  virtual void setPartPosition(DtVector value);
60 
63  virtual int requestedState() const;
64  virtual void setRequestedState(int value);
66 
69  virtual double swingRate() const;
70  virtual void setSwingRate(double value);
71  virtual void clearSwingRate();
72  virtual bool swingRateSpecified() const;
74 
76  static DtVrfProcessStateRepository* creator (const DtString& rwName,
77  DtLocalObject* vrfObject, DtReaderWriterRegistry* parentRegistry);
78 
80  virtual void getSelf(DtlObjPtr args, const DtReaderWriter::SearchPaths& searchPaths, const DtVariableBindingsList& variableBindings);
81 
82 protected:
85 
88 
91 };
Definition: swingingPartActuatorPSR.h:21
Definition: readerWriterRegistry.h:39
Definition: rwVector.h:23
#define DT_DLL_vrfobjcore
This file is used to determine how to build.
Definition: vrfobjcoreDefines.h:24
std::list< const DtRwVariableBindings * > DtVariableBindingsList
Definition: readerWriterRegistry.h:29
Description: Readable, Writable int.
Definition: rwInt.h:25
virtual DtVrfProcessStateRepository * clone(const DtString &rwName=DtString::nullString(), DtReaderWriterRegistry *parentRegistry=0) const =0
std::vector< DtFilename > SearchPaths
Definition: readerWriter.h:92
DtRwVector myPartPosition
The current position of the articulated part.
Definition: swingingPartActuatorPSR.h:84
Description: Readable, Writable DtReal (double)
Definition: rwReal.h:27
Class DtVrfProcessStateRepository: Abstract base class for all process state repositories. Process state repositories represent (potentially) shared, savable information for one or more components functioning together to achieve some process or set of processes; such as aiming and firing a weapon; moving an object; or just waiting a specified amount of time.
Definition: vrfProcessStateRepository.h:45
virtual void getSelf(DtlObjPtr args, const DtReaderWriter::SearchPaths &searchPaths, const DtVariableBindingsList &variableBindings)
Top level to read itself from an input stream. searchPath is passed down to all DtReaderWriter member...
DtRwReal mySwingRate
The current swing rate of the articulated part. If less than 0, the default is used.
Definition: swingingPartActuatorPSR.h:90
virtual DtString type() const =0
Returns the string type of the repository, as defined in procSRTypes.h.
DtRwInt myRequestedState
Whether or not the part is doing nothing, wants to be in the opened or closed position.
Definition: swingingPartActuatorPSR.h:87
File: rwVector.h.
const DtVrfProcessStateRepository & operator=(const DtVrfProcessStateRepository &orig)
A locally simulated VRF object. Holds all internal and external data for the object, and provides access to both the current frame and next frame state data for the object. All current frame data is read-only, and next-frame data can be written to. No thread safety guarantees are made on this object during the simulation frame and it should only be accessed by the thread that is simulating the object.
Definition: localObject.h:86
States
Definition: swingingPartActuatorPSR.h:24

Document ID: Generated on Sun Dec 4 20:22:03 EST 2022 from SVN revision 249613
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)