VR-Forces 4.3.1 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
include
vrvCigi
DtHatHotResponder.h
Go to the documentation of this file.
1
/*********************************************************************
2
** Copyright (c) 2009 MaK Technologies, Inc.
3
** All rights reserved.
4
*********************************************************************/
5
/*********************************************************************
6
** $RCSfile: DtHatHotResponder.h,v $ $Revision: 1.1 $ $State: Exp $
7
*********************************************************************/
8
12
13
#ifndef DtHatHotResponder_H_
14
#define DtHatHotResponder_H_
15
16
#include <
vrvCigi/vrvCigi.h
>
17
#include <
vrvCore/DtUniqueID.h
>
18
19
#include <map>
20
21
#include <matrix/vlVector.h>
22
23
#include <boost/signal.hpp>
24
25
class
CigiHatHotReqV3_2;
26
27
namespace
makVrv
28
{
29
class
DtCigiEntityVisualizer;
30
class
DtCigiConnection;
31
36
class
DT_DLL_VRVCIGI
DtHatHotResponder
37
{
38
public
:
39
struct
HatHotData
40
{
41
DtUniqueID
entityId
;
42
DtVector
location
;
43
int
numberOfFramesBeforeSending
;
44
int
lastFrameSent
;
45
bool
hatRequest
;
46
};
47
49
DtHatHotResponder
(
DtCigiConnection
& connection);
50
52
virtual
~
DtHatHotResponder
();
53
55
virtual
void
addPeriodicHatHotRequest(
DtUniqueID
entityId,
56
const
DtVector
& loc,
int
frequency,
int
hatHotId,
bool
hatRequest);
57
59
virtual
void
processHatHotRequests();
60
62
boost::signal<void (DtUniqueID, const DtVector&, unsigned int, bool, unsigned int)>
63
signal_hatHotRequested
;
64
65
protected
:
68
void
processHatHotRequest(
const
CigiHatHotReqV3_2& hatHotReq);
69
72
virtual
void
sendHatHotRequest(
DtUniqueID
entityId,
const
DtVector
& loc,
73
int
hatHotId,
bool
hatRequest);
74
75
protected
:
76
std::map<int, HatHotData>
myHatHotRequests
;
77
DtCigiConnection
&
myConnection
;
78
};
79
}
80
81
#endif
Document ID: Generated on Wed Jul 29 00:55:00 EDT 2015 from SVN revision 155257
Copyright © 2005-2015 VT MÄK. All Rights Reserved (
www.mak.com
)