reference

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

ofBaseHasPixels_< T > Class Template Referenceabstract

A base class represeting an object that has pixels. More...

#include <ofGraphicsBaseTypes.h>

Inheritance diagram for ofBaseHasPixels_< T >:
ofAbstractHasPixels ofBaseImage_< PixelType > ofBaseImage_< unsigned char > ofBaseImage_< T > ofImage_< PixelType > ofImage_< unsigned char >

Public Member Functions

virtual ~ofBaseHasPixels_ ()
 Destroy the ofAbstractHasPixels.
 
virtual ofPixels_< T > & getPixels ()=0
 Get a reference to the underlying ofPixels.
 
virtual const ofPixels_< T > & getPixels () const =0
 Get a const reference to the underlying ofPixels.
 
- Public Member Functions inherited from ofAbstractHasPixels
virtual ~ofAbstractHasPixels ()
 Destroy the ofAbstractHasPixels.
 

Detailed Description

template<typename T>
class ofBaseHasPixels_< T >

A base class represeting an object that has pixels.

Template Parameters
TThe pixel data type.

Constructor & Destructor Documentation

◆ ~ofBaseHasPixels_()

template<typename T >
virtual ofBaseHasPixels_< T >::~ofBaseHasPixels_ ( )
inlinevirtual

Destroy the ofAbstractHasPixels.

Member Function Documentation

◆ getPixels() [1/2]

template<typename T >
virtual const ofPixels_< T > & ofBaseHasPixels_< T >::getPixels ( ) const
pure virtual

Get a const reference to the underlying ofPixels.

Returns
a const reference the underlying ofPixels.

Implemented in ofImage_< PixelType >, ofImage_< unsigned char >, ofAVFoundationPlayer, ofDirectShowGrabber, ofDirectShowPlayer, ofGstVideoUtils, ofGstVideoGrabber, ofGstVideoPlayer, ofVideoGrabber, ofVideoPlayer, and ofMediaFoundationPlayer.

◆ getPixels() [2/2]

template<typename T >
virtual ofPixels_< T > & ofBaseHasPixels_< T >::getPixels ( )
pure virtual

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