Inviwo 0.9.12-pre
Inviwo documentation
Loading...
Searching...
No Matches
inviwo::TemplateVolumeSampler< ReturnType, DataType > Class Template Reference
+ Inheritance diagram for inviwo::TemplateVolumeSampler< ReturnType, DataType >:

Public Member Functions

 TemplateVolumeSampler (std::shared_ptr< const Volume > sharedVolume, CoordinateSpace space=CoordinateSpace::Data)
 
 TemplateVolumeSampler (const Volume &sharedVolume, CoordinateSpace space=CoordinateSpace::Data)
 
- Public Member Functions inherited from inviwo::SpatialSampler< ReturnType >
 SpatialSampler (const SpatialEntity &spatialEntity, CoordinateSpace space=CoordinateSpace::Data)
 
ReturnType sample (const dvec3 &pos) const
 
ReturnType sample (const vec3 &pos) const
 
ReturnType sample (const dvec2 &pos) const
 
ReturnType sample (const vec2 &pos) const
 
ReturnType sample (const dvec3 &pos, CoordinateSpace space) const
 
ReturnType sample (const vec3 &pos, CoordinateSpace space) const
 
ReturnType sample (const dvec2 &pos, CoordinateSpace space) const
 
ReturnType sample (const vec2 &pos, CoordinateSpace space) const
 
bool withinBounds (const dvec3 &pos) const
 
bool withinBounds (const vec3 &pos) const
 
bool withinBounds (const dvec2 &pos) const
 
bool withinBounds (const vec2 &pos) const
 
bool withinBounds (const dvec3 &pos, CoordinateSpace space) const
 
bool withinBounds (const vec3 &pos, CoordinateSpace space) const
 
bool withinBounds (const dvec2 &pos, CoordinateSpace space) const
 
bool withinBounds (const vec2 &pos, CoordinateSpace space) const
 
mat3 getBasis () const
 
mat4 getModelMatrix () const
 
mat4 getWorldMatrix () const
 
const SpatialCoordinateTransformergetCoordinateTransformer () const
 

Protected Member Functions

virtual ReturnType sampleDataSpace (const dvec3 &pos) const override
 
virtual bool withinBoundsDataSpace (const dvec3 &pos) const override
 
ReturnType getVoxel (const size3_t &pos) const
 
- Protected Member Functions inherited from inviwo::SpatialSampler< ReturnType >

Protected Attributes

const DataType * data_
 
size3_t dimsM1_
 
dvec3 max_
 
util::IndexMapper3D ic_
 
std::shared_ptr< const VolumesharedVolume_
 
- Protected Attributes inherited from inviwo::SpatialSampler< ReturnType >
CoordinateSpace space_
 
const SpatialEntityspatialEntity_
 
dmat4 transform_
 

Additional Inherited Members

- Public Types inherited from inviwo::SpatialSampler< ReturnType >
using type = ReturnType
 
- Static Public Attributes inherited from inviwo::SpatialSampler< ReturnType >
static const unsigned SpatialDimensions = 3
 

Member Function Documentation

◆ sampleDataSpace()

template<typename ReturnType , typename DataType >
auto inviwo::TemplateVolumeSampler< ReturnType, DataType >::sampleDataSpace ( const dvec3 & pos) const
overrideprotectedvirtual

◆ withinBoundsDataSpace()

template<typename ReturnType , typename DataType >
bool inviwo::TemplateVolumeSampler< ReturnType, DataType >::withinBoundsDataSpace ( const dvec3 & pos) const
overrideprotectedvirtual

The documentation for this class was generated from the following file: