|
| | HashVoxelGrid (float defaultValue, agx::Real voxelSize) |
| |
| | ~HashVoxelGrid () |
| |
| | AGXSTREAM_DECLARE_SERIALIZABLE_BASE (agxTerrain::HashVoxelGrid) |
| |
| virtual void | clearGrid () override |
| | Clear the grid.
|
| |
| virtual bool | empty () override |
| | Test if the trid is empty.
|
| |
| virtual agx::HashSet< agx::Vec3i > | findGeometryVoxelIntersections (const agx::AffineMatrix4x4 &gridTransform, const agxCollide::Geometry *geometry, agx::Real voxelSize, bool onlyOccupiedVoxels=true, bool onlyMidPoint=false) const override |
| | Find which voxels that overlap with a geometry.
|
| |
| virtual GridCoordVector | getActiveVoxelIndices () const override |
| |
| virtual agx::Vec3 | getElementSize () const override |
| | Get the element size used for the voxel grid.
|
| |
| virtual float | getFloatValue (const GridCoord &ijk) const override |
| | Return value for voxel ijk.
|
| |
| virtual size_t | getMemoryUsage () const override |
| | Get the memory usage.
|
| |
| virtual size_t | getNumActiveVoxels () const override |
| | Return number of active voxels in the data structure.
|
| |
| virtual agx::Real | getTotal () const override |
| | Returns the sum of all voxel values.
|
| |
| virtual std::tuple< float, float > | getTotalAndLargest () const override |
| |
| virtual bool | hasIterateSupport () const override |
| |
| virtual bool | isActiveVoxel (const GridCoord &ijk) const override |
| | Test if voxel ijk is active.
|
| |
| virtual void | iterateVoxels (GridFunction) const override |
| |
| virtual void | setFloatValue (const GridCoord &ijk, float value) override |
| | Set value for voxel ijk.
|
| |
| virtual void | sizeHint (size_t hint) override |
| | Provide the implementation with a hint about the estimated number of voxels that are needed.
|
| |
| | AGXSTREAM_DECLARE_ABSTRACT_SERIALIZABLE (agxTerrain::BasicGrid) |
| |
| virtual void | clearGrid ()=0 |
| | Clear the grid.
|
| |
| virtual bool | empty ()=0 |
| | Test if the trid is empty.
|
| |
| virtual agx::HashSet< agx::Vec3i > | findGeometryVoxelIntersections (const agx::AffineMatrix4x4 &gridTransform, const agxCollide::Geometry *geometry, agx::Real voxelSize, bool onlyOccupiedVoxels=true, bool onlyMidPoint=false) const =0 |
| | Find which voxels that overlap with a geometry.
|
| |
| virtual GridCoordVector | getActiveVoxelIndices () const =0 |
| |
| virtual agx::Vec3 | getElementSize () const =0 |
| | Get the element size used for the voxel grid.
|
| |
| virtual float | getFloatValue (const GridCoord &ijk) const =0 |
| | Return value for voxel ijk.
|
| |
| virtual size_t | getMemoryUsage () const =0 |
| | Get the memory usage.
|
| |
| virtual size_t | getNumActiveVoxels () const =0 |
| | Return number of active voxels in the data structure.
|
| |
| virtual agx::Real | getTotal () const =0 |
| | Returns the sum of all voxel values.
|
| |
| virtual std::tuple< float, float > | getTotalAndLargest () const =0 |
| |
| virtual bool | hasIterateSupport () const |
| |
| virtual bool | isActiveVoxel (const GridCoord &) const =0 |
| | Test if voxel ijk is active.
|
| |
| virtual void | iterateVoxels (GridFunction) const |
| |
| void | restore (agxStream::InputArchive &in) override=0 |
| |
| virtual void | setFloatValue (const GridCoord &ijk, float value)=0 |
| | Set value for voxel ijk.
|
| |
| virtual void | sizeHint (size_t) |
| | Provide the implementation with a hint about the estimated number of voxels that are needed.
|
| |
| void | store (agxStream::OutputArchive &out) const override=0 |
| |
| | 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.
|
| |
Class implementing the BasicGrid interface.
Definition at line 27 of file HashVoxelGrid.h.