Inviwo  0.9.10.1
Inviwo documentation
inviwo::LayerRepresentation Class Referenceabstract
+ Inheritance diagram for inviwo::LayerRepresentation:

Public Member Functions

virtual LayerRepresentationclone () const =0
 
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. More...
 
virtual SwizzleMask getSwizzleMask () const =0
 
virtual bool copyRepresentationsTo (LayerRepresentation *) const =0
 
LayerType getLayerType () const
 
- Public Member Functions inherited from inviwo::DataRepresentation< Layer >
const DataFormatBasegetDataFormat () const
 
std::string getDataFormatString () const
 
DataFormatId getDataFormatId () const
 
virtual std::type_index getTypeIndex () const=0
 
void setOwner (Layer *owner)
 
LayergetOwner ()
 
const LayergetOwner () const
 
bool isValid () const
 
void setValid (bool valid)
 

Protected Member Functions

 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

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

Additional Inherited Members

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

Member Function Documentation

◆ copyRepresentationsTo()

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

Copy and resize the representations of this onto the target.

Implemented in inviwo::LayerGL, inviwo::LayerDisk, 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::LayerRAMPrecision< T >, inviwo::LayerRAMPrecision< vec4 >, and inviwo::LayerGL.

◆ 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::LayerRAMPrecision< T >, inviwo::LayerRAMPrecision< vec4 >, and inviwo::LayerGL.


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