15 #include <boost/signals2.hpp>
22 class DtSmallRangeEntryWidget;
30 Q_PROPERTY(QString radiusLabel READ radiusLabel WRITE setRadiusLabel)
31 Q_PROPERTY(
bool showSphere READ showSphere WRITE setShowSphere)
32 Q_PROPERTY(
double defaultRadius READ defaultRadius WRITE setDefaultRadius)
44 virtual
void setRange(
double bottom,
double top) override;
47 virtual
void setDefaultValue(const std::
string&) override;
51 virtual
void setVariableData(const QString&) override;
55 virtual
double radius() const;
58 virtual
void setRadius(
double);
61 virtual
DtReaderWriter* createBoundVariable(const std::
string& variableName) override;
64 virtual
void setupFromBoundVariable(const
DtReaderWriter* variableName) override;
69 QWidget* parent, const Qt::WindowFlags& flags = 0) const override;
71 virtual
void setRadiusLabel(const QString&);
72 virtual QString radiusLabel() const;
74 virtual
void setDefaultRadius(
double);
75 virtual
double defaultRadius() const;
77 static makVrv::DtUnicode codeVariableType()
79 return makVrv::DtUnicode::tr(
"Sphere: variable.center (Location3D), variable.radius (radius in meters)");
82 virtual void refreshLabels();
85 virtual void setShowSphere(
bool);
89 virtual void setupSphere();
93 virtual void setHasMapFocus(
bool)
override;
96 virtual void setMaintainCurrentAltitude(
bool)
override;
99 virtual void setProcessMouseEvents(
bool)
override;
101 virtual void setHasBeenPlaced(
bool b);
102 bool hasBeenPlaced()
const {
return myHasBeenPlaced; };
104 boost::signals2::signal<void ()> signal_radiusChanged;
109 return tr(
"VR-Forces Object Creation").toUtf8().constData();
114 return tr(
"<vrfGuiDataEntryWidgets/sphereEntryWidget.h>").toUtf8().constData();
119 return tr(
"sphere").toUtf8().constData();
124 virtual void canTakeMapFocusChanged()
override;
125 virtual void radiusChanged();
127 virtual void slot_onPositionChanged()
override;
129 virtual void updateSphereLocation();
131 virtual std::string variableDataFromUiDesigner(
135 virtual void selectionChanged(
const std::set<makVrv::DtUniqueID>& oldSelection)
override;
163 virtual void setReadOnly(
bool)
override;
DtSphereEditor * mySphereEditor
Definition: sphereEntryWidget.h:142
Extension widget which simply contains three turn rate variable widgets to allow for reuse of existin...
Definition: sphereEntryWidget.h:152
static std::string variableName()
Definition: sphereEntryWidget.h:117
Editor for sphere objects. Will also create the visualizers (and manage) for the editing.
Definition: sphereEditor.h:38
Simple line text entry widget that will allow the user to enter a small range value.
Definition: smallRangeEntryWidget.h:27
This class will parse the UI file for known scripted task variable types and pull out specified scrip...
Definition: scriptedTaskVariableLayoutConverter.h:32
QLabel * myDefaultValueLabel
Definition: sphereEntryWidget.h:167
QLineEdit * myDefaultValue
Definition: sphereEntryWidget.h:166
double myTop
Definition: sphereEntryWidget.h:146
Definition: readerWriter.h:85
DtTaskSetVariableWidgetCreator< DtSphereEntryWidget > DtSphereEntryWidgetCreator
Definition: sphereEntryWidget.h:172
Widget that will allow the user to enter a sphere (center and radius). If enabled (which is true...
Definition: sphereEntryWidget.h:27
DtSmallRangeEntryWidget * myRadius
Definition: sphereEntryWidget.h:138
static std::string designerGroup()
Definition: sphereEntryWidget.h:107
static std::string headerFile()
Definition: sphereEntryWidget.h:112
bool myHasMapFocus
Definition: sphereEntryWidget.h:144
static DtUnicode tr(const char *ascii)
Ascii translation function, used to be compatible with Qt's translation tools. This will simply call ...
Definition: DtUnicode.h:92
bool myHasBeenPlaced
Definition: sphereEntryWidget.h:143
double myBottom
Definition: sphereEntryWidget.h:145
QGridLayout * mySphereLayout
Definition: sphereEntryWidget.h:147
A class for keeping track of meta data for variables of scripted tasks. The information is currently ...
Definition: scriptedTaskVariable.h:34
#define DT_DLL_VRFGUIDATAENTRYWIDGETS
Definition: vrfGuiDataEntryWidgets.h:22
boost::signals2::signal< void(bool)> signal_hasBeenPlaced
Definition: sphereEntryWidget.h:105
DtSmallRangeEntryWidget * myRangeTop
Definition: sphereEntryWidget.h:169
The DtDe is the core component of any VR-Vantage application. It owns a DtRenderer, DtDeCommunicator, as well as a DtDisplay and other things.
Definition: DtDe.h:76
Definition: locationEntryWidget.h:47
bool myShowSphere
Definition: sphereEntryWidget.h:141
DtSmallRangeEntryWidget * myRangeBottom
Definition: sphereEntryWidget.h:168
bool showSphere() const
Definition: sphereEntryWidget.h:86