This class provides a concrete, serializable base class which classes written in other languages can inherit from to create data sources.
More...
|
| | ExternalTerrainDataSource () |
| | Constructor.
|
| |
| | AGXSTREAM_DECLARE_SERIALIZABLE_BASE (agxTerrain::ExternalTerrainDataSource) |
| |
| virtual TerrainHeightType | fetchTerrainTile (const TileSpecification &ts, agxTerrain::TileId id) override |
| | Overload of TerrainDataSource::fetchTerrainTile for fetching terrain data.
|
| |
| virtual bool | raycast (agx::Vec3 start, agx::Vec3 end, agx::Vec3 &raycastResult) override |
| | Overload of TerrainDataSource::raycast for performing raycast against the data source.
|
| |
| 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.
|
| |
| 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.
|
| |
This class provides a concrete, serializable base class which classes written in other languages can inherit from to create data sources.
This class NOT meant to be used in C++ code or instantiated, only to provide an interface to child classes.
The need for this class arises from the TerrainDataSource class being an abstract class which in turn is not serializable, meaning that simulations containing external data source classes inheriting from TerrainDataSource fails during serialization.
The solution is to instead inherit from this class which disables serialization of the data source.
Definition at line 236 of file TerrainDataSource.h.