AGX Dynamics 2.38.0.2
Loading...
Searching...
No Matches
MeasurementAxesWidget.h
Go to the documentation of this file.
1/*
2Copyright 2007-2024. Algoryx Simulation AB.
3
4All AGX source code, intellectual property, documentation, sample code,
5tutorials, scene files and technical white papers, are copyrighted, proprietary
6and confidential material of Algoryx Simulation AB. You may not download, read,
7store, distribute, publish, copy or otherwise disseminate, use or expose this
8material unless having a written signed agreement with Algoryx Simulation AB, or having been
9advised so by Algoryx Simulation AB for a time limited evaluation, or having purchased a
10valid commercial license from Algoryx Simulation AB.
11
12Algoryx Simulation AB disclaims all responsibilities for loss or damage caused
13from using this software, unless otherwise stated in written agreements with
14Algoryx 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
31namespace agxQt
32{
36 class AGXQT_EXPORT MeasurementAxesWidget : public QWidget
37 {
38 Q_OBJECT
39
40 public:
41 explicit MeasurementAxesWidget(QWidget *parent = 0);
42
44
46
48
49 private:
50 void setEnableGUI(bool enable);
51
52 public:
53 signals:
55
56 public slots:
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;
84 agx::HashTable < agx::Name, agxRender::Color > m_colorMap;
85 };
86}
#define AGXQT_EXPORT
Class that is used to manipulate the axes in the scene.
Definition QtOSGUtils.h:141
MeasurementAxesWidget for controlling the measurement axes in qtViewer.
MeasurementAxesWidget(QWidget *parent=0)
void setController(agxQt::MeasurementAxesController *controller)
Contains classes/utility functions for connecting AGX to QT with OSG.