VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
extendablePartActuatorPSR.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2021 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 
19 {
20 public:
21  enum States
22  {
23  NoState = 0,
24  Extended = 1,
25  Retracted = 2
26  };
27 
30  const DtString& rwName = DtString::nullString(),
31  DtReaderWriterRegistry* parentRegistry = 0);
32 
35  const DtString& rwName = DtString::nullString(),
36  DtReaderWriterRegistry* parentRegistry = 0);
37 
39  virtual ~DtExtendablePartActuatorPSR() override;
40 
43 
46  const DtString& rwName = DtString::nullString(), DtReaderWriterRegistry* parentRegistry = 0) const override;
47 
49  virtual DtString type() const override;
50 
53  virtual double partExtension() const;
54  virtual void setPartExtension(double value);
56 
59  virtual int requestedState() const;
60  virtual void setRequestedState(int value);
62 
65  virtual double extensionRate() const;
66  virtual void setExtensionRate(double value);
67  virtual void clearExtensionRate();
68  virtual bool extensionRateSpecified() const;
70 
72  static DtVrfProcessStateRepository* creator (const DtString& rwName,
73  DtLocalObject* vrfObject, DtReaderWriterRegistry* parentRegistry);
74 
75 protected:
76 
79 
82 
85 };
DtRwInt myRequestedState
Whether or not the part is doing nothing, wants to be in the extended or unextended position...
Definition: extendablePartActuatorPSR.h:81
Definition: readerWriterRegistry.h:39
DtRwReal myExtensionRate
The current extension rate of the articulated part. If less than 0, the default is used...
Definition: extendablePartActuatorPSR.h:84
States
Definition: extendablePartActuatorPSR.h:21
#define DT_DLL_vrfobjcore
This file is used to determine how to build.
Definition: vrfobjcoreDefines.h:24
Description: Readable, Writable int.
Definition: rwInt.h:25
virtual DtVrfProcessStateRepository * clone(const DtString &rwName=DtString::nullString(), DtReaderWriterRegistry *parentRegistry=0) const =0
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
A process state repository for the DtExtendablePartActuator component.
Definition: extendablePartActuatorPSR.h:18
DtRwReal myPartExtension
The current extension of the articulated part.
Definition: extendablePartActuatorPSR.h:78
virtual DtString type() const =0
Returns the string type of the repository, as defined in psrTypes.h.
const DtVrfProcessStateRepository & operator=(const DtVrfProcessStateRepository &orig)
A locally simulated VRF object.
Definition: localObject.h:98

Document ID: Generated on Thu Oct 23 22:29:17 EDT 2025 from SVN revision 280951
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)