VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
shipAisController.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2022 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
9 #pragma once
10 
12 
14 
15 class DtSimMessage;
16 
19 {
20 public:
21 
24  DtShipAisController(const DtString& name, DtLocalObject* owner, DtSimulationServices* simManager,
25  DtComponentDescriptor* desc = 0, DtReaderWriterRegistry* parentRegistry = 0);
26 
28  virtual ~DtShipAisController();
29 
31  virtual bool init() override;
32 
34  virtual bool postAddComponentsInit() override;
35 
38  virtual const char* type() const override;
39 
43  static DtSimComponent* creator(const DtString& name, DtLocalObject* owner, DtSimulationServices* simManager,
44  DtComponentDescriptor* desc = 0, DtReaderWriterRegistry* parentRegistry = 0);
45 
47  virtual void registerSetRequestMsgCallbacks();
48 
50 
51  static void setAisDataCallback(DtSimMessage* msg, void* usrData);
52  virtual void processSetAisData(DtSimMessage* msg);
54 
55 private:
56 
59 
62 
65 
66 
67 };
68 
#define DT_DLL_vrfmodel
This file is used to determine how to build.
Definition: vrfmodelDefines.h:24
const DtControllerComponent & operator=(const DtControllerComponent &orig)
assignment operator
virtual bool postAddComponentsInit() override
Calls enableTaskTypes()
virtual const char * type() const =0
This returns a string from compTypes.h, and identifies the type of component.
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
virtual bool init() override
Calls setRadio()
File: simMsg.h.
Definition: simMessage.h:35
End User Description: DtControllerComponent is the base class for all controllers components...
Definition: controllerComponent.h:31
Central access point of all non-object-specific the services and managers that are available for use ...
Definition: simulationServices.h:94
The DtSimComponent class is the base class for the entire simulation model component hierarchy...
Definition: simComponent.h:91
Sets the AIS data published for a ship.
Definition: shipAisController.h:18
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 Wed Mar 27 22:49:11 EDT 2024 from SVN revision 264633
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)