VR-Forces 5.0.2 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
windCorridorDefinitionDialog.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2020 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
6 //\file windCorridorDefinitionDialog.h
7 //\brief Contains DtWindCorridorDefinitionDialog class.
8 
9 
10 #pragma once
11 
14 #include <vrvUtil/DtUnicode.h>
15 
16 class QSpinBox;
17 
18 namespace makVrv
19 {
20  class DtSliderDoubleSpinboxWidget;
21 }
22 
23 namespace makVrf
24 {
25  class DtWindCorridorDefinitionDialog;
26 
28  {
29  public:
32 
35 
39  virtual void processPopulateDialog(const makVrv::DtUniqueID& selectedUniqueID);
40 
42  virtual void setupGui();
43 
44  protected:
45  virtual void processObjectCreation();
46 
47  virtual void slot_onUnitChanged(const makVrv::DtUnicode& category, const makVrv::DtUnicode& type, int newUnit, int oldUnit);
48  virtual void slot_onWindCorridorUpdated();
49  virtual void objectCreated();
50 
51  protected:
53  boost::signalslib::connection myUpdateConnection;
54  };
55 
57  {
58 
59  Q_OBJECT
60 
61  public:
62 
64  DtWindCorridorDefinitionDialog(makVrv::DtDe& de, QWidget* parent, const QString& title = "", DtDialogInteractionMode mode = DtCreationMode);
65 
68 
69 
70  virtual void refreshWindSpeedLabel();
71  virtual void setSpeed(double d);
72  virtual double speed() const;
73 
74 
75  virtual double speedMin() const;
76  virtual double speedMax() const;
77  virtual void setSpeedRange(double min, double max);
78 
79  virtual int priority() const;
80  virtual void setPriority(int priorityVal);
81 
82  virtual void initializeWindSpeedWidget();
83 
84 
85  protected:
86 
87 
88  virtual void setupGui();
89 
90  virtual DtShapeObjectDefinitionDialogLogic* createLogic();
91 
92  virtual void populateOverlays();
93 
94  virtual void init(const DtEntityType& entityType, const QString& title, bool forPlan,
96 
97  protected slots:
98  virtual void windSpeedChanged();
99  virtual void priorityChanged();
100  public:
101  QGridLayout* myGridLayout;
102  QWidget* myExtension;
104 
106 
108 
111  };
112 
114  {
115  public:
117  virtual DtCreateAndEditObjectDialogInterface* createDialog(makVrv::DtDe& de, QWidget* parent, const QString& title,
119  };
120 }
A unicode string. DtUnicode stores a UTF-16 encoded unicode string. Code Point, a Unicode character...
Definition: DtUnicode.h:33
makVrv::DtSliderDoubleSpinboxWidget * myWindSpeed
Definition: windCorridorDefinitionDialog.h:105
#define DT_DLL_VRFGUICOREQT
Definition: vrfGuiCoreQt.h:26
QLabel * myWindSpeedLabel
Definition: windCorridorDefinitionDialog.h:103
DtEditingType
Definition: vrfObjectManipulationHandlerBaseClass.h:42
This class implements the logic behind the DtShapeObjectDefinitionDialog.
Definition: shapeObjectDefinitionDialog.h:51
QWidget * myExtension
Definition: windCorridorDefinitionDialog.h:102
Definition: createAndEditObjectDialogInterface.h:29
Definition: windCorridorDefinitionDialog.h:27
QLabel * myPriorityLabel
Definition: windCorridorDefinitionDialog.h:109
QGridLayout * myGridLayout
Definition: windCorridorDefinitionDialog.h:101
A widget for pairing a horizontal slider with a double spin-box. The spin box must be clamped to a mi...
Definition: DtSliderDoubleSpinboxWidget.h:30
Definition: windCorridorDefinitionDialog.h:56
DtDialogInteractionMode
Definition: createAndEditObjectDialogInterface.h:34
Definition: windCorridorDefinitionDialog.h:113
Definition: shapeObjectDefinitionDialog.h:654
Base class to provide boost signal/slot management.
QSpinBox * myPriority
Definition: windCorridorDefinitionDialog.h:110
DT_DLL_DEBUGDRAWRENDERER void init(makVrv::DtDe &de)
Work function for the plugin initialization.
const char int mode
Definition: ioapi.h:38
boost::signalslib::connection myUpdateConnection
Definition: windCorridorDefinitionDialog.h:53
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
double myWindSpeedMetersPerSec
Definition: windCorridorDefinitionDialog.h:107
This class defines the dialog that allows the creation/update of point objects in the scenario (entit...
Definition: shapeObjectDefinitionDialog.h:253
DtWindCorridorDefinitionDialog * myCustomDialog
Definition: windCorridorDefinitionDialog.h:52

Document ID: Generated on Sun Dec 4 20:22:03 EST 2022 from SVN revision 249613
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)