AGX Dynamics 2.42.2.1
Loading...
Searching...
No Matches
TerrainInstance.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>
21
23
24namespace agxCollide
25{
26 class Geometry;
27}
28
29namespace agxSDK
30{
31 class Simulation;
32 class TerrainInstance;
33
37
44 {
45 public:
51
56
65
74
75 public:
77
80
81 protected:
86
90 virtual ~TerrainInstance();
91
92
93 protected:
99 virtual void addNotification();
100
106 virtual void removeNotification();
107
108
114 virtual void preEveryStep();
115
116
122 virtual void preCollide();
123
129 virtual void pre();
130
136 virtual void post();
137
143 virtual void last();
144
150 virtual void runBuildIslandsTask();
151
160 virtual void syncIfPager();
161
162
163 private:
169 void setSimulation( agxSDK::Simulation* simulation );
170
171 private:
172 friend class Simulation;
173 Simulation* m_simulation;
174 friend class TerrainManager;
175
176 agxSDK::EventListenerRefVector m_listeners;
177 };
178
179}
#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
The geometry representation used by the collision detection engine.
Definition: Geometry.h:92
An EventListener can be associated to a Simulation and triggered upon various events.
Definition: EventListener.h:40
Simulation is a class that bridges the collision space agxCollide::Space and the dynamic simulation s...
Definition: Simulation.h:131
agxTerrain::Terrain instance in a simulation, receiving step and contact callbacks in a controllable ...
bool removeEventListener(agxSDK::EventListener *listener)
void addEventListener(agxSDK::EventListener *listener)
virtual agxCollide::Geometry * getGeometry() const
agxSDK::Simulation * getSimulation() const
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::TerrainInstanceRef > TerrainInstanceRefSetVector