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

Public Member Functions

 LayerDisk (size2_t dimensions, const DataFormatBase *format, LayerType type=LayerConfig::defaultType, const SwizzleMask &swizzleMask=LayerConfig::defaultSwizzleMask, InterpolationType interpolation=LayerConfig::defaultInterpolation, const Wrapping2D &wrap=LayerConfig::defaultWrapping)
 
 LayerDisk (const std::filesystem::path &url, size2_t dimensions, const DataFormatBase *format, LayerType type=LayerConfig::defaultType, const SwizzleMask &swizzleMask=LayerConfig::defaultSwizzleMask, InterpolationType interpolation=LayerConfig::defaultInterpolation, const Wrapping2D &wrap=LayerConfig::defaultWrapping)
 
 LayerDisk (const LayerReprConfig &config, const std::filesystem::path &path={})
 
 LayerDisk (const LayerDisk &rhs)=default
 
LayerDiskoperator= (const LayerDisk &that)=default
 
virtual LayerDiskclone () const override
 
virtual const DataFormatBasegetDataFormat () 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.
 
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.
 
virtual SwizzleMask getSwizzleMask () const override
 
virtual void setInterpolation (InterpolationType interpolation) override
 update the interpolation for sampling layer Needs to be overloaded by child classes.
 
virtual InterpolationType getInterpolation () const override
 
virtual void setWrapping (const Wrapping2D &wrapping) override
 Update the wrapping type of the layer Needs to be overloaded by child classes.
 
virtual Wrapping2D getWrapping () const override
 
- Public Member Functions inherited from inviwo::LayerRepresentation
LayerType getLayerType () const
 
std::string_view getDataFormatString () const
 
DataFormatId getDataFormatId () const
 
LayerReprConfig config () const
 
- Public Member Functions inherited from inviwo::DataRepresentation< Layer >
void setOwner (const Layer *owner)
 
const LayergetOwner () const
 
bool isValid () const
 
void setValid (bool valid)
 
virtual void updateResource (const ResourceMeta &) const
 
- Public Member Functions inherited from inviwo::DiskRepresentation< LayerRepresentation, LayerDisk >
 DiskRepresentation (const std::filesystem::path &srcFile, DiskRepresentationLoader< LayerRepresentation > *loader=nullptr)
 
 DiskRepresentation (const DiskRepresentation &rhs)=default
 
DiskRepresentationoperator= (const DiskRepresentation &that)=default
 
const std::filesystem::path & 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
 
- Protected Member Functions inherited from inviwo::LayerRepresentation
 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 inherited from inviwo::LayerRepresentation
LayerType layerType_
 
- Protected Attributes inherited from inviwo::DataRepresentation< Layer >
bool isValid_
 
const Layerowner_
 

Member Function Documentation

◆ clone()

virtual LayerDisk * inviwo::LayerDisk::clone ( ) const
overridevirtual

◆ copyRepresentationsTo()

virtual bool inviwo::LayerDisk::copyRepresentationsTo ( LayerRepresentation * target) const
overridevirtual

Copy and resize the representations of this onto the target.

Implements inviwo::LayerRepresentation.

◆ getDataFormat()

virtual const DataFormatBase * inviwo::LayerDisk::getDataFormat ( ) const
overridevirtual

◆ getDimensions()

virtual const size2_t & inviwo::LayerDisk::getDimensions ( ) const
overridevirtual

◆ getInterpolation()

virtual InterpolationType inviwo::LayerDisk::getInterpolation ( ) const
overridevirtual

◆ getSwizzleMask()

virtual SwizzleMask inviwo::LayerDisk::getSwizzleMask ( ) const
overridevirtual

◆ getTypeIndex()

virtual std::type_index inviwo::LayerDisk::getTypeIndex ( ) const
finaloverridevirtual

◆ getWrapping()

virtual Wrapping2D inviwo::LayerDisk::getWrapping ( ) const
overridevirtual

◆ setInterpolation()

virtual void inviwo::LayerDisk::setInterpolation ( InterpolationType interpolation)
overridevirtual

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

Parameters
interpolationnew interpolation type

Implements inviwo::LayerRepresentation.

◆ setSwizzleMask()

virtual 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.

◆ setWrapping()

virtual void inviwo::LayerDisk::setWrapping ( const Wrapping2D & wrapping)
overridevirtual

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

Parameters
wrappingnew wrapping type

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 file: