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

Public Member Functions

 ImageRepresentation (const ImageRepresentation &rhs)=default
 
ImageRepresentationoperator= (const ImageRepresentation &that)=default
 
virtual ImageRepresentationclone () const override=0
 
virtual size2_t getDimensions () const =0
 
virtual bool copyRepresentationsTo (ImageRepresentation *target) const =0
 
virtual size_t priority () const =0
 
virtual dvec4 readPixel (size2_t pos, LayerType layer, size_t index=0) const =0
 
virtual std::type_index getTypeIndex () const override=0
 
virtual void setOwner (Image *image) override
 
virtual ImagegetOwner () override
 
virtual const ImagegetOwner () const override
 
virtual bool isValid () const override=0
 
virtual void update (bool) override=0
 

Protected Attributes

Imageowner_
 

Additional Inherited Members

- Protected Member Functions inherited from inviwo::DataGroupRepresentation< Image >
 DataGroupRepresentation (const DataGroupRepresentation &rhs)=default
 
DataGroupRepresentationoperator= (const DataGroupRepresentation &that)=default
 

Member Function Documentation

◆ copyRepresentationsTo()

virtual bool inviwo::ImageRepresentation::copyRepresentationsTo ( ImageRepresentation target) const
pure virtual

Copy and resize the representations of this onto the target.

Implemented in inviwo::ImageGL, and inviwo::ImageRAM.

◆ priority()

virtual size_t inviwo::ImageRepresentation::priority ( ) const
pure virtual

Returns a number representing the general efficiency of the representation. Larger value means more efficient representation. Used for selection which representation to operate on when resizing for example.

Implemented in inviwo::ImageGL, and inviwo::ImageRAM.

◆ readPixel()

virtual dvec4 inviwo::ImageRepresentation::readPixel ( size2_t  pos,
LayerType  layer,
size_t  index = 0 
) const
pure virtual

Read a single pixel value out of the specified layer at pos. Should only be used to read single values not entire images.

Implemented in inviwo::ImageGL, and inviwo::ImageRAM.


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