AGX Dynamics  2.37.2.0
AnalysisBoundWidget.h
Go to the documentation of this file.
1 /*
2 Copyright 2007-2024. Algoryx Simulation AB.
3 
4 All AGX source code, intellectual property, documentation, sample code,
5 tutorials, scene files and technical white papers, are copyrighted, proprietary
6 and confidential material of Algoryx Simulation AB. You may not download, read,
7 store, distribute, publish, copy or otherwise disseminate, use or expose this
8 material unless having a written signed agreement with Algoryx Simulation AB, or having been
9 advised so by Algoryx Simulation AB for a time limited evaluation, or having purchased a
10 valid commercial license from Algoryx Simulation AB.
11 
12 Algoryx Simulation AB disclaims all responsibilities for loss or damage caused
13 from using this software, unless otherwise stated in written agreements with
14 Algoryx Simulation AB.
15 */
16 
17 #ifndef AGXQT_ANALYSISBOUNDWIDGET_H
18 #define AGXQT_ANALYSISBOUNDWIDGET_H
19 
20 #include <agx/AnalysisBox.h>
21 
22 #include <agx/PushDisableWarnings.h> // Disabling warnings. Include agx/PopDisableWarnings.h below!
23 #include <QWidget>
24 #include <agxQt/ui_Controller.h>
25 #include <agxQt/ui_AnalysisBoundWidget.h>
26 #include <agx/PopDisableWarnings.h> // End of disabled warnings.z
27 
28 #include <agxQt/export.h>
29 
30 namespace agxQt
31 {
35  class AGXQT_EXPORT AnalysisBoundWidget : public QWidget
36  {
37  Q_OBJECT
38 
39  public:
40  explicit AnalysisBoundWidget(QWidget *parent = 0);
41 
42  virtual ~AnalysisBoundWidget();
43 
44  void setAnalysisBox(agx::AnalysisBox * box);
45 
46  void connectSignals();
47 
48  private:
49  void setEnableGUI(bool enable);
50 
51  public:
52  signals:
53  void signalAnalysisBoxUpdated();
54 
55  public slots:
56  void slotUpdateGUI();
57 
58  private slots:
59  void slotCenterEditFinished();
60  void slotSizeEditFinished();
61  void slotAnalysisCheckBoxChecked();
62  void slotUpdateGUIFromAnalysisBox();
63 
65  // Variables
67  private:
68  Ui::AnalysisBoundWidget* m_ui;
69  agx::AnalysisBox * m_analysisBox;
70  };
71 }
72 
73 #endif
#define AGXQT_EXPORT
Contains classes/utility functions for connecting AGX to QT with OSG.
AnalysisBoundWidget for controlling the AnalysisBound in qtViewer.
Class that can be used to extract data from elements in a simulation within a specified bound...
Definition: AnalysisBox.h:31