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

Public Member Functions

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

Protected Member Functions

 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

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: