AGXDynamics  2.35.0.3
QtOSGUtils.h
Go to the documentation of this file.
1 /*
2 Copyright 2007-2022. 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_QTOSGUTILS_H
18 #define AGXQT_QTOSGUTILS_H
19 
20 #include <agx/config/AGX_USE_KEYSHOT.h>
21 #include <agxQt/export.h>
22 #include <agx/PushDisableWarnings.h> // Disabling warnings. Include agx/PopDisableWarnings.h below!
23 #include <agxQt/ui_RenderController.h>
24 #include <QWidget>
25 #include <osgViewer/ViewerEventHandlers>
26 #include <osg/Group>
27 #include <osgViewer/Renderer>
28 #include <osgSim/ColorRange>
29 #include <osgSim/ScalarsToColors>
30 #include <agx/PopDisableWarnings.h> // End of disabled warnings.
31 
34 #include <agxQt/ParticleFilters.h>
35 #include <agxQt/CameraViewSet.h>
36 #include <agx/Referenced.h>
41 #include <agxOSG/ClipPlane.h>
44 
45 namespace agxOSG
46 {
47  class SceneDecorator;
48  class Node;
49  class Group;
50 }
51 
52 namespace agxQt
53 {
54  class QtAgxWrapper;
55 
61  {
62  public:
63  const agx::Vec3 BASE_NORMAL = agx::Vec3(0, 1, 0);
64 
65  public:
68 
69  void setPosition( agx::Vec3 position );
70 
71  void setRotation(const agx::Quat& quat );
72 
73  agx::Vec3 getPosition() const;
74 
75  agx::Quat getRotation() const;
76 
77  bool getEnable() const;
78 
79  void setEnable(bool enable);
80 
81  bool getEnableRendering() const;
82 
83  void setEnableRendering(bool enable);
84 
85  agx::Real getIncrement() const;
86 
87  void setIncrement(agx::Real increment);
88 
90  void incrementClipPlane();
91 
93  void decrementClipPlane();
94 
95  protected:
96  void updateClipPlaneFromIncrement( agx::Real increment );
97 
99  virtual ~ClipPlaneController();
100 
102  // Variables
104  protected:
109  };
110 
112 
114  // ParticleTrajectoryRenderer
117  {
119 
120  public:
122  osg::Group* root,
123  agx::ParticleSystem* ps );
124 
125  void setMaxPositionPoints( agx::UInt posPoints );
126 
128 
129  void setEnable( bool enable );
130 
131  bool getEnable() const;
132 
133  void setSampling( agx::Real enable );
134 
135  agx::Real getSampling() const;
136 
137  void reSample();
138 
139  void resetTrajectoires();
140 
141  void setColorMap(agxOSG::ScalarColorMap* colorMap);
142 
144 
145  protected:
146  virtual ~TrajectoryRenderer();
147 
149  // Variables
152  osg::observer_ptr<osg::Group> m_root;
153  osg::ref_ptr<osg::Geode> m_trajectoryGeode;
156  bool m_enable;
157 
158  osg::ref_ptr < agxOSG::ParticleTrajectoriesDrawable > m_particleTrajectoryDrawable;
159  osg::ref_ptr < agxOSG::RigidBodyTrajectoryDrawable > m_RBTrajectorydrawable;
160  };
161 
163 
164 
166  // ParticleContactGraphRenderer
169  {
170  public:
172 
173  void setEnable(bool enable);
174 
175  bool getEnable() const;
176 
178 
179  void setMinNetworkForce(agx::Real minForce);
180 
182 
183  void setMaxNetworkForce(agx::Real minForce);
184 
185  protected:
187 
189  // Variables
191  osg::observer_ptr<osg::Group> m_root;
194  };
195 
197 
199 
201 
203 
205 
207 
212  {
213  public:
215  agxQt::QtAgxWrapper* qtagxViewer,
216  osg::Group* root,
218  agx::ParticleSystem* system);
219 
221 
223 
224  void setAlphaValue(agx::Real alpha);
225 
226  agx::Real getAlphaValue() const;
227 
228  virtual void pre(const agx::TimeStamp& t);
229 
230  virtual void post(const agx::TimeStamp& t);
231 
232  void setParticleColorModeFromName(const agx::String& mode);
233 
235 
237 
239 
240  void setMaxColorScalar(agx::Real maxVel);
241 
242  void setMinColorScalar(agx::Real minVel);
243 
245 
247 
248  void setAnalysisBox(const agx::AnalysisBox* box);
249 
250  void setLimitColoringToAnalysisBound(bool enable);
251 
252  bool getLimitColoringToAnalysisBound() const;
253 
254  void setShowColorLegend(bool enable, int width, int height);
255 
256  void setShowColorLegend(bool enable);
257 
258  void updateColorLegend(int width, int height);
259 
260  void refreshColorLegend();
261 
262  bool getShowColorLegend() const;
263 
264  void setEnableParticleRendering(bool enable);
265 
266  bool getEnableParticleRendering() const;
267 
268  void preRenderParticles( agx::ParticleSystem * system );
269 
270  void preRenderBodies();
271 
273 
275 
276  void addCustomColorers();
277 
278  bool hasOpenColorLegend() const;
279 
281 
282  void setEnableRenderOnNSSBodies(const agx::RigidBodyRefVector& bodies, bool enable);
283 
284  void setEnableRenderingOnTemplateBodies(const agx::RigidBodyRefVector& bodies, bool enable);
285 
287 
288  protected:
289 
291 
292  void preRender();
293 
294  void resetAlphaOnColors();
295 
296  void setAlphaOnParticles(agx::Real alpha);
297 
298  void removeColorLegend();
299 
301  // Variables
303  protected:
305  osg::ref_ptr<agxOSG::ParticleSystemDrawable> m_psDrawable;
308 
309  // color renderer
310  osg::ref_ptr<osg::Group> m_hudGroup;
311  osg::observer_ptr<osg::Group> m_root;
312 
316 
317  // Impacts drawable
318  osg::ref_ptr<agxQt::GranularImpactsDrawable> m_impactsDrawable;
320  };
321 
323 
324  /* Implementation */
325 
327 
329 
331 
333 
335 
337  {
339  return m_particleColorerManager->getMinScalar();
340  else
341  return 0;
342  }
343 
345  {
347  return m_particleColorerManager->getMaxScalar();
348  else
349  return 0;
350  }
351 
353 
355 
357 
358  osg::Geode * createCube(const agx::Vec3& position, const agx::Vec3& boxhalfVec3);
359  osg::Geode * createCubeLines(const agx::Vec3& position, const agx::Vec3& boxhalfVec3);
360  osg::Geode * createPlaneLines(const agx::Vec3& position, const agx::Vec3& normal, agx::Real size);
361 
362 #if AGX_USE_KEYSHOT()
363 
366  class KeyShotParticleDumper
367  {
368  KeyShotParticleDumper();
369  public:
370 
371  static void dumpParticlesInSimulationToKeyShotFile(agxSDK::Simulation * simulation, agx::String filename);
372 
373  static void exportCurrentJournalFrameToBip(int frame,
374  const agx::String& journalFilename,
375  const agx::String& sessionName,
376  const agx::String& bipFile,
377  agxQt::CameraDescription* camera,
379 
380  protected:
382  // Variables
384  };
385 #endif
386 }
387 
388 #endif
agxQt::ClipPlaneController::decrementClipPlane
void decrementClipPlane()
Decrements the Near plane of the scene in the coupled agxViewer.
agxOSG::ParticleContactGraphDrawable::setEnable
void setEnable(bool enable)
Definition: ParticleContactGraphDrawable.h:107
agxQt::ParticleContactGraphRenderer::setMinNetworkForce
void setMinNetworkForce(agx::Real minForce)
Definition: QtOSGUtils.h:202
agxQt::GranularImpactsDrawable
Definition: GranularImpactsDrawable.h:36
agxQt::TrajectoryRenderer::setSampling
void setSampling(agx::Real enable)
agxQt::ParticleSystemRenderUtility::setLimitColoringToAnalysisBound
void setLimitColoringToAnalysisBound(bool enable)
Definition: QtOSGUtils.h:332
agxQt::ParticleContactGraphRenderer
Definition: QtOSGUtils.h:168
Referenced.h
agxQt::ParticleSystemRenderUtility::m_qtAgxWrapper
agxQt::QtAgxWrapper * m_qtAgxWrapper
Definition: QtOSGUtils.h:304
agxQt::TrajectoryRenderer::m_particleSystem
agx::ParticleSystem * m_particleSystem
Definition: QtOSGUtils.h:151
GranularImpactsDrawable.h
agxQt::TrajectoryRenderer::setColorMap
void setColorMap(agxOSG::ScalarColorMap *colorMap)
agx::Real
double Real
Definition: Real.h:42
ParticleTrajectoriesDrawable.h
agxQt::ParticleSystemRenderUtility::getParticleShaderMode
agxOSG::ParticleSystemDrawable::ParticleShaderMode getParticleShaderMode() const
agxQt::TrajectoryRenderer::reSample
void reSample()
agxQt::ParticleSystemRenderUtility::setParticleColorModeFromName
void setParticleColorModeFromName(const agx::String &mode)
agxQt
Contains classes/utility functions for connecting AGX to QT with OSG.
Definition: AnalysisBoundWidget.h:33
agxQt::QtAgxWrapper
Class that wraps SimulationController with an interface that enables QT Gui signals to control the si...
Definition: QtAgxWrapper.h:72
agxSDK::StepEventListener
Derive from this class to implement a listener for simulation step events.
Definition: StepEventListener.h:37
agxQt::ParticleSystemRenderUtility::m_impactsDrawable
osg::ref_ptr< agxQt::GranularImpactsDrawable > m_impactsDrawable
Definition: QtOSGUtils.h:318
agxQt::ParticleSystemRenderUtility::getGranularImpactsDrawable
GranularImpactsDrawable * getGranularImpactsDrawable()
Definition: QtOSGUtils.h:356
agxQt::TrajectoryRenderer::m_RBTrajectorydrawable
osg::ref_ptr< agxOSG::RigidBodyTrajectoryDrawable > m_RBTrajectorydrawable
Definition: QtOSGUtils.h:159
agxQt::ParticleSystemRenderUtility::getAvailableColorModes
ParticleColorModeVector getAvailableColorModes() const
Definition: QtOSGUtils.h:330
agxQt::ClipPlaneController::ClipPlaneController
ClipPlaneController(agxOSG::ClipPlane *clipPlane)
Constructor.
agx::Vector
Templated vector class.
Definition: Vector.h:52
agxQt::TrajectoryRenderer::getEnable
bool getEnable() const
agxQt::ParticleSystemRenderUtility::ParticleSystemRenderUtility
ParticleSystemRenderUtility(agxQt::QtAgxWrapper *qtagxViewer, osg::Group *root, agxOSG::ParticleSystemDrawable *psdraw, agx::ParticleSystem *system)
agxQt::ParticleSystemRenderUtility::setShowColorLegend
void setShowColorLegend(bool enable, int width, int height)
agxQt::ClipPlaneController::updateClipPlaneFromIncrement
void updateClipPlaneFromIncrement(agx::Real increment)
agxQt::ParticleContactGraphRenderer::getMinNetworkForce
agx::Real getMinNetworkForce() const
Definition: QtOSGUtils.h:204
agxQt::ParticleSystemRenderUtility::getShowColorLegend
bool getShowColorLegend() const
agxQt::ClipPlaneController::getIncrement
agx::Real getIncrement() const
agxOSG::ScalarColorMap
Class that represents a linear scalar color map that converts a scalar interval to a specified color ...
Definition: ScalarColorMap.h:37
agxQt::ParticleSystemRenderUtility::setAlphaOnParticles
void setAlphaOnParticles(agx::Real alpha)
agxQt::ParticleSystemRenderUtility::getActiveParticleColorMode
ParticleColorMode getActiveParticleColorMode() const
Definition: QtOSGUtils.h:328
agxQt::ParticleSystemRenderUtility::setAnalysisBox
void setAnalysisBox(const agx::AnalysisBox *box)
agxQt::ParticleSystemRenderUtility::m_particleColorerManager
ParticleColorerManagerRef m_particleColorerManager
Definition: QtOSGUtils.h:314
agxOSG::ParticleSystemDrawable::ParticleShaderMode
ParticleShaderMode
Definition: ParticleSystemDrawable.h:56
ParticleContactGraphDrawable.h
agxQt::ParticleSystemRenderUtility::m_enableParticleRendering
bool m_enableParticleRendering
Definition: QtOSGUtils.h:319
agxQt::ParticleSystemRenderUtility::getParticleContactGraphRenderer
ParticleContactGraphRendererRef getParticleContactGraphRenderer()
Definition: QtOSGUtils.h:354
agxQt::ParticleColorMode
Definition: ParticlePostProcessColorer.h:46
ClipPlane.h
agxQt::ParticleSystemRenderUtility::refreshColorLegend
void refreshColorLegend()
agxQt::ParticleSystemRenderUtility::getMaxColorScalar
agx::Real getMaxColorScalar() const
Definition: QtOSGUtils.h:344
agxQt::TrajectoryRenderer::m_particleTrajectoryDrawable
osg::ref_ptr< agxOSG::ParticleTrajectoriesDrawable > m_particleTrajectoryDrawable
Definition: QtOSGUtils.h:158
agxQt::ParticleSystemRenderUtility::~ParticleSystemRenderUtility
virtual ~ParticleSystemRenderUtility()
ParticleFilters.h
agxQt::ClipPlaneController::setRotation
void setRotation(const agx::Quat &quat)
agxQt::ParticleSystemRenderUtility::getParticleRenderFilterManager
ParticleRenderFilterManager * getParticleRenderFilterManager()
agxQt::ParticleSystemRenderUtility::getLimitColoringToAnalysisBound
bool getLimitColoringToAnalysisBound() const
Definition: QtOSGUtils.h:334
agxQt::ParticleSystemRenderUtility::m_particleContactGraphRenderer
ParticleContactGraphRendererRef m_particleContactGraphRenderer
Definition: QtOSGUtils.h:313
agxQt::ParticleSystemRenderUtility::m_root
osg::observer_ptr< osg::Group > m_root
Definition: QtOSGUtils.h:311
agx::AnalysisBox
Class that can be used to extract data from elements in a simulation within a specified bound.
Definition: AnalysisBox.h:31
agxQt::ClipPlaneController::incrementClipPlane
void incrementClipPlane()
Increments the Near plane of the scene in the coupled agxViewer.
agxQt::ParticleSystemRenderUtility::setMaxColorScalar
void setMaxColorScalar(agx::Real maxVel)
StepEventListener.h
agxQt::ClipPlaneController
Class that is used to manipulate the clip plane in the scene.
Definition: QtOSGUtils.h:60
agxOSG::ParticleContactGraphDrawable::setMaxForce
void setMaxForce(agx::Real maxForce)
Definition: ParticleContactGraphDrawable.h:111
export.h
agxQt::ParticleSystemRenderUtility::setMinColorScalar
void setMinColorScalar(agx::Real minVel)
ParticlePostProcessColorer.h
agxQt::createPlaneLines
osg::Geode * createPlaneLines(const agx::Vec3 &position, const agx::Vec3 &normal, agx::Real size)
agxQt::ClipPlaneController::m_clipPlane
agxOSG::ClipPlane * m_clipPlane
Definition: QtOSGUtils.h:105
agxQt::TrajectoryRenderer::m_sampling
agx::Real m_sampling
Definition: QtOSGUtils.h:155
agxQt::ClipPlaneController::setEnableRendering
void setEnableRendering(bool enable)
agxQt::createCubeLines
osg::Geode * createCubeLines(const agx::Vec3 &position, const agx::Vec3 &boxhalfVec3)
agxQt::ParticleSystemRenderUtility
This utility class is used for post processing of the particle system drawable representation,...
Definition: QtOSGUtils.h:211
agxQt::ParticleSystemRenderUtility::setParticleShaderMode
void setParticleShaderMode(agxOSG::ParticleSystemDrawable::ParticleShaderMode mode)
agxQt::ClipPlaneController::getEnableRendering
bool getEnableRendering() const
agxOSG::ParticleContactGraphDrawable::getEnable
bool getEnable() const
Definition: ParticleContactGraphDrawable.h:105
agxQt::ParticleSystemRenderUtility::post
virtual void post(const agx::TimeStamp &t)
Called after a step is taken in the simulation Implement this method in the derived class to get call...
agxQt::ParticleContactGraphRenderer::~ParticleContactGraphRenderer
virtual ~ParticleContactGraphRenderer()
agxQt::ParticleContactGraphRenderer::setEnable
void setEnable(bool enable)
Definition: QtOSGUtils.h:196
agxQt::ParticleContactGraphRenderer::getMaxNetworkForce
agx::Real getMaxNetworkForce() const
Definition: QtOSGUtils.h:206
agxQt::ParticleContactGraphRenderer::setMaxNetworkForce
void setMaxNetworkForce(agx::Real minForce)
Definition: QtOSGUtils.h:200
agxQt::ParticleContactGraphRenderer::getEnable
bool getEnable() const
Definition: QtOSGUtils.h:198
agxQt::TrajectoryRenderer::TrajectoryRenderer
TrajectoryRenderer(agxSDK::Simulation *simulation, osg::Group *root, agx::ParticleSystem *ps)
agx::ParticleSystem
A basic particle system that contains all the storages and buffers required for basic operation and a...
Definition: ParticleSystem.h:67
agx::ref_ptr< ParticleContactGraphRenderer >
agxQt::ParticleSystemRenderUtility::resetParticleFilteredState
void resetParticleFilteredState()
agxQt::TrajectoryRenderer::setMaxPositionPoints
void setMaxPositionPoints(agx::UInt posPoints)
agxSDK::Simulation
Simulation is a class that bridges the collision space agxCollide::Space and the dynamic simulation s...
Definition: Simulation.h:126
agxQt::ClipPlaneController::~ClipPlaneController
virtual ~ClipPlaneController()
Destructor.
agxQt::ClipPlaneController::m_increment
agx::Real m_increment
Definition: QtOSGUtils.h:107
agxQt::ClipPlaneController::BASE_NORMAL
const agx::Vec3 BASE_NORMAL
Definition: QtOSGUtils.h:63
agxOSG::ParticleContactGraphDrawable::setMinForce
void setMinForce(agx::Real minForce)
Definition: ParticleContactGraphDrawable.h:109
agx::Vec3
Vec3T< Real > Vec3
The object holding 3 dimensional vectors and providing basic arithmetic.
Definition: Vec3.h:36
agxOSG
The agxOSG namespace provides functionality for visualizing AGX simulations with OpenSceneGraph.
PushDisableWarnings.h
agxQt::TrajectoryRenderer::setEnable
void setEnable(bool enable)
agxOSG::ParticleContactGraphDrawable::getMinForce
agx::Real getMinForce() const
Definition: ParticleContactGraphDrawable.h:113
agxQt::ParticleSystemRenderUtility::setAlphaValue
void setAlphaValue(agx::Real alpha)
agxQt::ParticleSystemRenderUtility::setEnableParticleRendering
void setEnableParticleRendering(bool enable)
agxOSG::ParticleSystemDrawable
Definition: ParticleSystemDrawable.h:44
agxQt::TrajectoryRenderer::m_root
osg::observer_ptr< osg::Group > m_root
Definition: QtOSGUtils.h:152
agxQt::ClipPlaneController::setPosition
void setPosition(agx::Vec3 position)
agxQt::ClipPlaneController::getRotation
agx::Quat getRotation() const
agxQt::ParticleSystemRenderUtility::getParticleSystemDrawable
agxOSG::ParticleSystemDrawable * getParticleSystemDrawable()
agxQt::TrajectoryRenderer::~TrajectoryRenderer
virtual ~TrajectoryRenderer()
agxQt::ParticleSystemRenderUtility::m_system
agx::ParticleSystem * m_system
Definition: QtOSGUtils.h:306
agxOSG::ParticleContactGraphDrawable
Definition: ParticleContactGraphDrawable.h:35
agxQt::TrajectoryRenderer::m_numTrajectoryPositions
agx::UInt m_numTrajectoryPositions
Definition: QtOSGUtils.h:154
agxQt::TrajectoryRenderer
Definition: QtOSGUtils.h:116
agxQt::ClipPlaneController::setEnable
void setEnable(bool enable)
agxQt::ParticleSystemRenderUtility::hasOpenColorLegend
bool hasOpenColorLegend() const
agxOSG::ClipPlane
This class wraps the ClipPlane functionality of osg together with a clip node and a clip plane.
Definition: ClipPlane.h:43
agx::QuatT< Real >
agxQt::ClipPlaneController::getPosition
agx::Vec3 getPosition() const
agx::root
AGXCORE_EXPORT Component * root()
agxOSG::ParticleContactGraphDrawable::getMaxForce
agx::Real getMaxForce() const
Definition: ParticleContactGraphDrawable.h:115
agxQt::ParticleSystemRenderUtility::preRender
void preRender()
agxQt::ParticleSystemRenderUtility::m_alpha
agx::Real m_alpha
Definition: QtOSGUtils.h:307
agxQt::ParticleSystemRenderUtility::updateColorLegend
void updateColorLegend(int width, int height)
agxQt::ParticleContactGraphRenderer::ParticleContactGraphRenderer
ParticleContactGraphRenderer(osg::Group *root, agx::ParticleSystem *ps)
agxQt::ParticleContactGraphRenderer::m_root
osg::observer_ptr< osg::Group > m_root
Definition: QtOSGUtils.h:191
agxQt::ParticleSystemRenderUtility::preRenderBodies
void preRenderBodies()
agxQt::TrajectoryRenderer::m_enable
bool m_enable
Definition: QtOSGUtils.h:156
agxQt::ClipPlaneController::m_rotation
agx::Quat m_rotation
Definition: QtOSGUtils.h:106
agx::Referenced
Base class providing referencing counted objects.
Definition: Referenced.h:113
AGX_DECLARE_POINTER_TYPES
#define AGX_DECLARE_POINTER_TYPES(type)
Definition: Referenced.h:248
agx::UInt
uint32_t UInt
Definition: Integer.h:34
agxQt::ParticleSystemRenderUtility::removeColorLegend
void removeColorLegend()
agxQt::ParticleContactGraphRenderer::m_graphDrawable
agxOSG::ParticleContactGraphDrawable * m_graphDrawable
Definition: QtOSGUtils.h:193
RigidBodyTrajectoryDrawable.h
agx::TimeStamp
agx::Real TimeStamp
Definition: TimeStamp.h:26
agxQt::TrajectoryRenderer::getSampling
agx::Real getSampling() const
agxQt::ParticleSystemRenderUtility::getMinColorScalar
agx::Real getMinColorScalar() const
Definition: QtOSGUtils.h:336
agxQt::ParticleSystemRenderUtility::setEnableRenderOnNSSBodies
void setEnableRenderOnNSSBodies(const agx::RigidBodyRefVector &bodies, bool enable)
agxQt::ClipPlaneController::m_enableRendering
bool m_enableRendering
Definition: QtOSGUtils.h:108
agxQt::TrajectoryRenderer::getMaxPositionPoints
agx::UInt getMaxPositionPoints()
agx::AgXString< std::string >
agxQt::TrajectoryRenderer::m_trajectoryGeode
osg::ref_ptr< osg::Geode > m_trajectoryGeode
Definition: QtOSGUtils.h:153
agxQt::ParticleSystemRenderUtility::getAlphaValue
agx::Real getAlphaValue() const
Definition: QtOSGUtils.h:326
agxQt::ParticleSystemRenderUtility::getEnableParticleRendering
bool getEnableParticleRendering() const
Definition: QtOSGUtils.h:352
agxQt::TrajectoryRenderer::getColorMap
agxOSG::ScalarColorMap * getColorMap()
agxQt::ParticleRenderFilterManager
Definition: ParticleFilters.h:53
agx::Vec3T< Real >
CameraViewSet.h
agxQt::ParticleSystemRenderUtility::m_hudGroup
osg::ref_ptr< osg::Group > m_hudGroup
Definition: QtOSGUtils.h:310
agxQt::ParticleSystemRenderUtility::addCustomColorers
void addCustomColorers()
agxQt::createCube
osg::Geode * createCube(const agx::Vec3 &position, const agx::Vec3 &boxhalfVec3)
agxQt::ParticleSystemRenderUtility::preRenderParticles
void preRenderParticles(agx::ParticleSystem *system)
ParticleSystemDrawable.h
agxQt::ParticleSystemRenderUtility::resetAlphaOnColors
void resetAlphaOnColors()
agxQt::CameraDescription
Class that describes an abstract camera and it's properties.
Definition: CameraViewSet.h:131
agxQt::ParticleSystemRenderUtility::m_particleRenderFilterManager
ParticleRenderFilterManagerRef m_particleRenderFilterManager
Definition: QtOSGUtils.h:315
GranularBodySystem.h
agxQt::ParticleSystemRenderUtility::setEnableRenderingOnTemplateBodies
void setEnableRenderingOnTemplateBodies(const agx::RigidBodyRefVector &bodies, bool enable)
agxQt::ParticleContactGraphRenderer::m_particleSystem
agx::ParticleSystem * m_particleSystem
Definition: QtOSGUtils.h:192
agxQt::ParticleSystemRenderUtility::m_psDrawable
osg::ref_ptr< agxOSG::ParticleSystemDrawable > m_psDrawable
Definition: QtOSGUtils.h:305
AGX_FORCE_INLINE
#define AGX_FORCE_INLINE
Definition: macros.h:58
agxQt::TrajectoryRenderer::resetTrajectoires
void resetTrajectoires()
PopDisableWarnings.h
agxQt::ClipPlaneController::getEnable
bool getEnable() const
agxQt::ParticleSystemRenderUtility::pre
virtual void pre(const agx::TimeStamp &t)
Called before a step is taken in the simulation Implement this method in the derived class to get cal...
agxQt::ClipPlaneController::setIncrement
void setIncrement(agx::Real increment)