VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
surfaceEntityStopController.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2022 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
11 
12 #pragma once
13 
17 
29 {
30 private:
33 
36  const DtSurfaceEntityStopController& orig);
37 
40  const DtSurfaceEntityStopController& orig);
41 
42 public:
46  DtLocalObject* owner,
47  DtSimulationServices* simManager,
48  DtComponentDescriptor* desc = 0,
49  DtReaderWriterRegistry* parentRegistry = 0);
50 
52  virtual ~DtSurfaceEntityStopController() override;
53 
56  virtual const char* type() const override;
57 
66  static void stopCallback(DtSimMessage* msg, void* usr);
67 
71  virtual void processStopTask(DtSimMessage* msg);
72 
76  virtual void registerTaskMsgCallbacks() override;
77 
81  static DtSimComponent* creator(const DtString& name,
82  DtLocalObject* owner,
83  DtSimulationServices* simManager,
84  DtComponentDescriptor* desc = 0,
85  DtReaderWriterRegistry* parentRegistry = 0);
86 
87  virtual bool init(void) override;
88 
89  virtual void tick() override;
90 
91 protected:
93  virtual void doEmergencyStop(void);
94 
97  virtual void doDriftStop(void);
98 
99 protected:
101 
102 };
103 
#define DT_DLL_vrfmodel
This file is used to determine how to build.
Definition: vrfmodelDefines.h:24
virtual void registerTaskMsgCallbacks()
DtSurfaceEntityStopController is a controller that stops the entity, either via drift, normal decelaration, or emergency stop.
Definition: surfaceEntityStopController.h:27
A readable, writable type whose name is the name of a component and that has a list of component name...
Definition: componentDescriptor.h:49
Definition: readerWriterRegistry.h:39
DtMovementLocalObjectFacade myMovementLocalObjectFacade
Definition: surfaceEntityStopController.h:100
const DtSurfaceEntityPilotController & operator=(const DtSurfaceEntityPilotController &orig)
assignment operator; not implemented
virtual const char * type() const override
Returns a string identifies the class type of component. Type values are defined in compTypes...
File: simMsg.h.
Definition: simMessage.h:35
static DtSimComponent * creator(const DtString &name, DtLocalObject *owner, DtSimulationServices *simManager, DtComponentDescriptor *desc=0, DtReaderWriterRegistry *parentRegistry=0)
virtual bool init() override
Calls down to the base class and then caches a pointer to the state repository in mySurfaceEntityStat...
Central access point of all non-object-specific the services and managers that are available for use ...
Definition: simulationServices.h:96
The DtSimComponent class is the base class for the entire simulation model component hierarchy...
Definition: simComponent.h:89
The DtSurfaceEntityPilotController provides basic movement capabilities for surface entities and crea...
Definition: surfaceEntityPilotController.h:78
virtual void tick() override
Overridden to check for valid myProcessState pointer. If it is null a warning is printed to the objec...
A locally simulated VRF object.
Definition: localObject.h:98

Document ID: Generated on Thu Oct 23 22:29:17 EDT 2025 from SVN revision 280951
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)