VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
scriptedMovementControllerPSR.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2010 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
6 #pragma once
7 
11 #include <readerWriter/rwReal.h>
12 #include <readerWriter/rwString.h>
13 #include <readerWriter/rwInt.h>
14 #include <readerWriter/rwBoolean.h>
15 #include "vrfutil/rwTaitBryan.h"
16 #include "readerWriter/rwVector.h"
17 
18 //RW type definition.
19 
21 
23 {
24 public:
25  //Constructor
27  const DtString& rwName = DtString::nullString(),
28  DtReaderWriterRegistry* parentRegistry = 0);
29  //Copy constructor
31  const DtString& rwName = DtString::nullString(),
32  DtReaderWriterRegistry* parentRegistry = 0);
33  //Assignment Operator
35  //Destructor
37 
38  //Returns complete copy of this class using the copy constructor.
40  const DtString& rwName = DtString::nullString(),
41  DtReaderWriterRegistry* parentRegistry = 0) const;
42  //Returns "intercept-process-state-repository"
43  virtual DtString type() const;
44 
45  //Static creator function for factory registration.
46  static DtVrfProcessStateRepository* creator(const DtString& rwName,
47  DtLocalObject* vrfObject, DtReaderWriterRegistry* parentRegistry = 0);
48 
49  virtual void setElapsedTime(double);
50  virtual double elapsedTime() const;
51 
52  virtual void setStartSimTime(double);
53  virtual double startSimTime() const;
54 
55  virtual void setEventId(const DtString&);
56  virtual const DtString& eventId() const;
57 
58  virtual DtAnimationModel& animationModel();
59  virtual const DtAnimationModel& animationModel() const;
60  virtual void setAnimationModel(const DtAnimationModel&);
61 
62 protected:
63  virtual void getSelf(DtlObjPtr args, const DtReaderWriter::SearchPaths& searchPaths,
64  const DtVariableBindingsList& variableBindings);
65 protected:
70 };
DtRwReal mySimStartTime
Definition: scriptedMovementControllerPSR.h:67
virtual void getSelf(DtlObjPtr args, const DtReaderWriter::SearchPaths &searchPaths, const DtVariableBindingsList &variableBindings) override
Top level to read itself from an input stream. searchPath is passed down to all DtReaderWriter member...
Description: Readable, Writable DtString Variable substitutions are done on this object when it is re...
Definition: rwString.h:20
Definition: readerWriterRegistry.h:39
DtScriptedMovementControllerPSR is the process state repository for the scripted movement controller...
Definition: scriptedMovementControllerPSR.h:22
Contains the DtRwTaitBryan class declaration.
#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
virtual DtVrfProcessStateRepository * clone(const DtString &rwName=DtString::nullString(), DtReaderWriterRegistry *parentRegistry=0) const =0
std::vector< DtFilename > SearchPaths
Definition: readerWriter.h:92
The DtAnimationModel class will contain the interface allow for animated movement via an external fil...
Definition: animationModel.h:31
DtRwReal myElapsedTime
Definition: scriptedMovementControllerPSR.h:69
Description: Readable, Writable DtReal (double)
Definition: rwReal.h:27
DtRwString myEventId
Definition: scriptedMovementControllerPSR.h:68
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 DtString type() const =0
Returns the string type of the repository, as defined in procSRTypes.h.
DtAnimationModel myAnimationModel
Definition: scriptedMovementControllerPSR.h:66
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

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)