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

Public Types

using type = T
 
- Public Types inherited from inviwo::DataRepresentation< Volume >
using ReprOwner
 

Public Member Functions

 VolumeRAMPrecision (size3_t dimensions=VolumeConfig::defaultDimensions, const SwizzleMask &swizzleMask=VolumeConfig::defaultSwizzleMask, InterpolationType interpolation=VolumeConfig::defaultInterpolation, const Wrapping3D &wrapping=VolumeConfig::defaultWrapping)
 
 VolumeRAMPrecision (T *data, size3_t dimensions, const SwizzleMask &swizzleMask=VolumeConfig::defaultSwizzleMask, InterpolationType interpolation=VolumeConfig::defaultInterpolation, const Wrapping3D &wrapping=VolumeConfig::defaultWrapping)
 
 VolumeRAMPrecision (const VolumeReprConfig &config)
 
 VolumeRAMPrecision (const VolumeRAMPrecision< T > &rhs)
 
VolumeRAMPrecision< T > & operator= (const VolumeRAMPrecision< T > &that)
 
virtual VolumeRAMPrecision< T > * clone () const override
 
virtual const DataFormatBasegetDataFormat () const override
 
T * getDataTyped ()
 
const T * getDataTyped () const
 
std::span< T > getView ()
 
std::span< const T > getView () const
 
virtual void * getData () override
 
virtual const void * getData () const override
 
virtual void * getData (size_t) override
 
virtual const void * getData (size_t) const override
 
virtual void setData (void *data, size3_t dimensions) override
 Takes ownership of data pointer.
 
virtual void removeDataOwnership () override
 
virtual const size3_t & getDimensions () const override
 
virtual void setDimensions (size3_t dimensions) override
 
virtual void setSwizzleMask (const SwizzleMask &mask) override
 update the swizzle mask of the color channels when sampling the volume
 
virtual SwizzleMask getSwizzleMask () const override
 
virtual void setInterpolation (InterpolationType interpolation) override
 
virtual InterpolationType getInterpolation () const override
 
virtual void setWrapping (const Wrapping3D &wrapping) override
 
virtual Wrapping3D getWrapping () const override
 
virtual double getAsDouble (const size3_t &pos) const override
 
virtual dvec2 getAsDVec2 (const size3_t &pos) const override
 
virtual dvec3 getAsDVec3 (const size3_t &pos) const override
 
virtual dvec4 getAsDVec4 (const size3_t &pos) const override
 
virtual void setFromDouble (const size3_t &pos, double val) override
 
virtual void setFromDVec2 (const size3_t &pos, dvec2 val) override
 
virtual void setFromDVec3 (const size3_t &pos, dvec3 val) override
 
virtual void setFromDVec4 (const size3_t &pos, dvec4 val) override
 
virtual double getAsNormalizedDouble (const size3_t &pos) const override
 
virtual dvec2 getAsNormalizedDVec2 (const size3_t &pos) const override
 
virtual dvec3 getAsNormalizedDVec3 (const size3_t &pos) const override
 
virtual dvec4 getAsNormalizedDVec4 (const size3_t &pos) const override
 
virtual void setFromNormalizedDouble (const size3_t &pos, double val) override
 
virtual void setFromNormalizedDVec2 (const size3_t &pos, dvec2 val) override
 
virtual void setFromNormalizedDVec3 (const size3_t &pos, dvec3 val) override
 
virtual void setFromNormalizedDVec4 (const size3_t &pos, dvec4 val) override
 
virtual size_t getNumberOfBytes () const override
 
virtual void updateResource (const ResourceMeta &meta) const override
 
- Public Member Functions inherited from inviwo::VolumeRAM
virtual std::type_index getTypeIndex () const override final
 
template<typename Result , template< class > class Predicate = dispatching::filter::All, typename Callable , typename... Args>
auto dispatch (Callable &&callable, Args &&... args) -> Result
 
template<typename Result , template< class > class Predicate = dispatching::filter::All, typename Callable , typename... Args>
auto dispatch (Callable &&callable, Args &&... args) const -> Result
 
- Public Member Functions inherited from inviwo::VolumeRepresentation
std::string_view getDataFormatString () const
 
DataFormatId getDataFormatId () const
 
VolumeReprConfig config () const
 
- Public Member Functions inherited from inviwo::DataRepresentation< Volume >
void setOwner (const Volume *owner)
 
