Public Types | Public Member Functions | Protected Attributes

OpenTissue::image::Image< T > Class Template Reference

#include <image.h>

List of all members.

Public Types

typedef T value_type

Public Member Functions

size_t width () const
size_t height () const
size_t channels () const
T & operator() (size_t x, size_t y, size_t channel)
T const & operator() (size_t x, size_t y, size_t channel) const
void * get_data ()
void const * get_data () const
 Image ()
 Image (size_t width, size_t height, size_t channels, T const *data)
 Image (size_t width, size_t height, size_t channels, std::vector< T > const &data)
 Image (size_t width, size_t height, size_t channels)
void create (size_t width, size_t height, size_t channels)
OpenTissue::texture::texture2D_pointer create_texture (size_t internal_format, bool rectangular=false, int border=0) const

Protected Attributes

size_t m_width
size_t m_height
size_t m_channels
std::vector< T > m_data

Detailed Description

template<typename T>
class OpenTissue::image::Image< T >

Image Class.


Member Typedef Documentation

template<typename T >
typedef T OpenTissue::image::Image< T >::value_type

Constructor & Destructor Documentation

template<typename T >
OpenTissue::image::Image< T >::Image (  )  [inline]
template<typename T >
OpenTissue::image::Image< T >::Image ( size_t  width,
size_t  height,
size_t  channels,
T const *  data 
) [inline]
template<typename T >
OpenTissue::image::Image< T >::Image ( size_t  width,
size_t  height,
size_t  channels,
std::vector< T > const &  data 
) [inline]
template<typename T >
OpenTissue::image::Image< T >::Image ( size_t  width,
size_t  height,
size_t  channels 
) [inline]

Member Function Documentation

template<typename T >
size_t OpenTissue::image::Image< T >::channels (  )  const [inline]
template<typename T >
void OpenTissue::image::Image< T >::create ( size_t  width,
size_t  height,
size_t  channels 
) [inline]
template<typename T >
OpenTissue::texture::texture2D_pointer OpenTissue::image::Image< T >::create_texture ( size_t  internal_format,
bool  rectangular = false,
int  border = 0 
) const [inline]
Parameters:
rectangular Set to true if a rectangular texture is wanted, default is false.
border Set border value, default is zero
template<typename T >
void const* OpenTissue::image::Image< T >::get_data (  )  const [inline]
template<typename T >
void* OpenTissue::image::Image< T >::get_data (  )  [inline]
template<typename T >
size_t OpenTissue::image::Image< T >::height (  )  const [inline]
template<typename T >
T& OpenTissue::image::Image< T >::operator() ( size_t  x,
size_t  y,
size_t  channel 
) [inline]
template<typename T >
T const& OpenTissue::image::Image< T >::operator() ( size_t  x,
size_t  y,
size_t  channel 
) const [inline]
template<typename T >
size_t OpenTissue::image::Image< T >::width (  )  const [inline]

Member Data Documentation

template<typename T >
size_t OpenTissue::image::Image< T >::m_channels [protected]
template<typename T >
std::vector<T> OpenTissue::image::Image< T >::m_data [protected]
template<typename T >
size_t OpenTissue::image::Image< T >::m_height [protected]
template<typename T >
size_t OpenTissue::image::Image< T >::m_width [protected]

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