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);
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();
133 virtual void selectionChanged(
const std::set<makVrv::DtUniqueID>& oldSelection);
161 virtual void setReadOnly(
bool);
DtSphereEditor * mySphereEditor
Definition: sphereEntryWidget.h:140
Extension widget which simply contains three turn rate variable widgets to allow for reuse of existin...
Definition: sphereEntryWidget.h:150
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:40
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:165
QLineEdit * myDefaultValue
Definition: sphereEntryWidget.h:164
double myTop
Definition: sphereEntryWidget.h:144
Definition: readerWriter.h:85
DtTaskSetVariableWidgetCreator< DtSphereEntryWidget > DtSphereEntryWidgetCreator
Definition: sphereEntryWidget.h:170
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:136
static std::string designerGroup()
Definition: sphereEntryWidget.h:106
static std::string headerFile()
Definition: sphereEntryWidget.h:111
bool myHasMapFocus
Definition: sphereEntryWidget.h:142
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:141
double myBottom
Definition: sphereEntryWidget.h:143
QGridLayout * mySphereLayout
Definition: sphereEntryWidget.h:145
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:104
DtSmallRangeEntryWidget * myRangeTop
Definition: sphereEntryWidget.h:167
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:70
Definition: locationEntryWidget.h:45
bool myShowSphere
Definition: sphereEntryWidget.h:139
DtSmallRangeEntryWidget * myRangeBottom
Definition: sphereEntryWidget.h:166
bool showSphere() const
Definition: sphereEntryWidget.h:85