VR-Forces 5.0.2 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
mountingController.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 1999-2003 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
10 #pragma once
11 
13 #include <matrix/vlVector.h>
14 
24 {
25 
26 public:
27 
30  DtMountingController(const DtString& name,
31  DtLocalObject* owner,
32  DtSimulationServices* simManager,
33  DtComponentDescriptor* desc = 0,
34  DtReaderWriterRegistry* parentRegistry = 0);
35 
37  virtual ~DtMountingController();
38 
41  virtual const char* type() const;
42 
49  virtual void findDesiredAzimuthAndElevation();
50 
56  virtual void findBodyAzimuthElevationToTargetPoint(const DtVector&
57  targetPointIn);
58 
59 
62  virtual void setTargetPoint(const DtVector& localTargetPoint);
63  virtual const DtVector& targetPoint();
64 
68  virtual void setUseTargetPoint(bool doUse)
69  {
70  myUseTargetPoint = doUse;
71  }
72  virtual bool isUsingTargetPoint(){return myUseTargetPoint;}
73 
74  virtual void setFiringDirect(bool isFiringDirect)
75  {
76  myFiringDirect = isFiringDirect;
77  }
78  virtual bool isFiringDirect(){return myFiringDirect;}
79 
80 
84  static DtSimComponent * creator(const DtString& name,
85  DtLocalObject* owner,
86  DtSimulationServices* simManager,
87  DtComponentDescriptor* desc = 0,
88  DtReaderWriterRegistry* parentRegistry = 0);
89 
90 protected:
94 
97 
100  orig);
101 
102 protected:
103 
107 
110 };
111 
virtual bool isFiringDirect()
Definition: mountingController.h:78
#define DT_DLL_vrfmodel
This file is used to determine how to build.
Definition: vrfmodelDefines.h:24
DtMountingController; models rotation of a launcher.
Definition: mountingController.h:23
bool myFiringDirect
Indicates LOS direct fire mode. Set by parent controller each tick.
Definition: mountingController.h:109
DtVector myTargetPoint
Definition: mountingController.h:106
A readable, writable type whose name is the name of a component and that has a list of component name...
Definition: componentDescriptor.h:49
virtual void setUseTargetPoint(bool doUse)
Sets whether to use a target point for determining desired azimuth. myUseTargetPoint is set automatic...
Definition: mountingController.h:68
Definition: readerWriterRegistry.h:39
static DtSimComponent * creator(const DtString &name, DtLocalObject *owner, DtSimulationServices *simManager, DtComponentDescriptor *desc=0, DtReaderWriterRegistry *parentRegistry=0)
virtual const char * type() const
Returns a string identifies the class type of component. Type values are defined in compTypes...
bool myUseTargetPoint
Where the mount is supposed to point in local database coords.
Definition: mountingController.h:105
virtual bool isUsingTargetPoint()
Definition: mountingController.h:72
Central access point of all non-object-specific the services and managers that are available for use ...
Definition: simulationServices.h:90
The DtSimComponent class is the base class for the entire simulation model component hierarchy...
Definition: simComponent.h:70
const DtBaseMountingController & operator=(const DtBaseMountingController &orig)
assignment operator; not implemented
virtual void findDesiredAzimuthAndElevation()
Base fn (should be overridden): set desired az and el from parameter inputs.
DtBaseMountingController is a controller that generates the azimuth and elevation controls needed to ...
Definition: baseMountingController.h:36
virtual void setFiringDirect(bool isFiringDirect)
Definition: mountingController.h:74
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 Sun Dec 4 20:22:03 EST 2022 from SVN revision 249613
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)