VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
aimAtPointControllerPSR.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2015 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
9 
10 #pragma once
11 
14 #include <readerWriter/rwBoolean.h>
15 #include "readerWriter/rwVector.h"
16 #include <readerWriter/rwString.h>
17 #include "vrfobjcore/simObject.h"
19 
24 {
25 public:
28  const DtString& rwName = DtString::nullString(),
29  DtReaderWriterRegistry* parentRegistry = 0);
32  const DtString& rwName = DtString::nullString(),
33  DtReaderWriterRegistry* parentRegistry = 0);
36  const DtAimAtPointControllerPSR& orig);
38  virtual ~DtAimAtPointControllerPSR();
39 
42  const DtString& rwName = DtString::nullString(),
43  DtReaderWriterRegistry* parentRegistry = 0) const;
44 
46  virtual DtString type() const;
47 
49  static DtVrfProcessStateRepository* creator(const DtString& rwName,
50  DtLocalObject* vrfObject, DtReaderWriterRegistry* parentRegistry = 0);
51 
54  virtual DtVector aimingPoint() const;
55  virtual void setAimingPoint(const DtVector& newValue);
57 
61  virtual DtSimObjectReference target() const;
62 
64  virtual void setTarget(const DtUUID& newValue);
66 
72  virtual double aimingAzimuth() const;
73  virtual void setAimingAzimuth(double az);
75 
81  virtual double aimingElevation() const;
82  virtual void setAimingElevation(double el);
84 
87  virtual DtSetAimingPointRequest::AimingType aimingType() const;
88  virtual void setAimingType(DtSetAimingPointRequest::AimingType stop);
90 
94  virtual bool forbidBaseRotation() const;
95  virtual void setForbidBaseRotation(const bool forbid);
97 
98 protected:
99 
106 };
107 
UUID is a unique ID wrapper class.
Definition: uuid.h:59
DtRwVector myAimingPoint
Definition: aimAtPointControllerPSR.h:100
The DtSimObjectReference is a shared pointer that can be used amongst many object for access to the u...
Definition: simObjectReference.h:26
Definition: readerWriterRegistry.h:39
DtRwSimObjectReference myTarget
Definition: aimAtPointControllerPSR.h:101
DtAimAtPointControllerPSR is a process state repository which holds state variables for the DtAimAtPo...
Definition: aimAtPointControllerPSR.h:23
DtRwInt myAimingType
Definition: aimAtPointControllerPSR.h:104
Definition: rwVector.h:23
Specialized reader/writer version of the shared object reference that will encapsulate the actual sha...
Definition: rwSimObjectReference.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
AimingType
Definition: setAimingPointRequest.h:35
Description: Readable, Writable DtReal (double)
Definition: rwReal.h:27
DtRwReal myAimingElevation
Definition: aimAtPointControllerPSR.h:103
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
virtual DtString type() const =0
Returns the string type of the repository, as defined in procSRTypes.h.
DtRwBoolean myForbidBaseRotation
Definition: aimAtPointControllerPSR.h:105
DtRwReal myAimingAzimuth
Definition: aimAtPointControllerPSR.h:102
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 Wed Mar 27 22:49:11 EDT 2024 from SVN revision 264633
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)