OpenEnroth 73e68f7
Loading...
Searching...
No Matches
Public Member Functions | Protected Attributes | List of all members
detail::ImageBase< T, Storage > Class Template Reference

#include <Image.h>

Inheritance diagram for detail::ImageBase< T, Storage >:
Image< Color > Image< uint8_t > Image< int16_t > Image< std::array< Vec3, 2 > >

Public Member Functions

std::span< T > pixels ()
 
std::span< const T > pixels () const
 
ssize_t width () const
 
ssize_t height () const
 
Sizei size () const
 
std::span< T > operator[] (ssize_t y)
 
std::span< const T > operator[] (ssize_t y) const
 
T & operator[] (Pointi point)
 
const T & operator[] (Pointi point) const
 
 operator bool () const
 
void reset ()
 
void fill (const T &color)
 

Protected Attributes

ssize_t _width = 0
 
ssize_t _height = 0
 
Storage _pixels
 

Member Function Documentation

◆ fill()

template<class T , class Storage >
void detail::ImageBase< T, Storage >::fill ( const T &  color)
inline

◆ height()

template<class T , class Storage >
ssize_t detail::ImageBase< T, Storage >::height ( ) const
inline

◆ operator bool()

template<class T , class Storage >
detail::ImageBase< T, Storage >::operator bool ( ) const
inlineexplicit

◆ operator[]() [1/4]

template<class T , class Storage >
T & detail::ImageBase< T, Storage >::operator[] ( Pointi  point)
inline

◆ operator[]() [2/4]

template<class T , class Storage >
const T & detail::ImageBase< T, Storage >::operator[] ( Pointi  point) const
inline

◆ operator[]() [3/4]

template<class T , class Storage >
std::span< T > detail::ImageBase< T, Storage >::operator[] ( ssize_t  y)
inline

◆ operator[]() [4/4]

template<class T , class Storage >
std::span< const T > detail::ImageBase< T, Storage >::operator[] ( ssize_t  y) const
inline

◆ pixels() [1/2]

template<class T , class Storage >
std::span< T > detail::ImageBase< T, Storage >::pixels ( )
inline

◆ pixels() [2/2]

template<class T , class Storage >
std::span< const T > detail::ImageBase< T, Storage >::pixels ( ) const
inline

◆ reset()

template<class T , class Storage >
void detail::ImageBase< T, Storage >::reset ( )
inline

◆ size()

template<class T , class Storage >
Sizei detail::ImageBase< T, Storage >::size ( ) const
inline

◆ width()

template<class T , class Storage >
ssize_t detail::ImageBase< T, Storage >::width ( ) const
inline

Member Data Documentation

◆ _height

template<class T , class Storage >
ssize_t detail::ImageBase< T, Storage >::_height = 0
protected

◆ _pixels

template<class T , class Storage >
Storage detail::ImageBase< T, Storage >::_pixels
protected

◆ _width

template<class T , class Storage >
ssize_t detail::ImageBase< T, Storage >::_width = 0
protected

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