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

Public Types

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

Public Member Functions

 LayerRAMPrecision (size2_t dimensions=LayerConfig::defaultDimensions, LayerType type=LayerConfig::defaultType, const SwizzleMask &swizzleMask=LayerConfig::defaultSwizzleMask, InterpolationType interpolation=LayerConfig::defaultInterpolation, const Wrapping2D &wrap=LayerConfig::defaultWrapping)
 
 LayerRAMPrecision (T *data, size2_t dimensions, LayerType type=LayerConfig::defaultType, const SwizzleMask &swizzleMask=LayerConfig::defaultSwizzleMask, InterpolationType interpolation=LayerConfig::defaultInterpolation, const Wrapping2D &wrap=LayerConfig::defaultWrapping)
 
 LayerRAMPrecision (const LayerReprConfig &config)
 
 LayerRAMPrecision (const LayerRAMPrecision< T > &rhs)
 
LayerRAMPrecision< T > & operator= (const LayerRAMPrecision< T > &that)
 
virtual LayerRAMPrecision< 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 setData (void *data, size2_t dimensions) override
 
virtual void setDimensions (size2_t dimensions) override
 
const size2_t & getDimensions () const override
 
virtual void setSwizzleMask (const SwizzleMask &mask) override
 update the swizzle mask of the channels for sampling color layers Needs to be overloaded by child classes.
 
virtual SwizzleMask getSwizzleMask () const override
 
virtual void setInterpolation (InterpolationType interpolation) override
 update the interpolation for sampling layer Needs to be overloaded by child classes.
 
virtual InterpolationType getInterpolation () const override
 
virtual void setWrapping (const Wrapping2D &wrapping) override
 Update the wrapping type of the layer Needs to be overloaded by child classes.
 
virtual Wrapping2D getWrapping () const override
 
virtual double getAsDouble (const size2_t &pos) const override
 
virtual dvec2 getAsDVec2 (const size2_t &pos) const override
 
virtual dvec3 getAsDVec3 (const size2_t &pos) const override
 
virtual dvec4 getAsDVec4 (const size2_t &pos) const override
 
virtual void setFromDouble (const size2_t &pos, double val) override
 
virtual void setFromDVec2 (const size2_t &pos, dvec2 val) override
 
virtual void setFromDVec3 (const size2_t &pos, dvec3 val) override
 
virtual void setFromDVec4 (const size2_t &pos, dvec4 val) override
 
virtual double getAsNormalizedDouble (const size2_t &pos) const override
 
virtual dvec2 getAsNormalizedDVec2 (const size2_t &pos) const override
 
virtual dvec3 getAsNormalizedDVec3 (const size2_t &pos) const override
 
virtual dvec4 getAsNormalizedDVec4 (const size2_t &pos) const override
 
virtual void setFromNormalizedDouble (const size2_t &pos, double val) override
 
virtual void setFromNormalizedDVec2 (const size2_t &pos, dvec2 val) override
 
virtual void setFromNormalizedDVec3 (const size2_t &pos, dvec3 val) override
 
virtual void setFromNormalizedDVec4 (const size2_t &pos, dvec4 val) override
 
virtual void updateResource (const ResourceMeta &meta) const override
 
- Public Member Functions inherited from inviwo::LayerRAM
virtual bool copyRepresentationsTo (LayerRepresentation *) const override
 
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::LayerRepresentation
LayerType getLayerType () const
 
std::string_view getDataFormatString () const
 
DataFormatId getDataFormatId () const
 
LayerReprConfig config () const
 
- Public Member Functions inherited from inviwo::DataRepresentation< Layer >
void setOwner (const Layer *owner)
 
const LayergetOwner () const
 
bool isValid () const
 
void setValid (bool valid)
 

Additional Inherited Members

- Static Public Member Functions inherited from inviwo::LayerRAM
static size_t posToIndex (const size2_t &pos, const size2_t &dim)
 
- Protected Member Functions inherited from inviwo::LayerRAM
 LayerRAM (LayerType type=LayerType::Color)
 
 LayerRAM (const LayerRAM &rhs)=default
 
LayerRAMoperator= (const LayerRAM &that)=default
 
- Protected Member Functions inherited from inviwo::LayerRepresentation
 LayerRepresentation (LayerType type=LayerType::Color)
 
 LayerRepresentation (const LayerRepresentation &rhs)=default
 
LayerRepresentationoperator= (const LayerRepresentation &that)=default
 
- Protected Member Functions inherited from inviwo::DataRepresentation< Layer >
 DataRepresentation (const DataRepresentation &rhs)=default
 
