VR-Forces 4.6 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Static Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes | Properties
makVrf::DtSphereEntryWidget Class Reference

Widget that will allow the user to enter a sphere (center and radius). More...

Inheritance diagram for makVrf::DtSphereEntryWidget:
Inheritance graph
[legend]

Public Member Functions

 DtSphereEntryWidget (makVrv::DtDe &de, QWidget *parent, const Qt::WindowFlags &flags=0, const CreationFlags &cflags=NormalMode)
virtual ~DtSphereEntryWidget ()
virtual double radius () const
 Returns the radius value in meters.
virtual void setRadius (double)
 Sets the radius value (supplied in meters).
virtual DtReaderWritercreateBoundVariable (const std::string &variableName)
 Creates the reader/writer variable that will be used as part of the task statement.
virtual void setupFromBoundVariable (const DtReaderWriter *variableName)
 Sets up the widget from the given reader/writer variables.
virtual
DtTaskSetVariableWidgetExtensionInterface
parameterContents (QWidget *parent, const Qt::WindowFlags &flags=0) const
 Return extension that allows entry of default and range values in meters.
virtual void setRadiusLabel (const QString &)
virtual QString radiusLabel () const
virtual void setDefaultRadius (double)
virtual double defaultRadius () const
virtual void refreshLabels ()
virtual void setShowSphere (bool)
 Sets whether or not to show sphere. If true and has map focus will show the sphere.
bool showSphere () const
virtual void setupSphere ()
 Sets up sphere. If not created creates if have map focus.
virtual void setHasMapFocus (bool)
 Called when takes map focus (or not).
virtual void setMaintainCurrentAltitude (bool)
 Never maintain current altitude.
virtual void setProcessMouseEvents (bool)
 Only process mouse events if not showing event handler.
virtual void setHasBeenPlaced (bool b)
bool hasBeenPlaced () const
virtual void setRange (double bottom, double top)
virtual void setDefaultValue (const std::string &)
 Default value to set in control. Value is X;Y;Z;Radius.
