VR-Forces 5.0.2 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) 2013 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
11 
12 #pragma once
13 
16 
28 {
29 private:
32 
35  const DtSurfaceEntityStopController& orig);
36 
39  const DtSurfaceEntityStopController& orig);
40 
41 public:
45  DtLocalObject* owner,
46  DtSimulationServices* simManager,
47  DtComponentDescriptor* desc = 0,
48  DtReaderWriterRegistry* parentRegistry = 0);
49 
52 
55  virtual const char* type() const;
56 
65  static void stopCallback(DtSimMessage* msg, void* usr);
66 
70  virtual void processStopTask(DtSimMessage* msg);
71 
75  virtual void registerTaskMsgCallbacks();
76 
80  static DtSimComponent* creator(const DtString& name,
81  DtLocalObject* owner,
82  DtSimulationServices* simManager,
83  DtComponentDescriptor* desc = 0,
84  DtReaderWriterRegistry* parentRegistry = 0);
85 
86  virtual bool init(void);
87 
88  virtual void tick();
89 
90 protected:
92  virtual void doEmergencyStop(void);
93 
96  virtual void doDriftStop(void);
97 
98 protected:
100 
101 };
102 
#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:26
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
const DtSurfaceEntityPilotController & operator=(const DtSurfaceEntityPilotController &orig)
assignment operator; not implemented
virtual void tick()
Overridden to check for valid myProcessState pointer. If it is null a warning is printed to the objec...
File: simMsg.h.
Definition: simMessage.h:35
static DtSimComponent * creator(const DtString &name, DtLocalObject *owner, DtSimulationServices *simManager, DtComponentDescriptor *desc=0, DtReaderWriterRegistry *parentRegistry=0)
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
The DtSurfaceEntityPilotController provides basic movement capabilities for surface entities and crea...
Definition: surfaceEntityPilotController.h:78
virtual bool init()
Calls down to the base class and then caches a pointer to the state repository in mySurfaceEntityStat...
virtual const char * type() const
Returns a string identifies the class type of component. Type values are defined in compTypes...
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)