VR-Exchange 2.2 API Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Libraries
File List
File Members
examples
simpleBroker
simpleBroker.h
Go to the documentation of this file.
1
/*********************************************************************
2
** Copyright (c) 2005 VT MAK
3
*********************************************************************/
4
5
#pragma once
6
7
#include <
broker/broker.h
>
8
9
#include "
sEntityTrans.h
"
10
#include "
sFireTrans.h
"
11
12
class
DtExerciseConn;
13
14
// A simple broker class that implements DtBroker for the DIS protocol.
15
// All broker applications must have a DtBrokerInstance. The DtBroker class
16
// manages the application by listening for control messages from the
17
// dataExchange.
18
class
DtSimpleBroker
:
public
MAKVrExchange::DtBroker
19
{
20
public
:
21
22
static
DtSimpleBroker
*
create
(
MAKVrExchange::DtBrokerInitializer
* init );
23
24
virtual
~DtSimpleBroker
();
25
26
virtual
DtExerciseConn*
disExConn
();
27
28
protected
:
29
30
// Protected CTOR (use ::create()).
31
DtSimpleBroker
();
32
33
// Must provide a Tick Function. This is called periodically.
34
virtual
void
tick
();
35
36
// Must provide a Launch GUI function. This is where the broker
37
// can start up a GUI. It can be any type of display. This function
38
// is called when the user double clicks on the broker name in the VR-Exchange
39
// GUI.
40
virtual
void
launchGui
();
41
42
protected
:
43
44
DtExerciseConn *
myDisExConn
;
45
DtFireTranslator
*
myFireTranslator
;
46
DtEntityTranslator
*
myEntityTranslator
;
47
48
};
Document ID: Generated on Mon Apr 15 17:15:50 EDT 2013 from SVN revision 126154
Copyright © 2005-2012 VT MÄK. All Rights Reserved (
www.mak.com
)