reference

This documentation is automatically generated from the openFrameworks source code using doxygen and refers to the most recent release, version 0.12.0.

ofAbstractImage Class Reference

An abstract class representing an image. More...

#include <ofGLBaseTypes.h>

Inheritance diagram for ofAbstractImage:
ofBaseDraws ofBaseHasTexture ofBaseImage_< PixelType > ofBaseImage_< unsigned char > ofBaseImage_< T > ofImage_< PixelType > ofImage_< unsigned char >

Public Member Functions

virtual ~ofAbstractImage ()
 Destroy the ofAbstractImage.
 
- Public Member Functions inherited from ofBaseDraws
virtual ~ofBaseDraws ()
 Destroy the abstract object.
 
virtual void draw (float x, float y) const
 Draw at a position at the native size.
 
virtual void draw (float x, float y, float w, float h) const =0
 Draw at a position with the specified size.
 
virtual void draw (const glm::vec2 &point) const
 Draw at a position at the native size.
 
virtual void draw (const ofRectangle &rect) const
 Draw at a position and size specified by a rectangle.
 
virtual void draw (const glm::vec2 &point, float w, float h) const
 Draw at a position.
 
virtual float getHeight () const =0
 Get the height.
 
virtual float getWidth () const =0
 Get the width.
 
virtual void setAnchorPercent (float xPct, float yPct)
 Set the anchor point the item is drawn around as a percentage.
 
virtual void setAnchorPoint (float x, float y)
 Set the anchor point the item is drawn around in pixels.
 
virtual void resetAnchor ()
 Reset the anchor point to (0, 0).
 
- Public Member Functions inherited from ofBaseHasTexture
virtual ~ofBaseHasTexture ()
 Destroy the ofBaseHasTexture.
 
virtual ofTexturegetTexture ()=0
 
virtual const ofTexturegetTexture () const =0
 
virtual void setUseTexture (bool bUseTex)=0
 Enable or disable internal ofTexture use.
 
virtual bool isUsingTexture () const =0
 

Detailed Description

An abstract class representing an image.

This empty class primarily exists to allow templated subclasses of different types to be stored as raw or shared pointers in collections such as std::vector.

Example:

std::vector<ofAbstractImage*> imageProviders;
ofImage image;
ofFloatImage floatImage;
ofShortImage shortImage;
// ...
imageProviders.push_back(&image);
imageProviders.push_back(&floatImage);
imageProviders.push_back(&shortImage);

Constructor & Destructor Documentation

◆ ~ofAbstractImage()

virtual ofAbstractImage::~ofAbstractImage ( )
inlinevirtual

Destroy the ofAbstractImage.


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