AGX Dynamics 2.38.0.2
Loading...
Searching...
No Matches
DeformerCollection.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
21
22namespace agxTerrain
23{
24
25 class TerrainToolCollection;
26
28
30 {
31 public:
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;
44
46
48
49 void setCuttingEdge(agx::Line cuttingEdge);
50 void setTopEdge(agx::Line topEdge);
51 void setForwardVector(agx::Vec3 forwardVector);
52
54 void onPre(TerrainToolCollection* collection);
55 void onPost();
56
57 void onEnableChanged(bool enable);
58
59 protected:
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}
#define AGX_DECLARE_POINTER_TYPES(type)
Definition Referenced.h:254
#define AGXTERRAIN_EXPORT
Simulation is a class that bridges the collision space agxCollide::Space and the dynamic simulation s...
Definition Simulation.h:126
void removeNotification(agxSDK::Simulation *simulation, Terrain *terrain)
void setForwardVector(agx::Vec3 forwardVector)
void addNotification(agxSDK::Simulation *simulation, Terrain *terrain)
const agx::Vec3 & getForwardVector() const
void setTopEdge(agx::Line topEdge)
void onEnableChanged(bool enable)
void onPreCollide(TerrainToolCollection *collection)
void onPre(TerrainToolCollection *collection)
DeformerActiveZone * getActiveZone()
const agx::Line & getCuttingEdge() const
void setCuttingEdge(agx::Line cuttingEdge)
SoilParticleAggregate * getAggregate()
DeformerCollection(agx::Frame *parentFrame, agx::Line cuttingEdge, agx::Line topEdge, agx::Vec3 forwardVector)
const agx::Line & getTopEdge() const
Collection of terrain tool (currently Shovel) related objects which are terrain instance specific.
A terrain model based a 3D grid model with overlapping height field that can be deformed by interacti...
Definition Terrain.h:86
The object defining a frame of reference and providing transformations operations.
Definition agx/Frame.h:68
Base class providing referencing counted objects.
Definition Referenced.h:120
The agxTerrain namespace contains a 3D model for a dynamic deformable Terrain and related classes.
Definition Geometry.h:59