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

Public Member Functions

 ImageRAM (const ImageRAM &rhs)
 
ImageRAM & operator= (const ImageRAM &that)
 
virtual ImageRAM * clone () const override
 
virtual size2_t getDimensions () const override
 
virtual bool copyRepresentationsTo (ImageRepresentation *target) const override
 
virtual size_t priority () const override
 
LayerRAM * getColorLayerRAM (size_t idx=0)
 
LayerRAM * getDepthLayerRAM ()
 
LayerRAM * getPickingLayerRAM ()
 
size_t getNumberOfColorLayers () const
 
const LayerRAM * getColorLayerRAM (size_t idx=0) const
 
const LayerRAM * getDepthLayerRAM () const
 
const LayerRAM * getPickingLayerRAM () const
 
virtual dvec4 readPixel (size2_t pos, LayerType layer, size_t index=0) const override
 
virtual std::type_index getTypeIndex () const override final
 
virtual bool isValid () const override
 
virtual void update (bool editable) override
 
- Public Member Functions inherited from inviwo::ImageRepresentation
 ImageRepresentation (const ImageRepresentation &rhs)=default
 
ImageRepresentation & operator= (const ImageRepresentation &that)=default
 
virtual void setOwner (Image *image) override
 
virtual Image * getOwner () override
 
virtual const Image * getOwner () const override
 

Additional Inherited Members

- Protected Member Functions inherited from inviwo::DataGroupRepresentation< Image >
 DataGroupRepresentation (const DataGroupRepresentation &rhs)=default
 
DataGroupRepresentation & operator= (const DataGroupRepresentation &that)=default
 
- Protected Attributes inherited from inviwo::ImageRepresentation
Image * owner_
 

Member Function Documentation

◆ copyRepresentationsTo()

bool inviwo::ImageRAM::copyRepresentationsTo ( ImageRepresentation *  target) const
overridevirtual

Copy and resize the representations of this onto the target.

Implements inviwo::ImageRepresentation.

◆ priority()

size_t inviwo::ImageRAM::priority ( ) const
overridevirtual

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.

Implements inviwo::ImageRepresentation.

◆ readPixel()

dvec4 inviwo::ImageRAM::readPixel ( size2_t  pos,
LayerType  layer,
size_t  index = 0 
) const
overridevirtual

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

Implements inviwo::ImageRepresentation.


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