AGX Dynamics 2.42.3.1
Loading...
Searching...
No Matches
TerrainToolInstance.h
Go to the documentation of this file.
1/*
2Copyright 2007-2025. 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
19#include <agx/Component.h>
22
23namespace agx
24{
25 class RigidBody;
26}
27
28namespace agxCollide
29{
30 class Geometry;
31}
32
33namespace agxSDK
34{
35 class Simulation;
36 class TerrainToolInstance;
37 class Assembly;
38
42
49 {
50 public:
55
56
62
67
68 /*
69 Check whether the given shovel is valid.
70 */
71 virtual bool isValid() const = 0;
72
73 public:
75
76 virtual void onAssemblyAdd( agxSDK::Assembly* assembly ) = 0;
77
80
81 protected:
86
91
92
93 protected:
99 virtual void addNotification();
100
106 virtual void removeNotification();
107
113 virtual void preCollide();
114
120 virtual void pre();
121
127 virtual void post();
128
134 virtual void last();
135
136 private:
142 void setSimulation(agxSDK::Simulation* simulation);
143
144 private:
145 friend class Simulation;
146 Simulation* m_simulation;
147 friend class TerrainManager;
148
150 };
151
152}
#define AGX_DECLARE_POINTER_TYPES(type)
Definition: Referenced.h:254
#define AGXSTREAM_DECLARE_ABSTRACT_SERIALIZABLE(T)
Use this in a pure abstract Serializable class to add the required methods Important: Use full namesp...
Definition: Serializable.h:221
#define AGXPHYSICS_EXPORT
#define AGX_DECLARE_VECTOR_TYPES(type)
Definition: agx/Vector.h:34
An assembly is a collection of basic simulation objects, such as rigid bodies, constraints,...
Definition: Assembly.h:70
Simulation is a class that bridges the collision space agxCollide::Space and the dynamic simulation s...
Definition: Simulation.h:131
Derive from this class to implement a listener for simulation step events.
An agxTerrain::TerrainToolInstance in a simulation, receiving step and contact callbacks in a control...
agxSDK::Simulation * getSimulation() const
bool removeEventListener(agxSDK::StepEventListener *listener)
Remove an added StepEventListener from the shovel.
virtual bool isValid() const =0
void addEventListener(agxSDK::StepEventListener *listener)
Add a StepEventListener which follows the shovel - ie added and removed from a simulation at the same...
This class is an abstract base class for all classes that can be stored and retrieved from an Archive...
Definition: Serializable.h:44
A component is an object containing other objects, enabling hierarchical structuring.
Definition: Component.h:39
This class is a combined container which has the find complexity of a HashTable, deterministic iterat...
Definition: SetVector.h:38
#define DOXYGEN_END_INTERNAL_BLOCK()
Definition: macros.h:89
#define DOXYGEN_START_INTERNAL_BLOCK()
Definition: macros.h:88
This namespace consists of a set of classes for handling geometric intersection tests including boole...
The agxSDK namespace contain classes to bridge the collision detection system and the dynamical simul...
Definition: Constraint.h:31
agx::SetVector< agxSDK::TerrainToolInstanceRef > TerrainToolInstanceRefSetVector
The agx namespace contains the dynamics/math part of the AGX Dynamics API.