VR-Forces 4.8 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
humanGunActuator.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2015 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
10 #pragma once
11 
12 #include "vrfmodel/ballisticGun.h"
13 #include <vl/hostStructs.h>
14 
16 class DtAnalogInputPort;
17 
27 {
28 
29 public:
30 
33  DtHumanGunActuator(const DtString& name,
34  DtVrfObject* owner,
35  DtSimManager* simManager,
36  DtComponentDescriptor* desc = 0,
37  DtReaderWriterRegistry* parentRegistry = 0);
38 
39 
41  virtual ~DtHumanGunActuator();
42 
45  virtual const char* type() const;
46 
47 public:
48 
52  static DtSimComponent * creator(const DtString& name,
53  DtVrfObject* owner,
54  DtSimManager* simManager,
55  DtComponentDescriptor* desc = 0,
56  DtReaderWriterRegistry* parentRegistry = 0);
57 
58 protected:
60  virtual void tick();
61 
63  virtual bool createPorts();
64 
69  virtual bool aimGun();
70 
71 protected:
72 
75 
78 
80  const DtHumanGunActuator & operator=(const DtHumanGunActuator & orig);
81 
82 protected:
83 
85 
88 
94 
96 };
97 
#define DT_DLL_vrfmodel
This file is used to determine how to build.
Definition: vrfmodelDefines.h:24
DtVrfObject is used to represent any type of simulated object (entities, aggregate, control objects) in a VR-Forces application.
Definition: vrfObject.h:215
DtBallisticGun provides a simple model of a ballistic gun.
Definition: ballisticGun.h:44
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
virtual const char * type() const
Returns a string identifies the class type of component.
const DtBallisticGun & operator=(const DtBallisticGun &orig)
assignment operator; not implemented
DtHumanGunActuatorDescriptor * myHumanGunDescriptor
Definition: humanGunActuator.h:84
DtHumanGunActuator provides a simple model of a hand held gun.
Definition: humanGunActuator.h:26
static DtSimComponent * creator(const DtString &name, DtVrfObject *owner, DtSimManager *simManager, DtComponentDescriptor *desc=0, DtReaderWriterRegistry *parentRegistry=0)
virtual bool aimGun()
Aims the gun based on input ports.
virtual void tick()
Update the gun elevation.
The DtSimComponent class is the base class for the entire simulation model component hierarchy...
Definition: simComponent.h:67
Contains class declarations for DtAnalogInputPort, DtAnalogOutputPort, and DtAnalogPortData.
Definition: analogIOPort.h:25
DtHumanGunActuatorDescriptor; a descriptor for the DtHumanGunActuator component.
Definition: humanGunActuatorDescriptor.h:19
The simulation engine is controlled by a single,top-level class called the Simulation Manager...
Definition: simManager.h:102
DtAnalogInputPort * myAimAzimuthInputPort
Input Port Name: aim-azimuth Input Port Description: Azimuth at which to aim, in radians.
Definition: humanGunActuator.h:93
virtual bool createPorts()
Overridden to create local ports.

Document ID: Generated on Thu Aug 27 10:56:05 EDT 2020 from SVN revision 217100
Copyright © 2005-2020 MAK Technologies. All Rights Reserved (www.mak.com)