VR-Exchange 2.1 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
#pragma once
5
6
#include <
broker/broker.h
>
7
#include "
sFireTrans.h
"
8
#include "
sEntityTrans.h
"
9
10
// VR-Link DIS Specific classes
11
class
DtExerciseConn;
12
13
// A simple broker class that implements DtBroker for the DIS protocol.
14
// All broker applications must have a DtBrokerInstance. The DtBroker class
15
// manages the application by listening for control messages from the
16
// dataExchange.
17
//
18
class
DtSimpleBroker
:
public
MAKVrExchange::DtBroker
19
{
20
21
public
:
22
23
DtSimpleBroker
(
MAKVrExchange::DtBrokerInitializer
* init);
24
25
virtual
~DtSimpleBroker
();
26
27
virtual
DtExerciseConn *
disExConn
();
28
protected
:
29
30
// Must provide a Tick Function. This is called periodically.
31
virtual
void
tick
();
32
33
// Must provide a Launch GUI function. This is where the broker
34
// can start up a GUI. It can be any type of display. This function
35
// is called when the user double clicks on the broker name in the VR-Exchange
36
// GUI.
37
virtual
void
launchGui
();
38
39
protected
:
40
41
DtExerciseConn *
myDisExConn
;
42
DtFireTranslator
*
myFireTranslator
;
43
DtEntityTranslator
*
myEntityTranslator
;
44
45
};
Document ID: Generated on Tue Aug 7 22:07:13 EDT 2012 from SVN revision 117874
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (
www.mak.com
)