65 bool isStatic )
const = 0;
72 void setEnable(
bool enable ) { m_enable = enable; }
172 bool isStatic ) const override;
183 agx::AffineMatrix4x4 m_localTransform;
184 agx::AffineMatrix4x4 m_invLocalTransform;
185 agx::FrameRef m_parentTransform;
234 bool isStatic ) const override;
298 bool isStatic )
const override;
#define AGX_DECLARE_POINTER_TYPES(type)
#define AGXSTREAM_DECLARE_SERIALIZABLE(T)
Use this in a Serializable class to add the required methods Important: Use full namespace in the dec...
#define AGXTERRAIN_EXPORT
#define AGX_DECLARE_VECTOR_TYPES(type)
Axis aligned bounding box implementation.
Utility color class with "common colors".
Class for writing serialized data in binary format to a stream.
This class is an abstract base class for all classes that can be stored and retrieved from an Archive...
Class for specifying a 3D bound where terrain operations like merging and avalanching is forbbiden.
const agx::AffineMatrix4x4 & getLocalTransform() const
void setLocalTransform(const agx::AffineMatrix4x4 &transform)
agxCollide::BoundingAABB getBound() const
agx::Frame * getParentFrame() const
void setBound(const agxCollide::BoundingAABB &bound)
virtual bool containsPosition(const agx::Vec3 &position, agxTerrain::Terrain *terrain) const override
Checks if the specified world position is contained in the ForbiddenBound for a specified terrain.
ForbiddenBound(const agxCollide::BoundingAABB &bound, agx::AffineMatrix4x4 localTransform=agx::AffineMatrix4x4(), agx::Frame *parentTransform=nullptr)
Constructor for a 3D position ForbiddenBound.
virtual bool containsIndex(const agx::Vec3i &terrainIndex, agxTerrain::Terrain *terrain) const override
Checks if the specified terrain index is contained in the ForbiddenBound for a specified terrain.
Class for specifying a 2D terrain index bound where terrain operations like merging and avalanching i...
virtual bool containsIndex(const agx::Vec3i &terrainIndex, agxTerrain::Terrain *terrain) const override
Checks if the specified terrain index is contained in the ForbiddenBound for a specified terrain.
agx::Bound2i getBound() const
ForbiddenIndex2DBound(const agx::Bound2i &bound)
Constructor for a 2D index ForbiddenBound.
virtual bool containsPosition(const agx::Vec3 &position, agxTerrain::Terrain *terrain) const override
Checks if the specified world position is contained in the ForbiddenBound for a specified terrain.
Class for specifying a 3D terrain index bound where terrain operations like merging and avalanching i...
virtual bool containsIndex(const agx::Vec3i &terrainIndex, agxTerrain::Terrain *terrain) const override
Checks if the specified terrain index is contained in the ForbiddenBound for a specified terrain.
ForbiddenIndexBound(const agx::Bound3i &bound)
Constructor for a 3D index ForbiddenBound.
virtual bool containsPosition(const agx::Vec3 &position, agxTerrain::Terrain *terrain) const override
Checks if the specified world position is contained in the ForbiddenBound for a specified terrain.
agx::Bound3i getBound() const
Base abstract class for specifying different types of bounds bound where terrain operations like merg...
void setEnable(bool enable)
Set enable of the forbidden bound.
AGXSTREAM_DECLARE_ABSTRACT_SERIALIZABLE(IForbiddenBound)
virtual bool containsPosition(const agx::Vec3 &position, agxTerrain::Terrain *terrain) const =0
Checks if the specified world position is contained in the ForbiddenBound for a specified terrain.
virtual void debugRender(agxTerrain::Terrain *terrain, agx::Real size, const agxRender::Color &color, bool isStatic) const =0
void restore(agxStream::InputArchive &in) override
Restore.
void store(agxStream::OutputArchive &out) const override
Store.
bool getEnable() const
Get enable of the forbidden bound.
virtual bool containsIndex(const agx::Vec3i &terrainIndex, agxTerrain::Terrain *terrain) const =0
Checks if the specified terrain index is contained in the ForbiddenBound for a specified terrain.
virtual ~IForbiddenBound()=default
bool getEnableDebugRendering() const
void setEnableDebugRendering(bool enable)
Set enable of debug rendering of the forbidden bound.
bool m_enableDebugRendering
A terrain model based a 3D grid model with overlapping height field that can be deformed by interacti...
A BoundT represents a range defined by a minimum and a maximum value.
The object defining a frame of reference and providing transformations operations.
Base class providing referencing counted objects.
#define DOXYGEN_END_INTERNAL_BLOCK()
#define DOXYGEN_START_INTERNAL_BLOCK()
This namespace consists of a set of classes for handling geometric intersection tests including boole...
Namespace containing classes for handling debug rendering of collision geometries,...
The agxTerrain namespace contains a 3D model for a dynamic deformable Terrain and related classes.
The agx namespace contains the dynamics/math part of the AGX Dynamics API.