VR-Engage  2.2
Loading...
Searching...
No Matches
vreTurretAcquireController.h
Go to the documentation of this file.
1/*******************************************************************************
2** Copyright (c) 2003 MAK Technologies, Inc.
3** All rights reserved.
4*******************************************************************************/
5
6//! \file turretAcquireController.h
7//! \ingroup vrfmodel
8
9//! \brief DtTurretAcquireController; attempts to track a target by controlling
10//! the position of a turret.
11
12#pragma once
13
14
15#include "vreVrfmodel/export.h"
17
18#include <vrfmodel/turretAcquireController.h>
19
20//! \brief Type identifier for the VRE human movement actuator component
21
22const char DtVreTurretAcquireControllerType[] = "vre-turret-acquire-controller";
23
25{
26public:
27 //! \copydoc DtSimComponent(const DtString&,DtLocalObject*,DtSimulationServices*,
28 //! DtComponentDescriptor*,DtReaderWriterRegistry* parentRegistry)
29 DtVreTurretAcquireController(const DtString& name,
30 DtLocalObject* owner,
31 DtSimulationServices* simManager,
32 DtComponentDescriptor* desc = 0,
33 DtReaderWriterRegistry* parentRegistry = 0);
34
35 //! destructor
37
38 //! \copydoc DtSimComponent::type()
39 //! \return DtVreTurretAcquireControllerType
40 virtual const char* type() const override;
41
42 //! Calculate new control values.
43 virtual void tick() override;
44
45public:
46 //! \brief Factory method to create a new instance of this component
47 //! \param name The name for the new component
48 //! \param owner The local object that will own this component
49 //! \param simManager The simulation services manager
50 //! \param desc Optional component descriptor
51 //! \param parentRegistry Optional parent registry for reader/writer functionality
52 //! \return Pointer to the newly created component
53 //!
54 //! Static factory method used by the component creation system to instantiate
55 //! new instances of this component type.
56 static DtSimComponent* creator(const DtString& name,
57 DtLocalObject* owner,
58 DtSimulationServices* simManager,
59 DtComponentDescriptor* desc = 0,
60 DtReaderWriterRegistry* parentRegistry = 0);
61};
62
virtual const char * type() const override
virtual ~DtVreTurretAcquireController() override
destructor
static DtSimComponent * creator(const DtString &name, DtLocalObject *owner, DtSimulationServices *simManager, DtComponentDescriptor *desc=0, DtReaderWriterRegistry *parentRegistry=0)
Factory method to create a new instance of this component.
virtual void tick() override
Calculate new control values.
DtVreTurretAcquireController(const DtString &name, DtLocalObject *owner, DtSimulationServices *simManager, DtComponentDescriptor *desc=0, DtReaderWriterRegistry *parentRegistry=0)
Base template class for VR-Engage simulation components.
Definition vreSimComponent.h:43
Defines export macros for the vreVrfmodel library.
#define VREVRFMODEL_DLL
Definition export.h:22
Base template class for VR-Engage simulation components.
const char DtVreTurretAcquireControllerType[]
DtTurretAcquireController; attempts to track a target by controlling the position of a turret.
Definition vreTurretAcquireController.h:22