DataRepresentationoperator= (const DataRepresentation &that)=default
 
- Protected Attributes inherited from inviwo::LayerRepresentation
LayerType layerType_
 
- Protected Attributes inherited from inviwo::DataRepresentation< Layer >
bool isValid_
 
const Layerowner_
 

Member Function Documentation

◆ clone()

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

Implements inviwo::LayerRAM.

◆ getAsDouble()

template<typename T >
double inviwo::LayerRAMPrecision< T >::getAsDouble ( const size2_t & pos) const
overridevirtual

Implements inviwo::LayerRAM.

◆ getAsDVec2()

template<typename T >
dvec2 inviwo::LayerRAMPrecision< T >::getAsDVec2 ( const size2_t & pos) const
overridevirtual

Implements inviwo::LayerRAM.

◆ getAsDVec3()

template<typename T >
dvec3 inviwo::LayerRAMPrecision< T >::getAsDVec3 ( const size2_t & pos) const
overridevirtual

Implements inviwo::LayerRAM.

◆ getAsDVec4()

template<typename T >
dvec4 inviwo::LayerRAMPrecision< T >::getAsDVec4 ( const size2_t & pos) const
overridevirtual

Implements inviwo::LayerRAM.

◆ getAsNormalizedDouble()

template<typename T >
double inviwo::LayerRAMPrecision< T >::getAsNormalizedDouble ( const size2_t & pos) const
overridevirtual

Implements inviwo::LayerRAM.

◆ getAsNormalizedDVec2()

template<typename T >
dvec2 inviwo::LayerRAMPrecision< T >::getAsNormalizedDVec2 ( const size2_t & pos) const
overridevirtual

Implements inviwo::LayerRAM.

◆ getAsNormalizedDVec3()

template<typename T >
dvec3 inviwo::LayerRAMPrecision< T >::getAsNormalizedDVec3 ( const size2_t & pos) const
overridevirtual

Implements inviwo::LayerRAM.

◆ getAsNormalizedDVec4()

template<typename T >
dvec4 inviwo::LayerRAMPrecision< T >::getAsNormalizedDVec4 ( const size2_t & pos) const
overridevirtual

Implements inviwo::LayerRAM.

◆ getData() [1/2]

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

Implements inviwo::LayerRAM.

◆ getData() [2/2]

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

Implements inviwo::LayerRAM.

◆ getDataFormat()

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

◆ getDimensions()

template<typename T >
const size2_t & inviwo::LayerRAMPrecision< T >::getDimensions ( ) const
overridevirtual

◆ getInterpolation()

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

◆ getSwizzleMask()

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

◆ getWrapping()

template<typename T >
Wrapping2D inviwo::LayerRAMPrecision< T >::getWrapping ( ) const
overridevirtual

◆ setData()

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

Implements inviwo::LayerRAM.

◆ setDimensions()

template<typename T >
void inviwo::LayerRAMPrecision< T >::setDimensions ( size2_t dimensions)
overridevirtual

Resize the representation to dimension. This is destructive, the data will not be preserved. Use copyRepresentationsTo to update the data.

Implements inviwo::LayerRepresentation.

◆ setFromDouble()

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

Implements inviwo::LayerRAM.

◆ setFromDVec2()

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

Implements inviwo::LayerRAM.

◆ setFromDVec3()

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

Implements inviwo::LayerRAM.

◆ setFromDVec4()

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

Implements inviwo::LayerRAM.

◆ setFromNormalizedDouble()

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

Implements inviwo::LayerRAM.

◆ setFromNormalizedDVec2()

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

Implements inviwo::LayerRAM.

◆ setFromNormalizedDVec3()

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

Implements inviwo::LayerRAM.

◆ setFromNormalizedDVec4()

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

Implements inviwo::LayerRAM.

◆ setInterpolation()

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

update the interpolation for sampling layer Needs to be overloaded by child classes.

Parameters
interpolationnew interpolation type

Implements inviwo::LayerRepresentation.

◆ setSwizzleMask()

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

update the swizzle mask of the channels for sampling color layers Needs to be overloaded by child classes.

Parameters
masknew swizzle mask

Implements inviwo::LayerRepresentation.

◆ setWrapping()

template<typename T >
void inviwo::LayerRAMPrecision< T >::setWrapping ( const Wrapping2D & wrapping)
overridevirtual

Update the wrapping type of the layer Needs to be overloaded by child classes.

Parameters
wrappingnew wrapping type

Implements inviwo::LayerRepresentation.

◆ updateResource()

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

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