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

Public Member Functions

 VolumeSampler (std::shared_ptr< const Volume > vol, CoordinateSpace space=CoordinateSpace::Data)
 
 VolumeSampler (const Volume &vol, CoordinateSpace space=CoordinateSpace::Data)
 
VolumeSampleroperator= (const VolumeSampler &)=default
 
- Public Member Functions inherited from inviwo::SpatialSampler< dvec4 >
 SpatialSampler (const SpatialEntity &spatialEntity, CoordinateSpace space=CoordinateSpace::Data)
 
dvec4 sample (const dvec3 &pos) const
 
dvec4 sample (const vec3 &pos) const
 
dvec4 sample (const dvec2 &pos) const
 
dvec4 sample (const vec2 &pos) const
 
dvec4 sample (const dvec3 &pos, CoordinateSpace space) const
 
dvec4 sample (const vec3 &pos, CoordinateSpace space) const
 
dvec4 sample (const dvec2 &pos, CoordinateSpace space) const
 
dvec4 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
 
double getVoxel (const size3_t &pos) const
 
dvec2 getVoxel (const size3_t &pos) const
 
dvec3 getVoxel (const size3_t &pos) const
 
dvec4 getVoxel (const size3_t &pos) const
 
- Protected Member Functions inherited from inviwo::SpatialSampler< dvec4 >

Protected Attributes

std::shared_ptr< const Volumevolume_
 
const VolumeRAMram_
 
size3_t dims_
 
- Protected Attributes inherited from inviwo::SpatialSampler< dvec4 >
CoordinateSpace space_
 
const SpatialEntityspatialEntity_
 
dmat4 transform_
 

Additional Inherited Members

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

Member Function Documentation

◆ sampleDataSpace()

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

◆ withinBoundsDataSpace()

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

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