VR-Forces 4.6.1 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
examples
guiObjectDataInterface
guiObjectDataConsole.h
Go to the documentation of this file.
1
/******************************************************************************
2
** Copyright (c) 2012 MAK Technologies, Inc.
3
** All rights reserved.
4
******************************************************************************/
5
/******************************************************************************
6
** $RCSfile: guiObjectDataConsole.h,v $ $Revision: 1.2 $ $State: Exp $
7
******************************************************************************/
8
//\file guiObjectDataConsole.h
9
10
#pragma once
11
12
#include <
vrvUtil/signalslib.h
>
13
#include <
vrvCore/DtUniqueID.h
>
14
#include <QtWidgets/QDialog>
15
#include <
vrfGuiCore/entityDataInterface.h
>
16
#include <
vrfGuiCore/aggregateDataInterface.h
>
17
#include <
vrfGuiCore/spotReportDataInterface.h
>
18
#include <
vrfGuiCore/tacticalGraphicDataInterface.h
>
19
20
namespace
makVrv
21
{
22
class
DtDe;
23
}
24
25
//The DtGuiObjectDataConsole class will allow for the entering of an object name
26
//or element id to retrieve information about that object
27
28
class
QVBoxLayout;
29
class
QTextEdit;
30
class
QLineEdit
;
31
class
QRadioButton;
32
33
class
DtGuiObjectDataConsole
:
public
QDialog
34
{
35
Q_OBJECT
36
37
public
:
38
DtGuiObjectDataConsole
(
makVrv::DtDe
& de, QWidget* parent);
39
40
virtual
~DtGuiObjectDataConsole
();
41
42
protected
:
43
//Prints a line of text to the console window. Will add CR/LF
44
virtual
void
print
(
const
QString&);
45
46
//Displays information for the tactical graphics
47
virtual
void
displaySpotReportInformation
(
makVrf::DtSpotReportDataInterfacePtr
);
48
49
//Displays information for the tactical graphics
50
virtual
void
displayTacticalGraphicInformation
(
makVrf::DtTacticalGraphicDataInterfacePtr
);
51
52
//Displays information for the aggregate
53
virtual
void
displayAggregateInformation
(
makVrf::DtAggregateDataInterfacePtr
);
54
55
//Displays information for the entity
56
virtual
void
displayEntityInformation
(
makVrf::DtEntityDataInterfacePtr
);
57
58
//Shows help for the console
59
virtual
void
help
();
60
61
//Shows information for the given item
62
virtual
void
info
(
const
QString&);
63
64
//Shows spot report information for the given item (if it exists)
65
virtual
void
spotinfo
(
const
QString&);
66
67
//Returns the network data interface for given item
68
virtual
DtBoost::shared_ptr<makVrf::DtObjectDataInterface>
lookupObjectData
(
const
QString&)
const
;
69
70
//Hides the specified object
71
virtual
void
hideObject
(
const
QString&);
72
73
//Shows the specified object
74
virtual
void
showObject
(
const
QString&);
75
76
//Adds the object to the selection
77
virtual
void
selectObject
(
const
QString&);
78
79
//Removes the object from the current selection
80
virtual
void
removeFromSelection
(
const
QString&);
81
82
protected
:
83
//Returns a list of names from the given element ids
84
virtual
QString
namesFrom
(
const
std::vector<makVrv::DtElementID>& ids)
const
;
85
86
//Displays information for the entity, along with resource information. This call will
87
//delete the interface when complete
88
virtual
void
displayEntityInformationWithResources
(
makVrf::DtEntityDataInterfacePtr
);
89
90
protected
slots:
91
//Called when return is pressed in the object widget. Will then try and find
92
//information for that object
93
virtual
void
processObject
();
94
95
protected
:
96
makVrv::DtDe
&
myDe
;
97
98
public
:
99
QRadioButton*
myLocal
;
100
QRadioButton*
myGeocentric
;
101
QVBoxLayout*
myMainLayout
;
102
QTextEdit*
myConsole
;
//The output of the command
103
QLineEdit
*
myObject
;
//Object input
104
};
Document ID: Generated on Wed Jul 25 16:57:45 EDT 2018 from SVN revision 190790
Copyright © 2005-2018 VT MÄK. All Rights Reserved (
www.mak.com
)