VR-Forces 4.1 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
examples
addSet
addSetSim
myHumanSetController.h
Go to the documentation of this file.
1
/*******************************************************************************
2
** Copyright (c) 2010 MAK Technologies, Inc.
3
** All rights reserved.
4
*******************************************************************************/
5
6
//\file myHumanSetController.h
7
//\brief MyHumanSetController; handles new DtSetSpeedAndHeadingRequest
8
9
10
#pragma once
11
12
#include "
vrfmodel/humanSetController.h
"
13
#include "
vrfobjcore/simRadio.h
"
14
15
namespace
vrfAddSetExample
16
{
17
//\brief MyLocalEntitySetController is a controller that handles new
18
//DtSetSpeedAndHeadingRequest. It replaces the existing DtHumanSetController.
19
//
20
//Uses Descriptor Type: DtComponentDescriptor
21
22
class
MyHumanSetController
:
public
DtHumanSetController
23
{
24
25
public
:
26
27
//\copydoc DtSimComponent(const DtString&,DtVrfObject*,DtSimManager*,
28
//DtComponentDescriptor*,DtReaderWriterRegistry* parentRegistry)
29
MyHumanSetController
(
const
DtString
&
name
,
30
DtVrfObject
* owner,
31
DtSimManager
*
simManager
,
32
DtComponentDescriptor
* desc = 0,
33
DtReaderWriterRegistry
* parentRegistry = 0);
34
35
//destructor
36
virtual
~MyHumanSetController
();
37
38
virtual
void
processSetSpeedAndHeading
(
DtSimMessage
* msg);
39
40
static
void
setSpeedAndHeadingCallback
(
DtSimMessage
* msg,
void
* usrData);
41
42
//\copydoc DtSimComponent(const DtString&,DtVrfObject*,DtSimManager*,
43
//DtComponentDescriptor*,DtReaderWriterRegistry* parentRegistry)
44
//\return New instance of this class.
45
static
DtSimComponent
*
creator
(
const
DtString
& name,
46
DtVrfObject
* owner,
47
DtSimManager
* simManager,
48
DtComponentDescriptor
* desc = 0,
49
DtReaderWriterRegistry
* parentRegistry = 0);
50
51
private
:
52
//Default constructor; should not be called. Here because the compiler
53
//will generate an unprotected one otherwise.
54
MyHumanSetController
();
55
56
//copy constructor
57
MyHumanSetController
(
const
MyHumanSetController
& orig);
58
59
//assignment operator
60
const
MyHumanSetController
&
operator=
(
const
61
MyHumanSetController
& orig);
62
63
64
protected
:
65
//Overrides this so it can register its interest in the set commands.
66
virtual
void
setRadio
(
DtSimRadio
*
radio
);
67
};
68
}
69
Document ID: Generated on Tue Jan 29 18:21:16 EST 2013 from SVN revision 123193
Copyright © 2005-2013 VT MÄK Inc. All Rights Reserved (
www.mak.com
)