VR-Vantage 3.1 API Documentation
Home
Modules
Namespaces
Classes
Files
Libraries
Examples
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
sensorFx
examples
guiClient
rfxSimpleClient.h
Go to the documentation of this file.
1
/*******************************************************************************
2
** Copyright (c) 2014 MAK Technologies, Inc.
3
** All rights reserved.
4
*******************************************************************************/
5
6
#pragma once
7
8
#include "generated/ui_simpleClient.h"
9
10
#include "
radarFxShared/rfxMessage.h
"
11
#include "
radarFxConnector/radarFxConnector.h
"
12
13
#include <QtGui/QMainWindow>
14
#include <QtGui/QGraphicsPixmapItem>
15
16
#include "
json.h
"
17
19
class
DtRadarFxSimpleClientWindow
:
public
QMainWindow
,
public
Ui::DtSimpleClient
20
{
21
Q_OBJECT
22
23
public
:
25
DtRadarFxSimpleClientWindow
();
26
virtual
~DtRadarFxSimpleClientWindow
();
27
29
bool
init
();
30
32
virtual
void
showConnectionDialog
();
33
34
protected
slots:
35
virtual
void
onTick
();
36
virtual
void
onSensorLocationChanged
();
37
virtual
void
onTargetLocationChanged
();
38
virtual
void
onSaveOnServerChanged
();
39
virtual
void
onRequestImage
();
40
virtual
void
onConnect
();
41
virtual
void
onExit
();
42
virtual
void
onAbout
();
43
virtual
void
onLoad
();
44
virtual
void
onSave
();
45
virtual
void
onSelectPreset
(
int
index
);
46
virtual
void
onRefreshSensor
();
47
48
protected
:
49
void
loadPresets
();
50
void
setDefaults
();
51
bool
isReady
();
52
void
setupGui
();
53
void
requestOcclusion
();
54
void
requestElevation
();
55
void
handleSarResponse
(
makRadarFx::DtBaseMessage
* msg);
56
void
handleEntityListResponse
(
makRadarFx::DtBaseMessage
* msg);
57
void
handleSensorListResponse
(
makRadarFx::DtBaseMessage
* msg);
58
void
handleElevationResponse
(
makRadarFx::DtBaseMessage
* msg);
59
void
handleOcclusionResponse
(
makRadarFx::DtBaseMessage
* msg);
60
void
handleConnection
(
makRadarFx::DtRadarFxConnector
* connection);
61
void
handleDisconnection
(
makRadarFx::DtRadarFxConnector
* connection);
62
63
QTimer
*
myTimer
;
64
65
std::string
myServerAddress
;
66
int
myPort
;
67
68
makRadarFx::DtRadarFxConnector
*
myConnector
;
69
makRadarFx::DtMessageDelegate
*
mySarMessageDelegate
;
70
makRadarFx::DtMessageDelegate
*
myEntityMessageDelegate
;
71
makRadarFx::DtMessageDelegate
*
mySensorMessageDelegate
;
72
makRadarFx::DtMessageDelegate
*
myElevationMessageDelegate
;
73
makRadarFx::DtMessageDelegate
*
myOcclusionMessageDelegate
;
74
makRadarFx::DtRadarFxConnector::DtConnectionDelegate
*
myConnectionDelegate
;
75
makRadarFx::DtRadarFxConnector::DtConnectionDelegate
*
myDisconnectionDelegate
;
76
77
QLabel
*
myConnectionLabel
;
78
QLabel
*
myImageInfo
;
79
QGraphicsPixmapItem*
myPixmap
;
80
json_value
*
myPresets
;
81
};
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (
www.mak.com
)