const VolumegetOwner () const
 
bool isValid () const
 
void setValid (bool valid)
 

Additional Inherited Members

- Static Public Member Functions inherited from inviwo::VolumeRAM
template<typename T >
static T posToIndex (const glm::tvec3< T, glm::defaultp > &pos, const glm::tvec3< T, glm::defaultp > &dim)
 
template<typename T >
static T periodicPosToIndex (const glm::tvec3< T, glm::defaultp > &posIn, const glm::tvec3< T, glm::defaultp > &dim)
 
- Protected Member Functions inherited from inviwo::VolumeRAM
 VolumeRAM (const VolumeRAM &rhs)=default
 
 VolumeRAM (VolumeRAM &rhs)=default
 
VolumeRAMoperator= (const VolumeRAM &that)=default
 
VolumeRAMoperator= (VolumeRAM &&that)=default
 
- Protected Member Functions inherited from inviwo::VolumeRepresentation
 VolumeRepresentation (const VolumeRepresentation &rhs)=default
 
VolumeRepresentationoperator= (const VolumeRepresentation &that)=default
 
- Protected Member Functions inherited from inviwo::DataRepresentation< Volume >
 DataRepresentation (const DataRepresentation &rhs)=default
 
DataRepresentationoperator= (const DataRepresentation &that)=default
 
- Protected Attributes inherited from inviwo::DataRepresentation< Volume >
bool isValid_
 
const Volumeowner_
 

Member Function Documentation

◆ clone()

template<typename T >
VolumeRAMPrecision< T > * inviwo::VolumeRAMPrecision< T >::clone ( ) const
overridevirtual

Implements inviwo::VolumeRAM.

◆ getAsDouble()

template<typename T >
double inviwo::VolumeRAMPrecision< T >::getAsDouble ( const size3_t & pos) const
overridevirtual

Implements inviwo::VolumeRAM.

◆ getAsDVec2()

template<typename T >
dvec2 inviwo::VolumeRAMPrecision< T >::getAsDVec2 ( const size3_t & pos) const
overridevirtual

Implements inviwo::VolumeRAM.

◆ getAsDVec3()

template<typename T >
dvec3 inviwo::VolumeRAMPrecision< T >::getAsDVec3 ( const size3_t & pos) const
overridevirtual

Implements inviwo::VolumeRAM.

◆ getAsDVec4()

template<typename T >
dvec4 inviwo::VolumeRAMPrecision< T >::getAsDVec4 ( const size3_t & pos) const
overridevirtual

Implements inviwo::VolumeRAM.

◆ getAsNormalizedDouble()

template<typename T >
double inviwo::VolumeRAMPrecision< T >::getAsNormalizedDouble ( const size3_t & pos) const
overridevirtual

Implements inviwo::VolumeRAM.

◆ getAsNormalizedDVec2()

template<typename T >
dvec2 inviwo::VolumeRAMPrecision< T >::getAsNormalizedDVec2 ( const size3_t & pos) const
overridevirtual

Implements inviwo::VolumeRAM.

◆ getAsNormalizedDVec3()

template<typename T >
dvec3 inviwo::VolumeRAMPrecision< T >::getAsNormalizedDVec3 ( const size3_t & pos) const
overridevirtual

Implements inviwo::VolumeRAM.

◆ getAsNormalizedDVec4()

template<typename T >
dvec4 inviwo::VolumeRAMPrecision< T >::getAsNormalizedDVec4 ( const size3_t & pos) const
overridevirtual

Implements inviwo::VolumeRAM.

◆ getData() [1/4]

template<typename T >
const void * inviwo::VolumeRAMPrecision< T >::getData ( ) const
overridevirtual

Implements inviwo::VolumeRAM.

◆ getData() [2/4]

template<typename T >
void * inviwo::VolumeRAMPrecision< T >::getData ( )
overridevirtual

Implements inviwo::VolumeRAM.

◆ getData() [3/4]

template<typename T >
const void * inviwo::VolumeRAMPrecision< T >::getData ( size_t pos) const
overridevirtual

Implements inviwo::VolumeRAM.

◆ getData() [4/4]

template<typename T >
void * inviwo::VolumeRAMPrecision< T >::getData ( size_t pos)
overridevirtual

Implements inviwo::VolumeRAM.

◆ getDataFormat()

