AGX Dynamics 2.38.0.2
Loading...
Searching...
No Matches
ParticleRenderWidget.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#ifndef AGXQT_QTPARTICLERENDERWIDGET_H
18#define AGXQT_QTPARTICLERENDERWIDGET_H
19
20#include <agxQt/export.h>
21#include <agxQt/QtOSGUtils.h>
22#include <agx/Referenced.h>
23#include <agx/Bound.h>
25
26#include <agx/PushDisableWarnings.h> // Disabling warnings. Include agx/PopDisableWarnings.h below!
27#include <QWidget>
28#include <QProcess>
29#include <agxQt/ui_ParticleRenderSettingsWidget.h>
30#include <osgViewer/ViewerEventHandlers>
31#include <osgViewer/Renderer>
32#include <agx/PopDisableWarnings.h> // End of disabled warnings.
33
34#define DEFAULT_VIDEO_FPS 30
35#define DEFAULT_CAPTURE_FPS 30
36
37#define QUALITY_INTERVAL 20
38#define DEFAULT_QUALITY_TICK 17
39
40namespace agxQt
41{
42 class QtAgxWrapper;
43
44 class AGXQT_EXPORT ParticleRenderWidget : public QWidget
45 {
46 Q_OBJECT
47
48 public:
49 explicit ParticleRenderWidget(QWidget *parent = 0);
51
54
56
58
59 agx::String getSelectedParticleFilterModeName() const { return m_activeParticleFilterMode.m_id; }
60
61 protected:
63
65
66 signals:
69
70 protected:
76
77 protected slots:
80 void slotAlphaSliderChanged( int val );
83 void slotAutoPlaceLegendCheckBox( bool enable );
85
89
95
103
105 // Variables
107 private:
108 ParticleRenderFilterModeVector m_particleParticleFilterModes;
109 ParticleFilterMode m_activeParticleFilterMode;
110 Ui::ParticleRenderWidget* m_ui;
113 agx::Vector<QCheckBox*> m_checkBoxes;
114 ParticleColorMode m_activeColorMode;
115 ParticleColorModeVector m_colorModes;
116 };
117}
118
119#endif // QT_VIDEOSETTINGS_WIDGET
#define AGXQT_EXPORT
void synchComboBox(const ParticleColorModeVector &modes)
void slotAlphaSliderChanged(int val)
void setActiveParticleFilterFromName(const agx::String &name)
void slotLegendSliderChanged(int val)
void slotLimitToAnalysisBoxCheckBox(bool enable)
void slotImpactParticleParticleCheckBox(bool enable)
void synchComboBox(const ParticleRenderFilterModeVector &modes)
void slotParticleContactNetworkCheckBox(bool enable)
ParticleRenderWidget(QWidget *parent=0)
void slotAutoPlaceLegendCheckBox(bool enable)
void slotParticleTrajectoriesCheckBox(bool enable)
void slotParticleRenderingCheckBox(bool enable)
void slotLegendOrientationChanged(int index)
void slotImpactGeometryParticleCheckBox(bool enable)
agx::String getSelectedParticleFilterModeName() const
void setActiveColorModeFromName(const agx::String &mode)
void slotParticleFilterModeChanged(int)
void slotFilterThresholdScalarEditFinished()
void setInitialData(agxQt::QtAgxWrapper *wrapper)
Set initial data to the inputs in the widget.
void slotShowColorLegendCheckBox(bool enable)
Class that wraps SimulationController with an interface that enables QT Gui signals to control the si...
Smart pointer for observed objects, that automatically set pointers to them to null when they deleted...
Contains classes/utility functions for connecting AGX to QT with OSG.