VR-Forces 4.3.1 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
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 <QtGui/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
DtVector
;
29
class
QVBoxLayout;
30
class
QTextEdit
;
31
class
QLineEdit
;
32
class
QRadioButton;
33
34
class
DtGuiObjectDataConsole
:
public
QDialog
35
{
36
Q_OBJECT
37
38
public
:
39
DtGuiObjectDataConsole
(
makVrv::DtDe
& de,
QWidget
* parent);
40
41
virtual
~DtGuiObjectDataConsole
();
42
43
protected
:
44
//Prints a line of text to the console window. Will add CR/LF
45
virtual
void
print
(
const
QString&);
46
47
//Displays information for the tactical graphics
48
virtual
void
displaySpotReportInformation
(
makVrf::DtSpotReportDataInterfacePtr
);
49
50
//Displays information for the tactical graphics
51
virtual
void
displayTacticalGraphicInformation
(
makVrf::DtTacticalGraphicDataInterfacePtr
);
52
53
//Displays information for the aggregate
54
virtual
void
displayAggregateInformation
(
makVrf::DtAggregateDataInterfacePtr
);
55
56
//Displays information for the entity
57
virtual
void
displayEntityInformation
(
makVrf::DtEntityDataInterfacePtr
);
58
59
//Shows help for the console
60
virtual
void
help
();
61
62
//Shows information for the given item
63
virtual
void
info
(
const
QString&);
64
65
//Shows spot report information for the given item (if it exists)
66
virtual
void
spotinfo
(
const
QString&);
67
68
//Returns the network data interface for given item
69
virtual
DtBoost::shared_ptr<makVrf::DtObjectDataInterface>
lookupObjectData
(
const
QString&)
const
;
70
71
//Hides the specified object
72
virtual
void
hideObject
(
const
QString&);
73
74
//Shows the specified object
75
virtual
void
showObject
(
const
QString&);
76
77
//Adds the object to the selection
78
virtual
void
selectObject
(
const
QString&);
79
80
//Removes the object from the current selection
81
virtual
void
removeFromSelection
(
const
QString&);
82
83
protected
:
84
//Returns a list of names from the given element ids
85
virtual
QString
namesFrom
(
const
std::vector<makVrv::DtElementID>& ids)
const
;
86
87
//Displays information for the entity, along with resource information. This call will
88
//delete the interface when complete
89
virtual
void
displayEntityInformationWithResources
(
makVrf::DtEntityDataInterfacePtr
);
90
91
protected
slots:
92
//Called when return is pressed in the object widget. Will then try and find
93
//information for that object
94
virtual
void
processObject
();
95
96
protected
:
97
makVrv::DtDe
&
myDe
;
98
99
public
:
100
QRadioButton*
myLocal
;
101
QRadioButton*
myGeocentric
;
102
QVBoxLayout*
myMainLayout
;
103
QTextEdit
*
myConsole
;
//The output of the command
104
QLineEdit
*
myObject
;
//Object input
105
};
Document ID: Generated on Wed Jul 29 00:55:00 EDT 2015 from SVN revision 155257
Copyright © 2005-2015 VT MÄK. All Rights Reserved (
www.mak.com
)