virtual void setVariableData (const QString &)
 Variable data that can be used by this control to initialize values (i.e.
- Public Member Functions inherited from makVrf::DtLocationEntryWidget
 DtLocationEntryWidget (makVrv::DtDe &de, QWidget *parent, const Qt::WindowFlags &flags=0, const CreationFlags &cflags=NormalMode)
 Constructor.
virtual ~DtLocationEntryWidget ()
virtual DtVector location () const
 Returns value in meters and local.
virtual DtVector geocentricLocation () const
 Returns value as geocentric.
virtual void setUseInputValidation (bool)
 Sets whether or not to use input validation. Defaults to true.
virtual bool useInputValidation () const
virtual void setUseHighestLOD (bool)
virtual bool useHighestLOD () const
virtual void blockSignals (bool)
 Block boost signals from being sent.
bool signalsBlocked () const
virtual void setLocation (DtVector, bool resetAltitude=true)
 Expects value in meters and local.
virtual void setGeocentricLocation (DtVector, bool resetAltitude=true)
virtual void setAltitude (const DtVector &localLocation, bool resetAltitude=true)
virtual void setCoordinateSystem (makVrv::DtCoordinateDisplay *)
 The coordinate system of the current values.
virtual void setHideAltitude (bool b)
 Hides/shows the Z (altitude) section.
virtual void setHideLocationZ (bool b)
 Hides/shows the myLocationZ line edit.
virtual void setXYValidatorsEnabled (bool enabled)
 Set lat/lon validator enabled state.
virtual bool xyValidatorsEnabled ()
virtual void setXLabel (const QString &)
 Sets label titles.
QString xLabel () const
virtual void setYLabel (const QString &)
QString yLabel () const
virtual void setZLabel (const QString &)
QString zLabel () const
virtual void setXValue (const QString &)
 Sets values.
virtual void setYValue (const QString &)
virtual void setZValue (const QString &)
virtual QString xValue () const
virtual QString yValue () const
virtual QString zValue () const
virtual void setAltitudeAboveSeaLevelVisible (bool b)
virtual void setAltitudeAboveGroundLevelVisible (bool b)
virtual DtGeodeticCoord geodeticLocation () const
virtual void setCoordinateSystem (const makArchives::DtDisplayUnitsSettingsRecord::CoordSys &coordSys)
 Calls down to logic to set coordinate system.
const
makArchives::DtDisplayUnitsSettingsRecord::CoordSys
coordinateSystem () const
virtual void setCoordinateSystemDecimals (int decimals)
 Sets the precision of the x, y and z line edits.
virtual void setAltitudeSelectionEnabled (bool)
virtual bool altitudeSelectionEnabled () const
virtual void setZEnabled (bool)
virtual void setCurrentAltitudeTypeSelection (const DtAltitudeClampType &type)
virtual DtAltitudeClampType currentAltitudeTypeSelection () const
virtual double altitudeAboveSeaLevel () const
virtual double altitudeAboveGroundLevel () const
virtual void setAltitudeAboveSeaLevel (double altitude)
 Sets the altitude location.
virtual void setAltitudeAboveGroundLevel (double altitude)
 Sets the altitude location.
virtual bool processMouseEvents ()
virtual void setAltitudeAboveGroundLevelSelected (bool b)
virtual void setAltitudeAboveSeaLevelSelected (bool b)
virtual void setClampToNearestPolygon (bool)
 Sets whether or not to clamp to nearest polygon when selecting altitude.
virtual void setIgnoreList (const std::vector< makVrv::DtElementID > &)
 List of objects to ignore when getting intersections.
virtual const std::vector
< makVrv::DtElementID > & 
ignoreList () const
virtual void setupFrom (const std::vector< makVrv::DtSimEntry * > &data)
 Sets up from initial data.
virtual bool maintainCurrentAltitude () const
virtual void setupBasedOnEntityType (const DtEntityType &)
 Sets up whether or not to maintain current altitude on placement based on entity kind.
virtual void setProcessAltitudeMouseClicks (bool b)
virtual void setSignalLocationSetOnly (bool)
 Sets to signal the location change by mouse set only – do not set in gui as it is expected that others will do that.
virtual bool signalLocationSetOnly () const
virtual bool validateLocation (bool warn=false)
 Will warn if flag is true via message box and/or will send signals for valid, invalid location.
virtual void updateValidatorsForCoordinateSystem (makVrv::DtCoordinateDisplay *)
 If need be set up validators.
virtual bool invalid () const
virtual void setCanTakeMapFocus (bool)
virtual bool canTakeMapFocus () const
virtual bool hasMapFocus () const
- Public Member Functions inherited from makVrf::DtTaskSetVariableWidget
 DtTaskSetVariableWidget (makVrv::DtDe &de, QWidget *parent, const Qt::WindowFlags &flags=0, const CreationFlags &cflags=NormalMode)
virtual ~DtTaskSetVariableWidget ()
virtual void setToolTip (const QString &)
 Sets the tool tip.
virtual void setLabel (const std::string &)
 Display label.
virtual void setLabel (const QString &)
 QString version for property.
virtual void setVariableData (const std::string &)
 Calls QString version.
virtual QString variableData () const
virtual QString label () const
virtual void setIsInternal (bool)
 Whether or not value is internal. Internal values will not be shown to the user on the scripted task dialog.
virtual bool isInternal () const
virtual void setTopLineVisible (bool)
 Hides top line.
virtual bool topLineVisible () const
virtual void createTopLine ()
 Creates top line.
virtual void setIndent (int)
 Sets the indent level for the contents of this widget, except for the title line.
virtual int indent () const
virtual bool isValid () const
 Indicates the current selection is valid.
virtual void setTopLabelChecked (bool)
 Sets the top label to be checked/unchecked and calls topLabelChecked if the check box is visible.
virtual bool topLabelChecked () const
virtual void setRange (const DtRange &)
virtual void setRangeTop (double)
virtual void setRangeTop (int)
virtual double rangeTop () const
virtual void setRangeBottom (double)
virtual void setRangeBottom (int)
virtual double rangeBottom () const
virtual const DtRangegetRange () const
virtual void setTopLabelIsCheckable (bool)
 Sets whether or not the top label is checkable.
virtual bool topLabelIsCheckable () const
virtual void getDefaultSpecificTitles (QString &defaultTitle, QString &specificTitle) const
virtual void setDefaultSpecificTitles (const QString &defaultTitle, const QString &specificTitle)
virtual void setupDefaultSpecificFromVariableData (const DtString &var)
 Format is allowdefault=[defaultTitle],[specificTitle].
virtual std::string scriptedTaskVariableName () const
 In most cases this is the objectName of the object, however, in some cases (as in radio button) this could be a name that is shared amongst like objects, so, that is returned instead.
- Public Member Functions inherited from makVrf::DtTaskSetVariableWidgetInterface
 DtTaskSetVariableWidgetInterface ()
virtual ~DtTaskSetVariableWidgetInterface ()
virtual void widgetInitializedForDialog (DtScriptedTaskDialog *)
 Called when the widget is initialized from a scripted task dialog. Default implementation is to do nothing.
virtual bool guiElementOnly () const
 Returns true if this is a GUI element only. Default is false.
- Public Member Functions inherited from makVrf::DtLocationEntryWidgetInterface
virtual ~DtLocationEntryWidgetInterface ()
- Public Member Functions inherited from makVrf::DtMapFocusHandler
 DtMapFocusHandler ()
 CTOR.
virtual ~DtMapFocusHandler ()
 DTOR.
virtual void clearMapFocusSelectedByUser ()
 If mapFocusSelectedByUser is true will prevent focus from automatically changing to another control.
virtual bool mapFocusSelectedByUser () const

Static Public Member Functions

static makVrv::DtUnicode codeVariableType ()
static std::string designerGroup ()
static std::string headerFile ()
static std::string variableName ()

Public Attributes

boost::signal< void()> signal_radiusChanged
boost::signal< void(bool)> signal_hasBeenPlaced
DtRangeEntryWidgetmyRadius
- Public Attributes inherited from makVrf::DtLocationEntryWidget
boost::signal< void()> signal_invalidLocation
boost::signal< void()> signal_validLocation
QWidget * myWidget
QGridLayout * myGridLayout
QLineEditmyLocationX
QLabelmyLocationLabelX
QLineEditmyLocationY
QLabelmyLocationLabelY
QLineEditmyLocationZ
QLabelmyLocationLabelZ
DtAltitudeSelectionWidgetmyAltitude
QToolButtonmyCanTakeMapFocus
QPixmap myWarningIcon
QLabelmyWarningLabel
- Public Attributes inherited from makVrf::DtTaskSetVariableWidget
boost::signal< void(bool)> signal_topLevelCheckStateChanged
int myIndent
QVBoxLayout * myVariableWidgetLayout
QHBoxLayout * mySpacedLayout
QVBoxLayout * myVariableContentLayout
 When creating subclasses of this item, use the variable content layout to add your content.
QWidget * myTopLine
QLabelmyTopLabel
QWidget * myChoiceCanvas
QRadioButton * myUseDefault
QRadioButton * myUseSpecific
QSpacerItem * myTopSeparator
QHBoxLayout * myTopLineLayout
QSpacerItem * mySpacerItem
- Public Attributes inherited from makVrf::DtLocationEntryWidgetInterface
boost::signal< void(const
DtVector &)> 
signal_locationSetByMouseClick
boost::signal< void(const
DtVector &)> 
signal_locationChanged
boost::signal< void(double)> signal_altitudeAboveGroundLevelEdited
boost::signal< void(double)> signal_altitudeAboveSeaLevelEdited
boost::signal< void(const
DtAltitudeClampType &)> 
signal_altitudeSelectionTypeChanged
boost::signal< void(int)> signal_clampSelectionChanged
- Public Attributes inherited from makVrf::DtMapFocusHandler
boost::signal< void(DtMapFocusHandler
*, bool)> 
signal_canTakeMapFocusChanged
boost::signal< void(DtMapFocusHandler *)> signal_selectionChangedByMapSelection

Protected Member Functions

virtual void canTakeMapFocusChanged ()
virtual void radiusChanged ()
virtual void slot_onPositionChanged ()
virtual void updateSphereLocation ()
virtual std::string variableDataFromUiDesigner (const QDomElement &element, const DtScriptedTaskVariableLayoutConverter &converter) const
 Given the Ui designer properties create a string that will represent the variable data for those properties.
- Protected Member Functions inherited from makVrf::DtLocationEntryWidget
virtual bool validateDMS (const std::string &) const
virtual void slot_receivedFocus ()
 Called when a location entry widget receives focus or the altitude selection entry widget receives focus.
virtual bool eventFilter (QObject *obj, QEvent *ev)
 Check if the event is a focus event and the sender is x, y, or z label. If so call slot_receivedFocus.
virtual void slot_onClampSelectionChanged (int index)

Protected Attributes

bool myShowSphere
DtSphereEditormySphereEditor
bool myHasBeenPlaced
bool myHasMapFocus
double myBottom
double myTop
- Protected Attributes inherited from makVrf::DtLocationEntryWidget
QValidatormyXValidator
QValidatormyYValidator
QValidatormyZValidator
DtLocationEntryWidgetLogicmyLogic
bool myProcessMouseEvents
bool myLockAltitude
bool myAltitudeSelectionEnabled
DtVector myOriginalLocation
bool myBoundIsZero
makVrv::DtCoordinateDisplaymyCoordinateSystem
bool myUseInputValidation
bool myInvalid
bool myBlockSignals
makVrv::DtSignalConnectionManager myConnections
- Protected Attributes inherited from makVrf::DtTaskSetVariableWidget
makVrv::DtDemyDe
makVrv::DtSignalConnectionManager myConnections
bool myTopLabelIsCheckable
DtRange myRange
bool myIsInternal
CreationFlags myCreationFlags
QString myVariableData
- Protected Attributes inherited from makVrf::DtMapFocusHandler
bool myMapFocusSelectedByUser

Properties

QString radiusLabel
bool showSphere
double defaultRadius

Additional Inherited Members

- Public Types inherited from makVrf::DtTaskSetVariableWidgetInterface
enum  CreationFlags { NormalMode = 0x00000000, QtDesignerMode = 0x00000001 }
- Signals inherited from makVrf::DtTaskSetVariableWidget
void validityUpdated ()
 Signal which can be emitted to indicate the validity of the current widget selection has changed.
- Protected Slots inherited from makVrf::DtLocationEntryWidget
virtual void slot_onPositionEdited ()
virtual void slot_onAltitudeAboveGroundLevelEdited (double)
virtual void slot_onAltitudeAboveSeaLevelEdited (double)
virtual void slot_onAltitudeSelectionTypeChanged (const DtAltitudeClampType &)

Detailed Description

Widget that will allow the user to enter a sphere (center and radius).

If enabled (which is true, but default) when this widget has focus (either map focus or window focus) a sphere will be placed on the map that the user can manipulate

Constructor & Destructor Documentation

makVrf::DtSphereEntryWidget::DtSphereEntryWidget ( makVrv::DtDe de,
QWidget *  parent,
const Qt::WindowFlags &  flags = 0,
const CreationFlags cflags = NormalMode 
)
virtual makVrf::DtSphereEntryWidget::~DtSphereEntryWidget ( )
virtual

Member Function Documentation

virtual void makVrf::DtSphereEntryWidget::setRange ( double  bottom,
double  top 
)
virtual

These methods must be implemented in order to be considered a DtTaskSetVariable that can be used as part of a scripted task. This will be used to validate the range only Validation range. Might not be applicable to all items

Reimplemented from makVrf::DtLocationEntryWidget.

virtual void makVrf::DtSphereEntryWidget::setDefaultValue ( const std::string &  )
virtual

Default value to set in control. Value is X;Y;Z;Radius.

Reimplemented from makVrf::DtLocationEntryWidget.

virtual void makVrf::DtSphereEntryWidget::setVariableData ( const QString &  )
virtual

Variable data that can be used by this control to initialize values (i.e.

filtered list box, combo box). Items should be separated by a semi-colon. If variable data contains "nosphere" then sphere will not be shown when has map focus

Reimplemented from makVrf::DtTaskSetVariableWidget.

virtual double makVrf::DtSphereEntryWidget::radius ( ) const
virtual

Returns the radius value in meters.

virtual void makVrf::DtSphereEntryWidget::setRadius ( double  )
virtual

Sets the radius value (supplied in meters).

virtual DtReaderWriter* makVrf::DtSphereEntryWidget::createBoundVariable ( const std::string &  variableName)
virtual

Creates the reader/writer variable that will be used as part of the task statement.

Reimplemented from makVrf::DtLocationEntryWidget.

virtual void makVrf::DtSphereEntryWidget::setupFromBoundVariable ( const DtReaderWriter variableName)
virtual

Sets up the widget from the given reader/writer variables.

Reimplemented from makVrf::DtLocationEntryWidget.

virtual DtTaskSetVariableWidgetExtensionInterface* makVrf::DtSphereEntryWidget::parameterContents ( QWidget *  parent,
const Qt::WindowFlags &  flags = 0 
) const
virtual

Return extension that allows entry of default and range values in meters.

Will also change according to coordinate settings

Reimplemented from makVrf::DtTaskSetVariableWidgetInterface.

virtual void makVrf::DtSphereEntryWidget::setRadiusLabel ( const QString &  )
virtual
virtual QString makVrf::DtSphereEntryWidget::radiusLabel ( ) const
virtual
virtual void makVrf::DtSphereEntryWidget::setDefaultRadius ( double  )
virtual
virtual double makVrf::DtSphereEntryWidget::defaultRadius ( ) const
virtual
static makVrv::DtUnicode makVrf::DtSphereEntryWidget::codeVariableType ( )
inlinestatic

Reimplemented from makVrf::DtLocationEntryWidget.

References makVrv::DtUnicode::tr().

virtual void makVrf::DtSphereEntryWidget::refreshLabels ( )
virtual
virtual void makVrf::DtSphereEntryWidget::setShowSphere ( bool  )
virtual

Sets whether or not to show sphere. If true and has map focus will show the sphere.

bool makVrf::DtSphereEntryWidget::showSphere ( ) const
inline
virtual void makVrf::DtSphereEntryWidget::setupSphere ( )
virtual

Sets up sphere. If not created creates if have map focus.

virtual void makVrf::DtSphereEntryWidget::setHasMapFocus ( bool  )
virtual

Called when takes map focus (or not).

Either show/hide sphere depending on setting and taking of map focus. Call this specifically to show the sphere if showing sphere is enabled. Sphere is not shown if this object does not have map focus

Reimplemented from makVrf::DtLocationEntryWidget.

virtual void makVrf::DtSphereEntryWidget::setMaintainCurrentAltitude ( bool  )
virtual

Never maintain current altitude.

Reimplemented from makVrf::DtLocationEntryWidget.

virtual void makVrf::DtSphereEntryWidget::setProcessMouseEvents ( bool  )
virtual

Only process mouse events if not showing event handler.

Reimplemented from makVrf::DtLocationEntryWidget.

virtual void makVrf::DtSphereEntryWidget::setHasBeenPlaced ( bool  b)
virtual
bool makVrf::DtSphereEntryWidget::hasBeenPlaced ( ) const
inline
static std::string makVrf::DtSphereEntryWidget::designerGroup ( )
inlinestatic

Reimplemented from makVrf::DtLocationEntryWidget.

static std::string makVrf::DtSphereEntryWidget::headerFile ( )
inlinestatic

Reimplemented from makVrf::DtLocationEntryWidget.

static std::string makVrf::DtSphereEntryWidget::variableName ( )
inlinestatic

Reimplemented from makVrf::DtLocationEntryWidget.

virtual void makVrf::DtSphereEntryWidget::canTakeMapFocusChanged ( )
protectedvirtual

Reimplemented from makVrf::DtLocationEntryWidget.

virtual void makVrf::DtSphereEntryWidget::radiusChanged ( )
protectedvirtual
virtual void makVrf::DtSphereEntryWidget::slot_onPositionChanged ( )
protectedvirtual

Reimplemented from makVrf::DtLocationEntryWidget.

virtual void makVrf::DtSphereEntryWidget::updateSphereLocation ( )
protectedvirtual
virtual std::string makVrf::DtSphereEntryWidget::variableDataFromUiDesigner ( const QDomElement &  ,
const DtScriptedTaskVariableLayoutConverter  
) const
protectedvirtual

Given the Ui designer properties create a string that will represent the variable data for those properties.

Reimplemented from makVrf::DtTaskSetVariableWidget.

Member Data Documentation

boost::signal<void ()> makVrf::DtSphereEntryWidget::signal_radiusChanged
boost::signal<void (bool)> makVrf::DtSphereEntryWidget::signal_hasBeenPlaced
DtRangeEntryWidget* makVrf::DtSphereEntryWidget::myRadius
bool makVrf::DtSphereEntryWidget::myShowSphere
protected
DtSphereEditor* makVrf::DtSphereEntryWidget::mySphereEditor
protected
bool makVrf::DtSphereEntryWidget::myHasBeenPlaced
protected
bool makVrf::DtSphereEntryWidget::myHasMapFocus
protected
double makVrf::DtSphereEntryWidget::myBottom
protected
double makVrf::DtSphereEntryWidget::myTop
protected

Property Documentation

QString makVrf::DtSphereEntryWidget::radiusLabel
readwrite
bool makVrf::DtSphereEntryWidget::showSphere
readwrite
double makVrf::DtSphereEntryWidget::defaultRadius
readwrite

The documentation for this class was generated from the following file:

Document ID: Generated on Thu Apr 12 03:15:37 EDT 2018 from SVN revision 187986
Copyright © 2005-2018 VT MÄK. All Rights Reserved (www.mak.com)