Inviwo 0.9.12-pre
Inviwo documentation
Loading...
Searching...
No Matches
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
 
- Public Member Functions inherited from inviwo::DataGroupRepresentation< Image >

Protected Attributes

Imageowner_ = nullptr
 

Additional Inherited Members

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

Member Function Documentation

◆ clone()

virtual ImageRepresentation * inviwo::ImageRepresentation::clone ( ) const
overridepure virtual

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

◆ getOwner() [1/2]

virtual const Image * inviwo::ImageRepresentation::getOwner ( ) const
overridevirtual

◆ getOwner() [2/2]

virtual Image * inviwo::ImageRepresentation::getOwner ( )
overridevirtual

◆ getTypeIndex()

virtual std::type_index inviwo::ImageRepresentation::getTypeIndex ( ) const
overridepure virtual

◆ isValid()

virtual bool inviwo::ImageRepresentation::isValid ( ) const
overridepure virtual

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

◆ setOwner()

virtual void inviwo::ImageRepresentation::setOwner ( Image * image)
overridevirtual

◆ update()

virtual void inviwo::ImageRepresentation::update ( bool )
overridepure virtual

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