VR-Forces 4.5 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) 2016 MaK Technologies, Inc.
3
** All rights reserved.
4
*********************************************************************/
5
9
10
#pragma once
11
12
#include <
vrvCigi/vrvCigi.h
>
13
#include <
vrvCore/DtUniqueID.h
>
14
#include <
vrvUtil/DtVirtualBaseClass.h
>
15
16
#include <map>
17
18
#include <matrix/vlVector.h>
19
20
#include <boost/signal.hpp>
21
22
class
CigiHatHotReqV3_2;
23
24
namespace
makVrv
25
{
26
class
DtCigiEntityVisualizer;
27
class
DtCigiConnection;
28
33
class
DT_DLL_VRVCIGI
DtHatHotResponder
34
{
35
public
:
36
struct
HatHotData
37
{
38
DtUniqueID
entityId
;
39
DtVector
location
;
40
int
numberOfFramesBeforeSending
;
41
int
lastFrameSent
;
42
bool
hatRequest
;
43
};
44
45
friend
class
DtHatHotResponderCreator
;
46
48
virtual
~
DtHatHotResponder
();
49
51
virtual
void
addPeriodicHatHotRequest(
DtUniqueID
entityId,
52
const
DtVector
& loc,
int
frequency,
int
hatHotId,
bool
hatRequest);
53
55
virtual
void
processHatHotRequests();
56
58
boost::signal<void (DtUniqueID, const DtVector&, unsigned int, bool, unsigned int)>
59
signal_hatHotRequested
;
60
61
protected
:
63
DtHatHotResponder
(
DtCigiConnection
& connection);
64
67
void
processHatHotRequest(
const
CigiHatHotReqV3_2& hatHotReq);
68
71
virtual
void
sendHatHotRequest(
DtUniqueID
entityId,
const
DtVector
& loc,
72
int
hatHotId,
bool
hatRequest);
73
74
protected
:
75
std::map<int, HatHotData>
myHatHotRequests
;
76
DtCigiConnection
&
myConnection
;
77
};
78
80
class
DT_DLL_VRVCIGI
DtHatHotResponderCreator
:
public
DtVirtualBaseClass
81
{
82
public
:
84
DtHatHotResponderCreator
();
85
87
virtual
~
DtHatHotResponderCreator
();
88
90
static
DtHatHotResponderCreator
& instance(
DtDe
& de );
91
93
static
DtHatHotResponderCreator
& instance(
DtCigiConnection
& con );
94
96
static
void
copyInstance(
DtCigiConnection
& con,
DtDe
& de);
97
99
virtual
DtHatHotResponder
* create(
DtCigiConnection
& connection )
const
;
100
};
101
}
Document ID: Generated on Thu Mar 23 18:54:12 EDT 2017 from SVN revision 174804
Copyright © 2005-2017 VT MÄK. All Rights Reserved (
www.mak.com
)