34 typedef std::pair< Real, Real >
RealPair;
107 size_t getTileMarginSize()
const;
113 size_t getTileResolution()
const;
176 size_t m_tileMarginSize;
177 size_t m_tileResolution;
190 return m_referencePoint;
195 return m_referenceRotation;
205 return m_tileMarginSize;
210 return m_tileResolution;
215 return m_maximumDepth;
226 return worldPos * m_worldToGrid;
std::pair< Real, Real > RealPair
InputRef< T > in(const char *name, T &obj)
Create an object with a name and a reference to the object that should be restored (usually a pointer...
agx::Quat getReferenceRotation() const
A TileSpecification determines where in the world a 2D TileId is located and contains utility methods...
agx::VectorPOD< TileModification > TileModificationVector
OutputRef< Serializable > out(const char *name, const Serializable *obj)
Return an object that contain the name and the object that should be serialized to an archive...
static AffineMatrix4x4T< Real > translate(const Vec3T< Real > &dv)
Return a matrix which translates according to dv.
A terrain model based a 3D grid model with overlapping height field that can be deformed by interacti...
agxTerrain::TileId tileId
agx::Vec3 convertTilePositionToWorld(agxTerrain::TileId id, agx::Vec2 tilePos) const
Convert a local position in a tile to world coordinates.
agx::Vec3 getTileCenter(agxTerrain::TileId id) const
Return the local center position for tile id in the plane with tiles.
agx::Real getMaximumDepth() const
agx::Vec3 getReferencePoint() const
agx::Real getTileSize() const
The full size of a tile.
agx::Vec2i32 TileId
A TileId is a 2D-coordinate that specifies where a in grid a tile is located.
agx::Vec3 convertWorldCoordinateToTilePosition(agx::Vec3 worldPos) const
Return position in coordinate system defined by the XY-plane with local Z upwards.
#define AGXTERRAIN_EXPORT
Class for writing serialized data in binary format to a stream.
agx::AffineMatrix4x4 getTileTransform(agxTerrain::TileId id, agx::Real zPos=0) const
Return the transform that can be used to place the tile id correctly.
TileModifications are used to provide a delta for paged terrain changes.
#define DOXYGEN_END_INTERNAL_BLOCK()
size_t getTileResolution() const
#define DOXYGEN_START_INTERNAL_BLOCK()
size_t getTileMarginSize() const