Inviwo 0.9.12-pre
Inviwo documentation
Loading...
Searching...
No Matches
inviwo::LayerRepresentation Class Referenceabstract
Inheritance diagram for inviwo::LayerRepresentation:

Public Member Functions

virtual LayerRepresentation * clone () const =0
LayerReprConfig config () const
virtual bool copyRepresentationsTo (LayerRepresentation *) const =0
virtual const DataFormatBasegetDataFormat () const =0
DataFormatId getDataFormatId () const
std::string_view getDataFormatString () const
virtual const size2_t & getDimensions () const =0
virtual InterpolationType getInterpolation () const =0
LayerType getLayerType () const
virtual SwizzleMask getSwizzleMask () const =0
virtual Wrapping2D getWrapping () const =0
virtual void setDimensions (size2_t dimensions)=0
virtual void setInterpolation (InterpolationType interpolation)=0
 update the interpolation for sampling layer Needs to be overloaded by child classes.
virtual void setSwizzleMask (const SwizzleMask &mask)=0
 update the swizzle mask of the channels for sampling color layers Needs to be overloaded by child classes.
virtual void setWrapping (const Wrapping2D &wrapping)=0
 Update the wrapping type of the layer Needs to be overloaded by child classes.
Public Member Functions inherited from inviwo::DataRepresentation< Layer >
const LayergetOwner () const
virtual std::type_index getTypeIndex () const=0
bool isValid () const
void setOwner (const Layer *owner)
void setValid (bool valid)
virtual void updateResource (const ResourceMeta &) const

Protected Member Functions

 LayerRepresentation (const LayerRepresentation &rhs)=default
 LayerRepresentation (LayerType type=LayerType::Color)
LayerRepresentation & operator= (const LayerRepresentation &that)=default
Protected Member Functions inherited from inviwo::DataRepresentation< Layer >
DataRepresentation & operator= (const DataRepresentation &that)=default

Protected Attributes

LayerType layerType_
Protected Attributes inherited from inviwo::DataRepresentation< Layer >
bool isValid_
const Layerowner_

Additional Inherited Members

Public Types inherited from inviwo::DataRepresentation< Layer >
using ReprOwner

Member Function Documentation

◆ clone()

virtual LayerRepresentation * inviwo::LayerRepresentation::clone ( ) const
pure virtual

◆ copyRepresentationsTo()

virtual bool inviwo::LayerRepresentation::copyRepresentationsTo ( LayerRepresentation * ) const
pure virtual

Copy and resize the representations of this onto the target.

Implemented in inviwo::LayerDisk, inviwo::LayerGL, inviwo::LayerPy, and inviwo::LayerRAM.

◆ setDimensions()

virtual void inviwo::LayerRepresentation::setDimensions ( size2_t dimensions)
pure virtual

Resize the representation to dimension. This is destructive, the data will not be preserved. Use copyRepresentationsTo to update the data. Needs to be overloaded by child classes.

Implemented in inviwo::LayerGL, inviwo::LayerPy, inviwo::LayerRAMPrecision< T >, and inviwo::LayerRAMPrecision< vec4 >.

◆ setInterpolation()

virtual void inviwo::LayerRepresentation::setInterpolation ( InterpolationType interpolation)
pure virtual

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

Parameters
interpolationnew interpolation type

Implemented in inviwo::LayerDisk, inviwo::LayerGL, inviwo::LayerPy, inviwo::LayerRAMPrecision< T >, and inviwo::LayerRAMPrecision< vec4 >.

◆ setSwizzleMask()

virtual void inviwo::LayerRepresentation::setSwizzleMask ( const SwizzleMask & mask)
pure virtual

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

Parameters
masknew swizzle mask

Implemented in inviwo::LayerDisk, inviwo::LayerGL, inviwo::LayerPy, inviwo::LayerRAMPrecision< T >, and inviwo::LayerRAMPrecision< vec4 >.

◆ setWrapping()

virtual void inviwo::LayerRepresentation::setWrapping ( const Wrapping2D & wrapping)
pure virtual

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

Parameters
wrappingnew wrapping type

Implemented in inviwo::LayerDisk, inviwo::LayerGL, inviwo::LayerPy, inviwo::LayerRAMPrecision< T >, and inviwo::LayerRAMPrecision< vec4 >.


The documentation for this class was generated from the following file:
  • include/inviwo/core/datastructures/image/layerrepresentation.h