VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
translatablePartActuatorPSR.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/rwBoolean.h>
15 #include <readerWriter/rwInt.h>
17 
19 class DtEntityIdentifier;
20 
22 {
23 public:
25  {
26  NotTranslating = 0,
32  Backward
33  };
34 
37  const DtString& rwName = DtString::nullString(),
38  DtReaderWriterRegistry* parentRegistry = 0);
39 
42  const DtString& rwName = DtString::nullString(),
43  DtReaderWriterRegistry* parentRegistry = 0);
44 
46  virtual ~DtTranslatablePartActuatorPSR() override;
47 
50 
53  const DtString& rwName = DtString::nullString(), DtReaderWriterRegistry* parentRegistry = 0) const override;
54 
56  virtual DtString type() const override;
57 
60  virtual double partPosition() const;
61  virtual void setPartPosition(double value);
63 
73  virtual int state() const;
74  virtual void setState(int value);
75 
76  virtual int lastState() const;
77  virtual void setLastState(int value);
79 
82  virtual bool paused() const;
83  virtual void setPaused(bool value);
85 
88  virtual bool initialized() const;
89  virtual void setInitialized(bool value);
91 
93  static DtVrfProcessStateRepository* creator (const DtString& rwName,
94  DtLocalObject* vrfObject, DtReaderWriterRegistry* parentRegistry);
95 
96 protected:
99 
102 
106 
109 
113 };
DtRwReal myPartPosition
The current position (extension) of the articulated part.
Definition: translatablePartActuatorPSR.h:98
DtRwBoolean myInitialized
Whether or not the art part has been initialized. This will be set to true on first creation to know ...
Definition: translatablePartActuatorPSR.h:112
Definition: translatablePartActuatorPSR.h:27
Definition: translatablePartActuatorPSR.h:29
Definition: translatablePartActuatorPSR.h:30
Definition: readerWriterRegistry.h:39
#define DT_DLL_vrfobjcore
This file is used to determine how to build.
Definition: vrfobjcoreDefines.h:24
DtRwInt myState
Whether or not the part is being translated in positive or negative direction.
Definition: translatablePartActuatorPSR.h:101
Description: Readable, Writable int.
Definition: rwInt.h:25
virtual DtVrfProcessStateRepository * clone(const DtString &rwName=DtString::nullString(), DtReaderWriterRegistry *parentRegistry=0) const =0
DtRwInt myLastState
The last part the state was in. This will be used to reinitialize the part when loaded from a scenari...
Definition: translatablePartActuatorPSR.h:105
Definition: translatablePartActuatorPSR.h:28
Translating
Definition: translatablePartActuatorPSR.h:24
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
Description: Readable, Writable bool.
Definition: rwBoolean.h:26
DtRwBoolean myPaused
Whether or not the part is paused in the act of translated.
Definition: translatablePartActuatorPSR.h:108
virtual DtString type() const =0
Returns the string type of the repository, as defined in psrTypes.h.
Definition: translatablePartActuatorPSR.h:21
Definition: translatablePartActuatorPSR.h:31
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)