15 #include <boost/signals2.hpp>
22 class DtRangeEntryWidget;
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);
47 virtual
void setDefaultValue(const std::
string&);
51 virtual
void setVariableData(const QString&);
55 virtual
double radius() const;
58 virtual
void setRadius(
double);
61 virtual
DtReaderWriter* createBoundVariable(const std::
string& variableName);
64 virtual
void setupFromBoundVariable(const
DtReaderWriter* variableName);
70 virtual
void setRadiusLabel(const QString&);
71 virtual QString radiusLabel() const;
73 virtual
void setDefaultRadius(
double);
74 virtual
double defaultRadius() const;
76 static makVrv::DtUnicode codeVariableType()
78 return makVrv::DtUnicode::tr(
"Sphere: variable.center (Location3D), variable.radius (radius in meters)");
81 virtual void refreshLabels();
84 virtual void setShowSphere(
bool);
88 virtual void setupSphere();
92 virtual void setHasMapFocus(
bool);
95 virtual void setMaintainCurrentAltitude(
bool);
98 virtual void setProcessMouseEvents(
bool);
100 virtual void setHasBeenPlaced(
bool b);
101 bool hasBeenPlaced()
const {
return myHasBeenPlaced; };
103 boost::signals2::signal<void ()> signal_radiusChanged;
108 return tr(
"VR-Forces Object Creation").toUtf8().constData();
113 return tr(
"<vrfGuiDataEntryWidgets/sphereEntryWidget.h>").toUtf8().constData();
118 return tr(
"sphere").toUtf8().constData();
123 virtual void canTakeMapFocusChanged();
124 virtual void radiusChanged();
126 virtual void slot_onPositionChanged();
128 virtual void updateSphereLocation();
158 virtual void setReadOnly(
bool);
DtSphereEditor * mySphereEditor
Definition: sphereEntryWidget.h:137
Extension widget which simply contains three turn rate variable widgets to allow for reuse of existin...
Definition: sphereEntryWidget.h:147
Simple line text entry widget that will allow the user to enter a range value.
Definition: rangeEntryWidget.h:26
static std::string variableName()
Definition: sphereEntryWidget.h:116
Editor for sphere objects. Will also create the visualizers (and manage) for the editing.
Definition: sphereEditor.h:42
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:162
QLineEdit * myDefaultValue
Definition: sphereEntryWidget.h:161
double myTop
Definition: sphereEntryWidget.h:141
Definition: readerWriter.h:85
DtTaskSetVariableWidgetCreator< DtSphereEntryWidget > DtSphereEntryWidgetCreator
Definition: sphereEntryWidget.h:167
Widget that will allow the user to enter a sphere (center and radius).
Definition: sphereEntryWidget.h:27
static std::string designerGroup()
Definition: sphereEntryWidget.h:106
static std::string headerFile()
Definition: sphereEntryWidget.h:111
bool myHasMapFocus
Definition: sphereEntryWidget.h:139
static DtUnicode tr(const char *ascii)
Ascii translation function, used to be compatible with Qt's translation tools.
Definition: DtUnicode.h:92
bool myHasBeenPlaced
Definition: sphereEntryWidget.h:138
double myBottom
Definition: sphereEntryWidget.h:140
QGridLayout * mySphereLayout
Definition: sphereEntryWidget.h:142
A class for keeping track of meta data for variables of scripted tasks.
Definition: scriptedTaskVariable.h:31
#define DT_DLL_VRFGUIDATAENTRYWIDGETS
Definition: vrfGuiDataEntryWidgets.h:23
boost::signals2::signal< void(bool)> signal_hasBeenPlaced
Definition: sphereEntryWidget.h:104
DtRangeEntryWidget * myRadius
Definition: sphereEntryWidget.h:133
DtRangeEntryWidget * myRangeBottom
Definition: sphereEntryWidget.h:163
The DtDe is the core component of any VR-Vantage application.
Definition: DtDe.h:69
Definition: locationEntryWidget.h:44
bool myShowSphere
Definition: sphereEntryWidget.h:136
bool showSphere() const
Definition: sphereEntryWidget.h:85
DtRangeEntryWidget * myRangeTop
Definition: sphereEntryWidget.h:164