|
| bool | addTerrainMaterialSourceGeometry (agxCollide::Geometry *geom, agx::UInt32 terrainMaterialIndex) |
| |
| | AGXSTREAM_DECLARE_ABSTRACT_SERIALIZABLE (agxTerrain::TerrainDataSource) |
| |
| virtual TerrainMaterialsType | fetchTerrainMaterials (const TileSpecification &ts, agxTerrain::TileId id, agx::Real maxHeight) |
| | Return assigned terrain material geometries in the requested tile.
|
| |
| virtual TerrainHeightType | fetchTerrainTile (const TileSpecification &ts, agxTerrain::TileId id)=0 |
| | Return height data for requested tile according to the TileSpecification.
|
| |
| virtual bool | raycast (agx::Vec3 start, agx::Vec3 end, agx::Vec3 &raycastResult) |
| | Perform raycasting against the terrain.
|
| |
| bool | removeMaterialSourceGeometry (agxCollide::Geometry *geom) |
| | Removes a geometry from the TerrainRasterizer.
|
| |
| virtual void | restore (agxStream::InputArchive &in) override |
| |
| virtual void | store (agxStream::OutputArchive &out) const override |
| |
| | Referenced () |
| | Default constructor.
|
| |
| | Referenced (const Referenced &) |
| |
| template<typename T > |
| T * | as () |
| | Subclass casting.
|
| |
| template<typename T > |
| const T * | as () const |
| |
| template<typename T > |
| T * | asSafe () |
| | Safe subclass casting, return nullptr if template type does not match.
|
| |
| template<typename T > |
| const T * | asSafe () const |
| |
| int | getReferenceCount () const |
| |
| template<typename T > |
| bool | is () const |
| | Subclass test.
|
| |
| Referenced & | operator= (const Referenced &) |
| | Assignment operator. Will increment the number of references to the referenced object.
|
| |
| void | reference (void *ptr=nullptr) const |
| | Explicitly increment the reference count by one, indicating that this object has another pointer which is referencing it.
|
| |
| void | unreference (void *ptr=nullptr) const |
| | Decrement the reference count by one, indicating that a pointer to this object is referencing it.
|
| |
| void | unreference_nodelete () const |
| | Decrement the reference count by one, indicating that a pointer to this object is referencing it.
|
| |
| virtual | ~Serializable () |
| | Destructor for normal C++ use but hidden from SWIG bindings.
|
| |
| virtual const char * | getClassName () const |
| |
| bool | getEnableSerialization () const |
| |
| bool | getEnableUuidGeneration () |
| |
| agx::UInt32 | getIndex () const |
| | This index is given at creation of this object.
|
| |
| virtual StorageAgent * | getStorageAgent () const =0 |
| |
| agx::Uuid | getUuid () const |
| |
| bool | isFinished () const |
| |
| void | setEnableSerialization (bool flag) |
| | Set to false to disable serialization of this object.
|
| |
| void | setFinished () |
| | Tells this class that it is restored correctly and should not be deleted during destruction of an Archive.
|
| |
| void | setUuid (const agx::Uuid &uuid) |
| | Explicitly set a Uuid on a serializable object.
|
| |
Abstract interface for requesting height data for a Terrain tile.
Definition at line 39 of file TerrainDataSource.h.
Return height data for requested tile according to the TileSpecification.
The returned vector should have ts.getTileResolution squared number of height values. If the TerrainDataSource is not able to provide data, an empty vector can be returned.
Upon no data returned, the TerrainCache will reply to the TerrainPager with the requested TileId id but having no terrain instance signaling that the request was processed but could not be fullfilled. In this scenario, there will be an empty tile where it should have been a terrain instance and the same tile will be requested again on the next stepForward.
- Parameters
-
| ts | - The specification of how new tiles are created by the data source |
| id | - The id or position of the tile relative to other paged terrain tiles |
- Returns
- A vector containing the height data for the new tile
Implemented in agxTerrain::TerrainRasterizer, and agxTerrain::ExternalTerrainDataSource.