Inviwo  0.9.10.1
Inviwo documentation
inviwo::LayerGL Class Reference
+ Inheritance diagram for inviwo::LayerGL:

Public Member Functions

 LayerGL (size2_t dimensions=size2_t(256, 256), LayerType type=LayerType::Color, const DataFormatBase *format=DataVec4UInt8::get(), std::shared_ptr< Texture2D > tex=std::shared_ptr< Texture2D >(nullptr), const SwizzleMask &swizzleMask=swizzlemasks::rgba)
 
 LayerGL (const LayerGL &rhs)
 
LayerGLoperator= (const LayerGL &rhs)
 
virtual LayerGLclone () const override
 
virtual void setDimensions (size2_t dimensions) override
 
virtual 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
 
void bindTexture (GLenum texUnit) const
 
void bindTexture (const TextureUnit &texUnit) const
 
void unbindTexture () const
 
virtual bool copyRepresentationsTo (LayerRepresentation *) const override
 
std::shared_ptr< Texture2DgetTexture () const
 
virtual std::type_index getTypeIndex () const override final
 
- 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

- Public Types inherited from inviwo::DataRepresentation< Layer >
using ReprOwner = Layer
 
- 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

◆ copyRepresentationsTo()

bool inviwo::LayerGL::copyRepresentationsTo ( LayerRepresentation ) const
overridevirtual

Copy and resize the representations of this onto the target.

Implements inviwo::LayerRepresentation.

◆ setDimensions()

void inviwo::LayerGL::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. Needs to be overloaded by child classes.

Implements inviwo::LayerRepresentation.

◆ setSwizzleMask()

void inviwo::LayerGL::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: