Ptex
|
Triangle filter kernel iterator (in texel coords) More...
#include <PtexTriangleKernel.h>
Public Member Functions | |
void | apply (float *dst, void *data, DataType dt, int nChan, int nTxChan) |
void | applyConst (float *dst, void *data, DataType dt, int nChan) |
Public Attributes | |
int | rowlen |
float | u |
float | v |
int | u1 |
int | v1 |
int | w1 |
int | u2 |
int | v2 |
int | w2 |
float | A |
float | B |
float | C |
bool | valid |
float | wscale |
float | weight |
Private Types | |
typedef void(* | ApplyFn) (PtexTriangleKernelIter &k, float *dst, void *data, int nChan, int nTxChan) |
Static Private Attributes | |
static ApplyFn | applyFunctions [40] |
Triangle filter kernel iterator (in texel coords)
Definition at line 54 of file PtexTriangleKernel.h.
|
private |
Definition at line 76 of file PtexTriangleKernel.h.
|
inline |
Definition at line 65 of file PtexTriangleKernel.h.
References applyFunctions.
Referenced by PtexTriangleFilter::applyIter().
void PtexTriangleKernelIter::applyConst | ( | float * | dst, |
void * | data, | ||
DataType | dt, | ||
int | nChan | ||
) |
Definition at line 153 of file PtexTriangleKernel.cpp.
References A, PtexUtils::applyConst(), B, C, PTEX_NAMESPACE_BEGIN::gaussian(), PtexUtils::max(), PtexUtils::min(), rowlen, u, u1, u2, v, v1, v2, w1, w2, weight, and wscale.
Referenced by PtexTriangleFilter::applyIter().
float PtexTriangleKernelIter::A |
Definition at line 60 of file PtexTriangleKernel.h.
Referenced by PTEX_NAMESPACE_BEGIN::Apply(), applyConst(), PTEX_NAMESPACE_BEGIN::ApplyN(), PTEX_NAMESPACE_BEGIN::ApplyS(), and PtexTriangleKernel::getIterators().
|
staticprivate |
Definition at line 77 of file PtexTriangleKernel.h.
Referenced by apply().
float PtexTriangleKernelIter::B |
Definition at line 60 of file PtexTriangleKernel.h.
Referenced by PTEX_NAMESPACE_BEGIN::Apply(), applyConst(), PTEX_NAMESPACE_BEGIN::ApplyN(), PTEX_NAMESPACE_BEGIN::ApplyS(), and PtexTriangleKernel::getIterators().
float PtexTriangleKernelIter::C |
Definition at line 60 of file PtexTriangleKernel.h.
Referenced by PTEX_NAMESPACE_BEGIN::Apply(), applyConst(), PTEX_NAMESPACE_BEGIN::ApplyN(), PTEX_NAMESPACE_BEGIN::ApplyS(), and PtexTriangleKernel::getIterators().
int PtexTriangleKernelIter::rowlen |
Definition at line 56 of file PtexTriangleKernel.h.
Referenced by PTEX_NAMESPACE_BEGIN::Apply(), applyConst(), PtexTriangleFilter::applyIter(), PTEX_NAMESPACE_BEGIN::ApplyN(), PTEX_NAMESPACE_BEGIN::ApplyS(), and PtexTriangleKernel::getIterators().
float PtexTriangleKernelIter::u |
Definition at line 57 of file PtexTriangleKernel.h.
Referenced by PTEX_NAMESPACE_BEGIN::Apply(), applyConst(), PtexTriangleFilter::applyIter(), PTEX_NAMESPACE_BEGIN::ApplyN(), PTEX_NAMESPACE_BEGIN::ApplyS(), and PtexTriangleKernel::getIterators().
int PtexTriangleKernelIter::u1 |
Definition at line 58 of file PtexTriangleKernel.h.
Referenced by PTEX_NAMESPACE_BEGIN::Apply(), applyConst(), PtexTriangleFilter::applyIter(), PTEX_NAMESPACE_BEGIN::ApplyN(), PTEX_NAMESPACE_BEGIN::ApplyS(), and PtexTriangleKernel::getIterators().
int PtexTriangleKernelIter::u2 |
Definition at line 59 of file PtexTriangleKernel.h.
Referenced by PTEX_NAMESPACE_BEGIN::Apply(), applyConst(), PtexTriangleFilter::applyIter(), PTEX_NAMESPACE_BEGIN::ApplyN(), PTEX_NAMESPACE_BEGIN::ApplyS(), and PtexTriangleKernel::getIterators().
float PtexTriangleKernelIter::v |
Definition at line 57 of file PtexTriangleKernel.h.
Referenced by PTEX_NAMESPACE_BEGIN::Apply(), applyConst(), PtexTriangleFilter::applyIter(), PTEX_NAMESPACE_BEGIN::ApplyN(), PTEX_NAMESPACE_BEGIN::ApplyS(), and PtexTriangleKernel::getIterators().
int PtexTriangleKernelIter::v1 |
Definition at line 58 of file PtexTriangleKernel.h.
Referenced by PTEX_NAMESPACE_BEGIN::Apply(), applyConst(), PtexTriangleFilter::applyIter(), PTEX_NAMESPACE_BEGIN::ApplyN(), PTEX_NAMESPACE_BEGIN::ApplyS(), and PtexTriangleKernel::getIterators().
int PtexTriangleKernelIter::v2 |
Definition at line 59 of file PtexTriangleKernel.h.
Referenced by PTEX_NAMESPACE_BEGIN::Apply(), applyConst(), PtexTriangleFilter::applyIter(), PTEX_NAMESPACE_BEGIN::ApplyN(), PTEX_NAMESPACE_BEGIN::ApplyS(), and PtexTriangleKernel::getIterators().
bool PtexTriangleKernelIter::valid |
Definition at line 61 of file PtexTriangleKernel.h.
Referenced by PtexTriangleFilter::apply(), and PtexTriangleKernel::getIterators().
int PtexTriangleKernelIter::w1 |
Definition at line 58 of file PtexTriangleKernel.h.
Referenced by PTEX_NAMESPACE_BEGIN::Apply(), applyConst(), PtexTriangleFilter::applyIter(), PTEX_NAMESPACE_BEGIN::ApplyN(), PTEX_NAMESPACE_BEGIN::ApplyS(), and PtexTriangleKernel::getIterators().
int PtexTriangleKernelIter::w2 |
Definition at line 59 of file PtexTriangleKernel.h.
Referenced by PTEX_NAMESPACE_BEGIN::Apply(), applyConst(), PtexTriangleFilter::applyIter(), PTEX_NAMESPACE_BEGIN::ApplyN(), PTEX_NAMESPACE_BEGIN::ApplyS(), and PtexTriangleKernel::getIterators().
float PtexTriangleKernelIter::weight |
Definition at line 63 of file PtexTriangleKernel.h.
Referenced by PTEX_NAMESPACE_BEGIN::Apply(), applyConst(), PtexTriangleFilter::applyIter(), PTEX_NAMESPACE_BEGIN::ApplyN(), PTEX_NAMESPACE_BEGIN::ApplyS(), and PtexTriangleKernel::getIterators().
float PtexTriangleKernelIter::wscale |
Definition at line 62 of file PtexTriangleKernel.h.
Referenced by PTEX_NAMESPACE_BEGIN::Apply(), applyConst(), PTEX_NAMESPACE_BEGIN::ApplyN(), PTEX_NAMESPACE_BEGIN::ApplyS(), and PtexTriangleKernel::getIterators().