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

Public Member Functions

 ImageGL (const ImageGL &rhs)
 
virtual ImageGL * clone () const override
 
void reAttachAllLayers (ImageType type=ImageType::AllLayers)
 
void activateBuffer (ImageType type=ImageType::AllLayers)
 
void deactivateBuffer ()
 
virtual size2_t getDimensions () const override
 
virtual bool copyRepresentationsTo (ImageRepresentation *target) const override
 
virtual size_t priority () const override
 
bool copyRepresentationsTo (ImageGL *target) const
 
bool updateFrom (const ImageGL *)
 
FrameBufferObject * getFBO ()
 
const FrameBufferObject * getFBO () const
 
LayerGL * getLayerGL (LayerType, size_t idx=0)
 
const LayerGL * getLayerGL (LayerType, size_t idx=0) const
 
LayerGL * getColorLayerGL (size_t idx=0)
 
LayerGL * getDepthLayerGL ()
 
LayerGL * getPickingLayerGL ()
 
const LayerGL * getColorLayerGL (size_t idx=0) const
 
const LayerGL * getDepthLayerGL () const
 
const LayerGL * getPickingLayerGL () const
 
size_t getNumberOfColorLayers () const
 
GLenum getPickingAttachmentID () const
 
void updateExistingLayers () const
 
void renderImagePlaneRect () 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::ImageGL::copyRepresentationsTo ( ImageRepresentation *  target) const
overridevirtual

Copy and resize the representations of this onto the target.

Implements inviwo::ImageRepresentation.

◆ priority()

size_t inviwo::ImageGL::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::ImageGL::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: