AGX Dynamics  2.38.0.2
MeasurementAxesWidget.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 #pragma once
18 
19 #include <agx/EulerAngles.h>
20 #include <agx/Quat.h>
21 #include <agx/Vec3.h>
22 #include <agxQt/export.h>
23 #include <agxQt/QtOSGUtils.h>
24 
25 #include <agx/PushDisableWarnings.h> // Disabling warnings. Include agx/PopDisableWarnings.h below!
26 #include <QWidget>
27 #include <agxQt/ui_MeasurementAxesWidget.h>
28 #include <agx/PopDisableWarnings.h> // End of disabled warnings.
29 
30 
31 namespace agxQt
32 {
36  class AGXQT_EXPORT MeasurementAxesWidget : public QWidget
37  {
38  Q_OBJECT
39 
40  public:
41  explicit MeasurementAxesWidget(QWidget *parent = 0);
42 
43  virtual ~MeasurementAxesWidget();
44 
45  void connectSignals();
46 
47  void setController( agxQt::MeasurementAxesController* controller );
48 
49  private:
50  void setEnableGUI(bool enable);
51 
52  public:
53  signals:
54  void signalMeasurementAxesUpdated();
55 
56  public slots:
57  void slotUpdateGUI();
58 
59  private slots:
60  void slotCenterEditFinished();
61  void slotRotationEditFinished();
62  void slotSizeEditFinished();
63  void slotLengthEditFinished();
64  void slotTicksLengthEditFinished();
65  void slotTicksTextSizeEditFinished();
66  void slotNumTicksChanged(int);
67  void slotTickTextStrideChanged( int );
68  void slotEnableChecked();
69  void slotShowIndividualAxisChecked();
70  void slotEnableTicksChecked();
71  void slotEnableTicksTextChecked();
72  void slotEnableGridChecked();
73  void slotUpdateGUIFromMeasurementAxes();
74  void slotTickColorComboBoxCurrentIndexChanged( int index );
75  void slotAxesColorComboBoxCurrentIndexChanged( int index );
76  void slotEnableAxesSingleColorChecked();
77 
79  // Variables
81  private:
82  Ui::MeasurementAxesWidget* m_ui;
85  };
86 }
QtOSGUtils.h
AGXQT_EXPORT
#define AGXQT_EXPORT
agxQt
Contains classes/utility functions for connecting AGX to QT with OSG.
Definition: AnalysisBoundWidget.h:30
export.h
agx::observer_ptr< MeasurementAxesController >
Vec3.h
agxQt::MeasurementAxesWidget
MeasurementAxesWidget for controlling the measurement axes in qtViewer.
Definition: MeasurementAxesWidget.h:36
PushDisableWarnings.h
agx::LinearProbingHashTable
Inheritance with partial specialization due to bug with ref_ptr containers.
Definition: LinearProbingHashTable.h:926
Quat.h
agxQt::MeasurementAxesController
Class that is used to manipulate the axes in the scene.
Definition: QtOSGUtils.h:140
EulerAngles.h
PopDisableWarnings.h