AGX Dynamics  2.37.3.2
TerrainInstance.h
Go to the documentation of this file.
1 /*
2 Copyright 2007-2024. 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 <agx/Component.h>
20 
21 #include <agxStream/Serializable.h>
22 
23 namespace agxCollide
24 {
25  class Geometry;
26 }
27 
28 namespace agxSDK
29 {
30  class Simulation;
31 
38  {
39  public:
44  virtual agxCollide::Geometry* getGeometry() const;
45 
49  agxSDK::Simulation* getSimulation() const;
50 
51  public:
53 
56 
57  protected:
62 
66  virtual ~TerrainInstance();
67 
68  protected:
74  virtual void addNotification();
75 
81  virtual void removeNotification();
82 
88  virtual void preCollide();
89 
95  virtual void pre();
96 
102  virtual void post();
103 
109  virtual void last();
110 
116  virtual void runBuildIslandsTask();
117 
118  private:
124  void setSimulation( agxSDK::Simulation* simulation );
125 
126  private:
127  friend class Simulation;
128  Simulation* m_simulation;
129  };
130 }
agxTerrain::Terrain instance in a simulation, receiving step and contact callbacks in a controllable ...
A component is an object containing other objects, enabling hierarchical structuring.
Definition: Component.h:38
This namespace consists of a set of classes for handling geometric intersection tests including boole...
#define AGXPHYSICS_EXPORT
The geometry representation used by the collision detection engine.
Definition: Geometry.h:92
This class is an abstract base class for all classes that can be stored and retrieved from an Archive...
Definition: Serializable.h:44
Simulation is a class that bridges the collision space agxCollide::Space and the dynamic simulation s...
Definition: Simulation.h:126
#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
The agxSDK namespace contain classes to bridge the collision detection system and the dynamical simul...
Definition: Constraint.h:30
#define DOXYGEN_END_INTERNAL_BLOCK()
Definition: Object.h:98
#define DOXYGEN_START_INTERNAL_BLOCK()
Definition: Object.h:97