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

Public Member Functions

 LayerRAMPrecision (size2_t dimensions=size2_t(8, 8), LayerType type=LayerType::Color, const SwizzleMask &swizzleMask=swizzlemasks::rgba)
 
 LayerRAMPrecision (T *data, size2_t dimensions, LayerType type=LayerType::Color, const SwizzleMask &swizzleMask=swizzlemasks::rgba)
 
 LayerRAMPrecision (const LayerRAMPrecision< T > &rhs)
 
LayerRAMPrecision< T > & operator= (const LayerRAMPrecision< T > &that)
 
virtual LayerRAMPrecision< T > * clone () const override
 
T * getDataTyped ()
 
const T * getDataTyped () 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 the layer Needs to be overloaded by child classes. More...
 
virtual SwizzleMask getSwizzleMask () 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
 
- Public Member Functions inherited from inviwo::LayerRAM
 LayerRAM (LayerType type=LayerType::Color, const DataFormatBase *format=DataVec4UInt8::get())
 
 LayerRAM (const LayerRAM &rhs)=default
 
LayerRAMoperator= (const LayerRAM &that)=default
 
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
 
- Public Member Functions inherited from inviwo::DataRepresentation< Layer >
const DataFormatBasegetDataFormat () const
 
std::string getDataFormatString () const
 
DataFormatId getDataFormatId () const
 
void setOwner (Layer *owner)
 
LayergetOwner ()
 
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::LayerRepresentation
 LayerRepresentation (LayerType type=LayerType::Color, const DataFormatBase *format=DataVec4UInt8::get())
 
 LayerRepresentation (const LayerRepresentation &rhs)=default
 
LayerRepresentationoperator= (const LayerRepresentation &that)=default
 
void updateBaseMetaFromRepresentation ()
 
- Protected Member Functions inherited from inviwo::DataRepresentation< Layer >
 DataRepresentation (const DataFormatBase *format)
 
 DataRepresentation (const DataRepresentation &rhs)=default
 
DataRepresentationoperator= (const DataRepresentation &that)=default
 
void setDataFormat (const DataFormatBase *format)
 
- Protected Attributes inherited from inviwo::LayerRepresentation
LayerType layerType_
 
- Protected Attributes inherited from inviwo::DataRepresentation< Layer >
bool isValid_
 
const DataFormatBasedataFormatBase_
 
Layerowner_
 

Member Function Documentation

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

◆ setSwizzleMask()

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

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

Parameters
masknew swizzle mask

Implements inviwo::LayerRepresentation.


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