AGX Dynamics 2.38.0.2
Loading...
Searching...
No Matches
TerrainInstance.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
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
36
37
44 {
45 public:
51
56
59
60 public:
62
65
66 protected:
71
75 virtual ~TerrainInstance();
76
77
78 protected:
84 virtual void addNotification();
85
91 virtual void removeNotification();
92
98 virtual void preCollide();
99
105 virtual void pre();
106
112 virtual void post();
113
119 virtual void last();
120
126 virtual void runBuildIslandsTask();
127
128 private:
134 void setSimulation( agxSDK::Simulation* simulation );
135
136 private:
137 friend class Simulation;
138 Simulation* m_simulation;
139
141 };
142
143}
#define AGXSTREAM_DECLARE_ABSTRACT_SERIALIZABLE(T)
Use this in a pure abstract Serializable class to add the required methods Important: Use full namesp...
#define AGXPHYSICS_EXPORT
The geometry representation used by the collision detection engine.
Definition Geometry.h:92
Simulation is a class that bridges the collision space agxCollide::Space and the dynamic simulation s...
Definition Simulation.h:126
Derive from this class to implement a listener for simulation step events.
agxTerrain::Terrain instance in a simulation, receiving step and contact callbacks in a controllable ...
void addEventListener(agxSDK::StepEventListener *listener)
bool removeEventListener(agxSDK::StepEventListener *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...
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
Smart pointer for handling referenced counted objects.
Definition ref_ptr.h:30
#define DOXYGEN_END_INTERNAL_BLOCK()
Definition macros.h:97
#define DOXYGEN_START_INTERNAL_BLOCK()
Definition macros.h:96
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
agx::ref_ptr< TerrainInstance > TerrainInstanceRef