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

Public Member Functions

 LayerPy (pybind11::array data, LayerType type=LayerConfig::defaultType, const SwizzleMask &swizzleMask=LayerConfig::defaultSwizzleMask, InterpolationType interpolation=LayerConfig::defaultInterpolation, const Wrapping2D &wrapping=LayerConfig::defaultWrapping)
 
 LayerPy (size2_t dimensions, LayerType type, const DataFormatBase *format, const SwizzleMask &swizzleMask=LayerConfig::defaultSwizzleMask, InterpolationType interpolation=LayerConfig::defaultInterpolation, const Wrapping2D &wrapping=LayerConfig::defaultWrapping)
 
 LayerPy (const LayerReprConfig &config)
 
LayerPyclone () const override
 
std::type_index getTypeIndex () const override final
 
virtual const DataFormatBasegetDataFormat () 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 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
 
virtual bool copyRepresentationsTo (LayerRepresentation *) const override
 
pybind11::array & data ()
 
const pybind11::array & data () const
 
- 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
 

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()

LayerPy * inviwo::LayerPy::clone ( ) const
overridevirtual

◆ copyRepresentationsTo()

virtual bool inviwo::LayerPy::copyRepresentationsTo ( LayerRepresentation * ) const
overridevirtual

Copy and resize the representations of this onto the target.

Implements inviwo::LayerRepresentation.

◆ getDataFormat()

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

◆ getDimensions()

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

◆ getInterpolation()

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

◆ getSwizzleMask()

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

◆ getTypeIndex()

std::type_index inviwo::LayerPy::getTypeIndex ( ) const
finaloverridevirtual

◆ getWrapping()

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

◆ setDimensions()

virtual void inviwo::LayerPy::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.

◆ setInterpolation()

virtual void inviwo::LayerPy::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::LayerPy::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::LayerPy::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.


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