40 float width(
void)
const {
return m_w; }
43 virtual float operator()(
float x)
const = 0;
60 static int num_filters();
62 static void get_filterdesc(
int filternum,
FilterDesc* filterdesc);
63 static const FilterDesc& get_filterdesc(
int filternum);
83 float width(
void)
const {
return m_w; }
85 float height(
void)
const {
return m_h; }
93 virtual float operator()(
float x,
float y)
const = 0;
97 virtual float xfilt(
float x)
const {
return (*
this)(
x, 0.0f); }
101 virtual float yfilt(
float y)
const {
return (*
this)(0.0f,
y); }
115 static void destroy(
Filter2D* filt);
118 static int num_filters();
120 static void get_filterdesc(
int filternum,
FilterDesc* filterdesc);
121 static const FilterDesc& get_filterdesc(
int filternum);
bool fixedwidth
Is the width the only one that makes sense?
float height(void) const
Get the height of the filter.
int dim
dimensionality: 1 or 2
bool scalable
Is it scalable (otherwise, the width is a window)?
GLint GLsizei GLsizei height
bool separable
Is it separable? (only matters if dim==2)
virtual bool separable() const
float width(void) const
Get the width of the filter.
float width(void) const
Get the width of the filter.
virtual float yfilt(float y) const
const char * name
name of the filter
float width
Recommended width or window.
virtual float xfilt(float x) const
Filter2D(float width, float height)
#define OIIO_NAMESPACE_END
#define OIIO_NAMESPACE_BEGIN