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

Public Member Functions

 LayerDisk (size2_t dimensions, const DataFormatBase *format, LayerType type=LayerType::Color, const SwizzleMask &swizzleMask=swizzlemasks::rgba)
 
 LayerDisk (std::string url, size2_t dimensions, const DataFormatBase *format, LayerType type=LayerType::Color, const SwizzleMask &swizzleMask=swizzlemasks::rgba)
 
 LayerDisk (const LayerDisk &rhs)
 
LayerDiskoperator= (const LayerDisk &that)
 
virtual LayerDiskclone () const override
 
virtual const size2_t & getDimensions () const override
 
virtual bool copyRepresentationsTo (LayerRepresentation *target) const override
 
void updateDataFormat (const DataFormatBase *format)
 Updates the data format retrieved during loading. More...
 
virtual std::type_index getTypeIndex () const override final
 
virtual void setSwizzleMask (const SwizzleMask &mask) override
 update the swizzle mask of the channels for sampling color layers Needs to be overloaded by child classes. More...
 
virtual SwizzleMask getSwizzleMask () const override
 
- 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)
 
- Public Member Functions inherited from inviwo::DiskRepresentation< LayerRepresentation >
 DiskRepresentation (const std::string &srcFile, DiskRepresentationLoader< LayerRepresentation > *loader=nullptr)
 
 DiskRepresentation (const DiskRepresentation &rhs)=default
 
DiskRepresentationoperator= (const DiskRepresentation &that)=default
 
const std::string & getSourceFile () const
 
bool hasSourceFile () const
 
void setLoader (DiskRepresentationLoader< LayerRepresentation > *loader)
 
std::shared_ptr< LayerRepresentationcreateRepresentation () const
 
void updateRepresentation (std::shared_ptr< LayerRepresentation > dest) const
 

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::LayerDisk::copyRepresentationsTo ( LayerRepresentation target) const
overridevirtual

Copy and resize the representations of this onto the target.

Implements inviwo::LayerRepresentation.

◆ setSwizzleMask()

void inviwo::LayerDisk::setSwizzleMask ( const SwizzleMask &  mask)
overridevirtual

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

Parameters
masknew swizzle mask

Implements inviwo::LayerRepresentation.

◆ updateDataFormat()

void inviwo::LayerDisk::updateDataFormat ( const DataFormatBase format)

Updates the data format retrieved during loading.

Parameters
formatthe new dataformat

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