AGX Dynamics  2.37.2.0
DeformerCollection.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 
21 
22 namespace agxTerrain
23 {
24 
25  class TerrainToolCollection;
26 
28 
30  {
31  public:
32  DeformerCollection(agx::Frame* parentFrame,
33  agx::Line cuttingEdge,
34  agx::Line topEdge,
35  agx::Vec3 forwardVector);
36 
37  void addNotification(agxSDK::Simulation* simulation, Terrain* terrain);
38 
39  void removeNotification(agxSDK::Simulation* simulation, Terrain* terrain);
40 
41  const agx::Line& getCuttingEdge() const;
42  const agx::Line& getTopEdge() const;
43  const agx::Vec3& getForwardVector() const;
44 
45  DeformerActiveZone* getActiveZone();
46 
47  SoilParticleAggregate* getAggregate();
48 
49  void setCuttingEdge(agx::Line cuttingEdge);
50  void setTopEdge(agx::Line topEdge);
51  void setForwardVector(agx::Vec3 forwardVector);
52 
53  void onPreCollide(TerrainToolCollection* collection);
54  void onPre(TerrainToolCollection* collection);
55  void onPost();
56 
57  void onEnableChanged(bool enable);
58 
59  protected:
60  virtual ~DeformerCollection();
61 
62  private:
63 
64  private:
65  agx::Line m_cuttingEdge;
66  agx::Line m_topEdge;
67  agx::Vec3 m_forwardVector;
68 
69  DeformerActiveZoneRef m_activeZone;
70  SoilParticleAggregateRef m_aggregate;
71  };
72 }
A terrain model based a 3D grid model with overlapping height field that can be deformed by interacti...
The agxTerrain namespace contains a 3D model for a dynamic deformable Terrain and related classes...
Definition: Geometry.h:59
Collection of terrain tool (currently Shovel) related objects which are terrain instance specific...
#define AGX_DECLARE_POINTER_TYPES(type)
Definition: Referenced.h:254
Base class providing referencing counted objects.
Definition: Referenced.h:119
#define AGXTERRAIN_EXPORT
The object defining a frame of reference and providing transformations operations.
Definition: Frame.h:67
Simulation is a class that bridges the collision space agxCollide::Space and the dynamic simulation s...
Definition: Simulation.h:126