template<typename T >
const DataFormatBase * inviwo::VolumeRAMPrecision< T >::getDataFormat ( ) const
overridevirtual

◆ getDimensions()

template<typename T >
const size3_t & inviwo::VolumeRAMPrecision< T >::getDimensions ( ) const
overridevirtual

◆ getInterpolation()

template<typename T >
InterpolationType inviwo::VolumeRAMPrecision< T >::getInterpolation ( ) const
overridevirtual

◆ getNumberOfBytes()

template<typename T >
size_t inviwo::VolumeRAMPrecision< T >::getNumberOfBytes ( ) const
overridevirtual

Implements inviwo::VolumeRAM.

◆ getSwizzleMask()

template<typename T >
SwizzleMask inviwo::VolumeRAMPrecision< T >::getSwizzleMask ( ) const
overridevirtual

◆ getWrapping()

template<typename T >
Wrapping3D inviwo::VolumeRAMPrecision< T >::getWrapping ( ) const
overridevirtual

◆ removeDataOwnership()

template<typename T >
void inviwo::VolumeRAMPrecision< T >::removeDataOwnership ( )
overridevirtual

Implements inviwo::VolumeRAM.

◆ setData()

template<typename T >
void inviwo::VolumeRAMPrecision< T >::setData ( void * data,
size3_t dimensions )
overridevirtual

Takes ownership of data pointer.

Parameters
datais raw volume data pointer
dimensionsis the dimensions of the data.

Implements inviwo::VolumeRAM.

◆ setDimensions()

template<typename T >
void inviwo::VolumeRAMPrecision< T >::setDimensions ( size3_t dimensions)
overridevirtual

◆ setFromDouble()

template<typename T >
void inviwo::VolumeRAMPrecision< T >::setFromDouble ( const size3_t & pos,
double val )
overridevirtual

Implements inviwo::VolumeRAM.

◆ setFromDVec2()

template<typename T >
void inviwo::VolumeRAMPrecision< T >::setFromDVec2 ( const size3_t & pos,
dvec2 val )
overridevirtual

Implements inviwo::VolumeRAM.

◆ setFromDVec3()

template<typename T >
void inviwo::VolumeRAMPrecision< T >::setFromDVec3 ( const size3_t & pos,
dvec3 val )
overridevirtual

Implements inviwo::VolumeRAM.

◆ setFromDVec4()

template<typename T >
void inviwo::VolumeRAMPrecision< T >::setFromDVec4 ( const size3_t & pos,
dvec4 val )
overridevirtual

Implements inviwo::VolumeRAM.

◆ setFromNormalizedDouble()

template<typename T >
void inviwo::VolumeRAMPrecision< T >::setFromNormalizedDouble ( const size3_t & pos,
double val )
overridevirtual

Implements inviwo::VolumeRAM.

◆ setFromNormalizedDVec2()

template<typename T >
void inviwo::VolumeRAMPrecision< T >::setFromNormalizedDVec2 ( const size3_t & pos,
dvec2 val )
overridevirtual

Implements inviwo::VolumeRAM.

◆ setFromNormalizedDVec3()

template<typename T >
void inviwo::VolumeRAMPrecision< T >::setFromNormalizedDVec3 ( const size3_t & pos,
dvec3 val )
overridevirtual

Implements inviwo::VolumeRAM.

◆ setFromNormalizedDVec4()

template<typename T >
void inviwo::VolumeRAMPrecision< T >::setFromNormalizedDVec4 ( const size3_t & pos,
dvec4 val )
overridevirtual

Implements inviwo::VolumeRAM.

◆ setInterpolation()

template<typename T >
void inviwo::VolumeRAMPrecision< T >::setInterpolation ( InterpolationType interpolation)
overridevirtual

◆ setSwizzleMask()

template<typename T >
void inviwo::VolumeRAMPrecision< T >::setSwizzleMask ( const SwizzleMask & mask)
overridevirtual

update the swizzle mask of the color channels when sampling the volume

Parameters
masknew swizzle mask

Implements inviwo::VolumeRepresentation.

◆ setWrapping()

template<typename T >
void inviwo::VolumeRAMPrecision< T >::setWrapping ( const Wrapping3D & wrapping)
overridevirtual

◆ updateResource()

template<typename T >
virtual void inviwo::VolumeRAMPrecision< T >::updateResource ( const ResourceMeta & meta) const
inlineoverridevirtual

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