34 typedef std::pair< Real, Real >
RealPair;
107 size_t getTileMarginSize()
const;
113 size_t getTileResolution()
const;
167 void store(
agxStream::OutputArchive& out) const;
168 void restore(
agxStream::InputArchive& in);
172 agx::Vec3 m_referencePoint;
173 agx::Quat m_referenceRotation;
175 agx::Real m_tileSize;
176 size_t m_tileMarginSize;
177 size_t m_tileResolution;
179 agx::Real m_maximumDepth;
181 agx::AffineMatrix4x4 m_gridToWorld;
182 agx::AffineMatrix4x4 m_worldToGrid;
190 return m_referencePoint;
195 return m_referenceRotation;
205 return m_tileMarginSize;
210 return m_tileResolution;
215 return m_maximumDepth;
220 return convertTilePositionToWorld(
id,
agx::Vec3( tilePos, 0.0 ) );
226 return worldPos * m_worldToGrid;
#define AGXTERRAIN_EXPORT
TileModifications are used to provide a delta for paged terrain changes.
agxTerrain::TileId tileId
A TileSpecification determines where in the world a 2D TileId is located and contains utility methods...
agx::Vec3 convertTilePositionToWorld(agxTerrain::TileId id, agx::Vec3 tilePos) const
The 2D version of this method is the same as calling this method with agx::Vec3(x,...
TileSpecification(agx::Vec3 refPoint, agx::Quat refRotation, agx::Real tileSize, size_t marginSize, size_t resolution, agx::Real maxDepth)
Constructor.
agxTerrain::TileId convertWorldCoordinateToTileId(agx::Vec3 worldPos) const
agx::Vec3 getTileCenter(agxTerrain::TileId id) const
Return the local center position for tile id in the plane with tiles.
static AffineMatrix4x4T< Real > translate(const Vec3T< Real > &dv)
Return a matrix which translates according to dv.
Vector containing 'raw' data.
#define DOXYGEN_END_INTERNAL_BLOCK()
#define DOXYGEN_START_INTERNAL_BLOCK()
This namespace contain classes for streaming classes into archives, ASCII, binary for storage (serial...
The agxTerrain namespace contains a 3D model for a dynamic deformable Terrain and related classes.
agx::VectorPOD< TileModification > TileModificationVector
agx::Vec2i32 TileId
A TileId is a 2D-coordinate that specifies where a in grid a tile is located.
The agx namespace contains the dynamics/math part of the AGX Dynamics API.
std::pair< Real, Real > RealPair