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
examples
unitStatus
DtUnitStatus.h
Go to the documentation of this file.
1
/*******************************************************************************
2
** Copyright (c) 2011 MAK Technologies, Inc.
3
** All rights reserved.
4
*******************************************************************************/
5
6
//\file DtUnitStatus.h
7
//\brief Contains makVrf::makVrfUnitStatusExample::DtUnitStatus class.
8
9
#pragma once
10
11
#include <
vrvUtil/signalslib.h
>
12
13
#include "statusWidgetUi.hpp"
14
#include "
DtUnitStatusInterface.h
"
15
16
#include <
vrvCore/DtUserInterfaceAssembler.h
>
17
#include <
vrvCoreQt/DtPage.h
>
18
19
namespace
makVrv
20
{
21
class
DtDe;
22
}
23
24
namespace
makVrfUnitStatusExample
25
{
26
class
DtUnitStatusLogic;
27
28
//A widget class for managing different camera views the currently selected observer can be placed in.
29
class
DtUnitStatus
30
:
public
makVrv::DtPage
31
,
public
DtUnitStatusInterface
32
{
33
public
:
34
//\brief CTOR
35
DtUnitStatus
(
makVrv::DtDe
& de,
QWidget
* parent = 0, Qt::WindowFlags flags = 0);
36
37
//\brief DTOR
38
virtual
~DtUnitStatus
();
39
40
//Get the icon of the page.
41
virtual
QIcon
icon
();
42
43
//Get the title of the page.
44
virtual
QString
title
();
45
46
//Get the class name of the page.
47
virtual
const
std::string&
pageClassName
()
const
;
48
49
//Called when the page is displayed.
50
virtual
void
activate
();
51
52
//Called when the page is hidden.
53
virtual
void
deactivate
();
54
55
static
std::string
thePageClassName
();
56
57
protected
:
58
//\brief Sets up the contents of the widget onto the supplied parent
59
void
setupUi
(
QWidget
* p);
60
61
//\brief Clears out widget
62
virtual
void
clear
();
63
64
virtual
void
setUnitName
(
const
std::string&);
65
virtual
void
setIcon
(
const
QPixmap&);
66
virtual
void
setLocation
(
const
std::vector<std::string>& position);
67
68
virtual
void
setVelocity
(
const
QString&);
69
virtual
void
setAcceleration
(
const
QString&);
70
virtual
void
setHeading
(
const
QString&);
71
virtual
void
setMarkingText
(
const
QString&);
72
73
public
:
74
Ui_DtUnitStatusUi
myUi
;
75
76
protected
:
77
DtUnitStatusLogic
*
myLogic
;
78
79
};
80
81
//Create a "creator" helper class using the template.
82
typedef
makVrv::DtPageCreatorTemplate<DtUnitStatus>
DtUnitStatusWidgetCreator
;
83
}
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
)