VR-Forces 4.10 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
turretActuatorComponent.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2003 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
10 
11 #pragma once
12 
14 
15 class DtString;
16 class DtSimManager;
17 
21 
50 {
51 
52 public:
53 
57  DtVrfObject* owner,
58  DtSimManager* simManager,
59  DtComponentDescriptor* desc = 0,
60  DtReaderWriterRegistry* parentRegistry = 0);
61 
63  virtual ~DtTurretActuatorComponent();
64 
66  virtual bool postAddComponentsInit();
67 
70  virtual const char* type() const;
71 
73  virtual void tick();
74 
76  virtual DtArtPartType turretArtPart() const;
77 
78  virtual void setMaxSlewRate(DtReal maxSlewRate);
79  virtual DtReal maxSlewRate() const;
80 
83  virtual void initProcessSR();
84 
88  static DtSimComponent * creator(const DtString& name,
89  DtVrfObject* owner,
90  DtSimManager* simManager,
91  DtComponentDescriptor* desc = 0,
92  DtReaderWriterRegistry* parentRegistry = 0);
93 
94 protected:
95 
97  virtual bool createPorts();
98 
106  virtual void lookupAndCacheProcessSR();
107 
108 protected:
109 
112 
115 
117  const DtTurretActuatorComponent & operator=(const
119 
120 
121 protected:
122 
125 
133 
135 
137 
144 
149 
154 };
155 
#define DT_DLL_vrfmodel
This file is used to determine how to build.
Definition: vrfmodelDefines.h:24
virtual bool postAddComponentsInit()
Called after all components have been created, initialized and added to the component manager...
Definition: simComponent.h:146
DtVrfObject is used to represent any type of simulated object (entities, aggregate, control objects) in a VR-Forces application.
Definition: vrfObject.h:215
const DtActuatorComponent & operator=(const DtActuatorComponent &orig)
assignment operator
bool myRotation360
Cache for the condition for 360 rotation, which is hasFixedAzimuth = false and leftLimit = rightLimit...
Definition: turretActuatorComponent.h:148
Contains class declarations for DtConstrainedAnalogInputPort and DtConstrainedAnalogOutputPort.
Definition: constrainedAnalogIOPort.h:27
const DtTurretComponentDescriptor * myTurretComponentDescriptor
Definition: turretActuatorComponent.h:136
A readable, writable type whose name is the name of a component and that has a list of component name...
Definition: componentDescriptor.h:42
Definition: readerWriterRegistry.h:39
End User Description: DtActuator is the base class for all actuator model components.
Definition: actuatorComponent.h:48
File: turBalGunPSR.h.
Definition: vrfTurretedBalGunPSR.h:26
DtConstrainedAnalogInputPort * mySlewPort
Input Port Name: slew Input Port Description: -1.0 indicates maximum left slew, 1.0 indicates maximum right slew Input Port Range: -1.
Definition: turretActuatorComponent.h:132
virtual void tick()
This gives the thread of control to the component.
DtTurretComponentDescriptor is a DtComponentDescriptor that has additional parameter information for ...
Definition: turretComponentDescriptor.h:29
virtual bool createPorts()
Called by init.
The DtSimComponent class is the base class for the entire simulation model component hierarchy...
Definition: simComponent.h:67
DtVrfTurretedBalGunPSR * myProcessState
Pointer to a process state repository used to store state data associated with this component...
Definition: turretActuatorComponent.h:143
The simulation engine is controlled by a single,top-level class called the Simulation Manager...
Definition: simManager.h:103
DtReal myLeftSlewLimit
Local copies of the parameters in the turret descriptor, conditioned so that left limit < right limit...
Definition: turretActuatorComponent.h:152
DtReal myRightSlewLimit
Definition: turretActuatorComponent.h:153
virtual const char * type() const =0
Returns a string identifies the class type of component.
DtTurretActuatorComponent provides a simple model of a rotating turret that knows how to drive the ar...
Definition: turretActuatorComponent.h:49

Document ID: Generated on Tue Sep 21 17:42:52 EDT 2021 from SVN revision 234861
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)