VR-Forces 4.8 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
myLclEntSetCtlr.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2006 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 /*******************************************************************************
6 ** $RCSfile: myLclEntSetCtlr.h,v $ $Revision: 1.2 $ $State: Exp $
7 *******************************************************************************/
8 
9 //\file myLclEntSetCtlr.h
10 //\brief MyLocalEntitySetController; handles new DtSetSpeedAndHeadingRequest
11 
12 
13 #ifndef MyLocalEntitySetController_H_
14 #define MyLocalEntitySetController_H_
15 
16 
18 #include "vrfobjcore/simRadio.h"
19 
20 namespace vrfAddSetExample
21 {
22  //\brief MyLocalEntitySetController is a controller that handles new
23  //DtSetSpeedAndHeadingRequest. It replaces the existing DtLocalEntitySetController
24  //
25  //Uses Descriptor Type: DtComponentDescriptor
26 
28  {
29 
30  public:
31 
32  //\copydoc DtSimComponent(const DtString&,DtVrfObject*,DtSimManager*,
33  //DtComponentDescriptor*,DtReaderWriterRegistry* parentRegistry)
35  DtVrfObject* owner,
37  DtComponentDescriptor* desc = 0,
38  DtReaderWriterRegistry* parentRegistry = 0);
39 
40  //destructor
42 
43  virtual void processSetSpeedAndHeading(DtSimMessage * msg);
44 
45  static void setSpeedAndHeadingCallback(DtSimMessage * msg, void * usrData);
46 
47  //\copydoc DtSimComponent(const DtString&,DtVrfObject*,DtSimManager*,
48  //DtComponentDescriptor*,DtReaderWriterRegistry* parentRegistry)
49  //\return New instance of this class.
50  static DtSimComponent * creator(const DtString& name,
51  DtVrfObject* owner,
52  DtSimManager* simManager,
53  DtComponentDescriptor* desc = 0,
54  DtReaderWriterRegistry* parentRegistry = 0);
55 
56  private:
57  //Default constructor; should not be called. Here because the compiler
58  //will generate an unprotected one otherwise.
60 
61  //copy constructor
63 
64  //assignment operator
67 
68 
69  protected:
70  //Overrides this so it can register its interest in the set commands.
71  virtual void setRadio(DtSimRadio * radio);
72  };
73 }
74 #endif
75 
DtVrfObject is used to represent any type of simulated object (entities, aggregate, control objects) in a VR-Forces application.
Definition: vrfObject.h:215
virtual void setRadio(DtSimRadio *radio)
Override to add set data callbacks.
static void setSpeedAndHeadingCallback(DtSimMessage *msg, void *usrData)
class DtSimRadio:
Definition: simRadio.h:25
DtSimManager * simManager()
Gets the sim manager.
Definition: simComponent.h:408
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
static DtSimComponent * creator(const DtString &name, DtVrfObject *owner, DtSimManager *simManager, DtComponentDescriptor *desc=0, DtReaderWriterRegistry *parentRegistry=0)
File: simMsg.h.
Definition: simMessage.h:35
const MyLocalEntitySetController & operator=(const MyLocalEntitySetController &orig)
virtual void processSetSpeedAndHeading(DtSimMessage *msg)
The DtSimComponent class is the base class for the entire simulation model component hierarchy...
Definition: simComponent.h:67
Definition: myLclEntSetCtlr.h:27
The simulation engine is controlled by a single,top-level class called the Simulation Manager...
Definition: simManager.h:102
virtual DtSymbolString name() const
Accessor for name of this readable/writable object.
virtual DtSimRadio * radio()
The radio this component is listening to.
DtLocalEntitySetController is a controller that handles all DtSetDataRequest messages for an entity a...
Definition: localEntitySetController.h:30

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)