VR-Forces 4.5 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
sphereEntryWidget.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2016 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
10 
11 #pragma once
12 
15 
16 namespace makVrf
17 {
18  class DtRangeEntryWidget;
19  class DtSphereEditor;
20 
24  {
25  public:
26  DtSphereEntryWidget(makVrv::DtDe& de, QWidget* parent, const Qt::WindowFlags& flags = 0);
27 
28  //DTOR
29  virtual ~DtSphereEntryWidget();
30 
35  virtual void setRange(double bottom, double top);
36 
38  virtual void setDefaultValue(const std::string&);
39 
42  virtual void setVariableData(const std::string&);
44 
46  virtual double radius() const;
47 
49  virtual void setRadius(double);
50 
52  virtual DtReaderWriter* createBoundVariable(const std::string& variableName);
53 
55  virtual void setupFromBoundVariable(const DtReaderWriter* variableName);
56 
59  virtual DtTaskSetVariableWidgetExtensionInterface* parameterContents(QWidget* parent, const Qt::WindowFlags& flags = 0) const;
60 
61  static makVrv::DtUnicode codeVariableType()
62  {
63  return makVrv::DtUnicode::tr("Sphere: variable.center (Location3D), variable.radius (radius in meters)");
64  }
65 
66  virtual void refreshLabels();
67 
69  virtual void setShowSphere(bool);
70  bool showSphere() const { return myShowSphere; };
71 
73  virtual void setupSphere();
74 
77  virtual void setHasMapFocus(bool);
78 
80  virtual void setMaintainCurrentAltitude(bool);
81 
83  virtual void setProcessMouseEvents(bool);
84 
85  virtual void setHasBeenPlaced(bool b);
86  bool hasBeenPlaced() const { return myHasBeenPlaced; };
87 
88  boost::signal<void ()> signal_radiusChanged;
89  boost::signal<void (bool)> signal_hasBeenPlaced;
90 
91  protected:
92 
93  virtual void canTakeMapFocusChanged();
94  virtual void radiusChanged();
95 
96  virtual void slot_onPositionChanged();
97 
98  virtual void updateSphereLocation();
99 
100  public:
102 
103  protected:
108  double myBottom;
109  double myTop;
110  };
111 
115  {
116  public:
117  DtSphereEntryVariableWidgetExtension(makVrv::DtDe&, QWidget* w, const Qt::WindowFlags& f = 0);
119 
120  virtual int setFrom(const DtScriptedTaskVariable&, QGridLayout* parentLayout, int startRow);
121  virtual void setTo(DtScriptedTaskVariable&) const;
122 
123  virtual void setReadOnly(bool);
124 
125  public:
130  };
131 
133 }

Document ID: Generated on Thu Mar 23 18:54:12 EDT 2017 from SVN revision 174804
Copyright © 2005-2017 VT MÄK. All Rights Reserved (www.mak.com)