ImageAccessor< ChannelType, 1 > Class Template Reference

ImageAccessor< ChannelType, 1 > Class Template Reference

#include <image.h>

Class Description

template<class ChannelType>
class mudbox::ImageAccessor< ChannelType, 1 >

Definition at line 2590 of file image.h.

+ Inheritance diagram for ImageAccessor< ChannelType, 1 >:

Public Member Functions

 ImageAccessor (Image *parent)
 
Color ColorAt (u_int X, u_int Y) const
 Get the value at a given coordinate. More...
 
- Public Member Functions inherited from ImageAccessorBase< ChannelType, 1 >
 ImageAccessorBase (Image *parent)
 
u_int Width () const
 
u_int Height () const
 
u_int ChannelCount () const
 
void SetValueAt (u_int X, u_int Y, u_int Ch, float fVal)
 Set value for a specified texel. More...
 
float ValueAt (u_int X, u_int Y, u_int Ch) const
 Get the value at a given coordinate. More...
 
void SetColorAt (u_int X, u_int Y, const Color &cColor)
 Set value for a specified texel. More...
 
voidAddrAt (u_int X, u_int Y, u_int Ch)
 

Constructor & Destructor Documentation

ImageAccessor ( Image parent)
inline

Definition at line 2593 of file image.h.

2593  : ImageAccessorBase<ChannelType, 1>(parent)
2594  {
2595  }

Member Function Documentation

Color ColorAt ( u_int  X,
u_int  Y 
) const
inline

Get the value at a given coordinate.

Definition at line 2598 of file image.h.

2599  {
2600  return Color(ImageAccessorBase<ChannelType, 1>::ValueAt(X,Y,0), 0, 0, 1);
2601  }
float ValueAt(u_int X, u_int Y, u_int Ch) const
Get the value at a given coordinate.

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