AGXDynamics
2.35.0.2
DeformerCollection.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
#pragma once
18
19
#include <
agxTerrain/DeformerActiveZone.h
>
20
#include <
agxTerrain/SoilParticleAggregate.h
>
21
22
namespace
agxTerrain
23
{
24
25
class
TerrainToolCollection;
26
27
AGX_DECLARE_POINTER_TYPES
(
DeformerCollection
);
28
29
class
AGXTERRAIN_EXPORT
DeformerCollection
:
public
agx::Referenced
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
}
agxTerrain::Terrain
A terrain model based a 3D grid model with overlapping height field that can be deformed by interacti...
Definition:
agxTerrain/Terrain.h:85
agxTerrain
The agxTerrain namespace contains a 3D model for a dynamic deformable Terrain and related classes.
Definition:
Geometry.h:59
agxTerrain::DeformerCollection
Definition:
DeformerCollection.h:29
agx::ref_ptr< DeformerActiveZone >
agxSDK::Simulation
Simulation is a class that bridges the collision space agxCollide::Space and the dynamic simulation s...
Definition:
Simulation.h:126
DeformerActiveZone.h
agx::LineT
Definition:
Line.h:25
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
AGXTERRAIN_EXPORT
#define AGXTERRAIN_EXPORT
Definition:
agxTerrain/export.h:41
agxTerrain::TerrainToolCollection
Collection of terrain tool (currently Shovel) related objects which are terrain instance specific.
Definition:
TerrainToolCollection.h:35
agxTerrain::DeformerActiveZone
Definition:
DeformerActiveZone.h:31
agxTerrain::SoilParticleAggregate
Definition:
SoilParticleAggregate.h:38
agx::Vec3T< Real >
SoilParticleAggregate.h
agx::Frame
The object defining a frame of reference and providing transformations operations.
Definition:
Frame.h:67
include
agxTerrain
DeformerCollection.h
Generated on Mon Jan 30 2023 15:44:11 for AGXDynamics by
1.8.17