VR-Forces 5.0.2 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
uiBoundingVolumeElement.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 2020 MaK Technologies, Inc.
3 ** All rights reserved.
4 *********************************************************************/
5 
8 
9 #pragma once
10 
13 #include <matrix/vlVector.h>
14 
15 class QLabel;
16 class QSpinbox;
17 class QDoubleSpinBox;
18 class QComboBox;
19 class DtRwVector;
20 class DtUiVectorElement;
21 class QToolButton;
22 class QSpinBox;
23 class QDoubleSpinBox;
24 
25 class QCheckBox;
26 
27 namespace makVrv
28 {
29  class DtDe;
30  class DtSliderSpinboxWidget;
31 }
32 
33 namespace makVrf
34 {
35  class DtLocationEntryWidget;
36 }
37 
39 {
40  Q_OBJECT
41 
42 public:
43 
46 
48  virtual ~DtUiBoundingVolumeElement();
49 
51 
52 public:
53  virtual void createControls(QWidget*);
54  virtual void setEnabled(bool);
55 
56 protected:
57  virtual void setFromParameters(const std::vector<DtReaderWriter*>& parentRw);
58  virtual void elementChanged();
59  virtual void updateOrigin();
60 
62  virtual void sendUpdatedValues();
63 
64  virtual void processUiEvent(const DtUiElementEvent& e);
65  virtual void cleanup(std::vector<DtReaderWriter*>& rwItems);
66  virtual void bvUpdated(DtUiElement*);
67  virtual void offsetUpdated(DtUiElement*);
68 
69 protected slots:
70  void dimensionRevertButtonClicked();
71  void originRevertButtonClicked();
72 
73 public:
74  std::vector<DtReaderWriter*> myBoundingVolumes;
75  std::vector<DtReaderWriter*> myBoundingVolumeOffsets;
76  std::vector<DtReaderWriter*> myBackupBoundingVolumes;
77  std::vector<DtReaderWriter*> myBackupBoundingVolumeOffsets;
80 
83 
84  //use these instead of generic base class myRevertToParentButton, since we want to know what the button is associated with
87 
88 };
DtUiVectorElement * myBoundingVolumeOffset
Definition: uiBoundingVolumeElement.h:79
virtual void createControls(QWidget *parent)
If additional widgets or connections need to be made do it here. The parent is the myWidget member...
virtual void setFromParameters(DtReaderWriter *parentRw)
Calls setFromParameters with std::vector of parameter.
DtUiVectorElement * myBoundingVolume
Definition: uiBoundingVolumeElement.h:78
virtual void processUiEvent(const DtUiElementEvent &)
Process ui event. Default does nothing.
Definition: uiElement.h:231
boost::function< DtUiElement *(makVrv::DtDe &)> CreatorFunction
Definition: uiElement.h:185
virtual void elementChanged()
std::vector< DtReaderWriter * > myBoundingVolumeOffsets
Definition: uiBoundingVolumeElement.h:75
Definition: rwVector.h:23
QLabel * myOriginLabel
Definition: uiBoundingVolumeElement.h:81
QComboBox * myOrigin
Definition: uiBoundingVolumeElement.h:82
QToolButton * myOriginRevertToParentButton
Definition: uiBoundingVolumeElement.h:86
std::vector< DtReaderWriter * > myBackupBoundingVolumes
Definition: uiBoundingVolumeElement.h:76
virtual void setEnabled(bool)
If this item is not enabled it cannot be modified.
QToolButton * myDimensionsRevertToParentButton
Definition: uiBoundingVolumeElement.h:85
std::vector< DtReaderWriter * > myBoundingVolumes
Definition: uiBoundingVolumeElement.h:74
Allows the editing of a vector element. Define the property single_row (bool) and check to have all t...
Definition: uiVectorElement.h:32
The DtUiElement class is the base for which all UI elements are defined. If you wish to create a new ...
Definition: uiElement.h:97
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
std::vector< DtReaderWriter * > myBackupBoundingVolumeOffsets
Definition: uiBoundingVolumeElement.h:77
Definition: uiBoundingVolumeElement.h:38
#define DT_DLL_simulationObjectEditorimpl
This file is used to determine how to build.
Definition: simulationObjectEditorImplDefines.h:33
Base class of the ui element class chain. Properties available through designer for all ui elements a...
Definition: uiElement.h:180

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)