Inviwo  0.9.10.1
Inviwo documentation
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 = Volume
 

Public Member Functions

 VolumeRAMPrecision (size3_t dimensions=size3_t(128, 128, 128), const SwizzleMask &swizzleMask=swizzlemasks::rgba)
 
 VolumeRAMPrecision (T *data, size3_t dimensions, const SwizzleMask &swizzleMask=swizzlemasks::rgba)
 
 VolumeRAMPrecision (const VolumeRAMPrecision< T > &rhs)
 
VolumeRAMPrecision< T > & operator= (const VolumeRAMPrecision< T > &that)
 
virtual VolumeRAMPrecision< T > * clone () const override
 
T * getDataTyped ()
 
const T * getDataTyped () 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. More...
 
virtual void removeDataOwnership () override
 
virtual const size3_t & getDimensions () const override
 
virtual void setDimensions (size3_t dimensions) override
 
virtual bool hasHistograms () const override
 
virtual HistogramContainergetHistograms (size_t bins=2048u, size3_t sampleRate=size3_t(1)) override
 
virtual const HistogramContainergetHistograms (size_t bins=2048u, size3_t sampleRate=size3_t(1)) const override
 
virtual void calculateHistograms (size_t bins, size3_t sampleRate, const bool &stop) 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
 
void setValuesFromVolume (const VolumeRAM *src, const size3_t &dstOffset, const size3_t &subSize, const size3_t &subOffset) override
 
virtual size_t getNumberOfBytes () const override
 
virtual void setSwizzleMask (const SwizzleMask &mask) override
 update the swizzle mask of the color channels when sampling the volume More...
 
virtual SwizzleMask getSwizzleMask () const override
 
- Public Member Functions inherited from inviwo::VolumeRAM
 VolumeRAM (const DataFormatBase *format)
 
 VolumeRAM (const VolumeRAM &rhs)=default
 
VolumeRAMoperator= (const VolumeRAM &that)=default
 
void setValuesFromVolume (const VolumeRAM *src, const size3_t &dstOffset=size3_t(0))
 
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::DataRepresentation< Volume >
const DataFormatBasegetDataFormat () const
 
std::string getDataFormatString () const
 
DataFormatId getDataFormatId () const
 
void setOwner (Volume *owner)
 
VolumegetOwner ()
 
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::VolumeRepresentation
 VolumeRepresentation (const DataFormatBase *format)
 
 VolumeRepresentation (const VolumeRepresentation &rhs)=default
 
VolumeRepresentationoperator= (const VolumeRepresentation &that)=default
 
- Protected Member Functions inherited from inviwo::DataRepresentation< Volume >
 DataRepresentation (const DataFormatBase *format)
 
 DataRepresentation (const DataRepresentation &rhs)=default
 
DataRepresentationoperator= (const DataRepresentation &that)=default
 
void setDataFormat (const DataFormatBase *format)
 
- Protected Attributes inherited from inviwo::DataRepresentation< Volume >
bool isValid_
 
const DataFormatBasedataFormatBase_
 
Volumeowner_
 

Member Function Documentation

◆ 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.

◆ 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.


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