28 static ossimTrace traceExec (
"ossimImageSource:exec");
29 static ossimTrace traceDebug (
"ossimImageSource:debug");
31 static const int DEFAULT_KERNEL_SIZE = 18;
39 theGridRemapEngine (0),
40 theKernelSize (DEFAULT_KERNEL_SIZE),
41 theViewPointIsValid (false)
43 static const char MODULE[] =
"ossimAtbPointSource Default Constructor";
44 if (traceExec())
CLOG <<
"entering..." << endl;
46 if (traceExec())
CLOG <<
"returning..." << endl;
56 : theRemapSource (source),
57 theGridRemapEngine (source->getRemapEngine()),
58 theKernelSize (DEFAULT_KERNEL_SIZE),
59 theViewPointIsValid (false)
61 static const char MODULE[] =
"ossimAtbPointSource Default Constructor";
62 if (traceExec())
CLOG <<
"entering..." << endl;
66 if (traceExec())
CLOG <<
"returning..." << endl;
86 static const char MODULE[] =
"ossimAtbPointSource::setRemapSource()";
87 if (traceExec())
CLOG <<
"entering..." << endl;
96 if (traceExec())
CLOG <<
"returning..." << endl;
109 static const char MODULE[] =
"ossimAtbPointSource::setViewPoint()";
110 if (traceExec())
CLOG <<
"entering..." << endl;
120 if (traceExec())
CLOG <<
"returning..." << endl;
134 static const char MODULE[] =
"ossimAtbPointSource::getSourceValue()";
135 if (traceExec())
CLOG <<
"entering..." << endl;
142 CLOG <<
"ERROR: This object was not properly initialized before attempting" 143 <<
" to compute target value! Returning usassigned vector..."<<endl;
152 ossimIpt kernel_lr (kernel_ul.
x + kernel_2d_size.
x - 1,
153 kernel_ul.
y + kernel_2d_size.
y - 1);
154 ossimIrect kernel_rect (kernel_ul, kernel_lr);
167 if (traceExec())
CLOG <<
"returning..." << endl;
181 static const char MODULE[] =
"ossimAtbPointSource::setKernelSize()";
182 if (traceExec())
CLOG <<
"entering..." << endl;
186 if (traceExec())
CLOG <<
"returning..." << endl;
virtual ossimIrect getBoundingRect(ossim_uint32 resLevel=0) const
This will return the bounding rect of the source.
virtual ossimRefPtr< ossimImageData > getTile(const ossimIrect &origin, ossim_uint32 resLevel=0)
ossimGridRemapEngine * getRemapEngine()
ossimRefPtr< ossimGridRemapEngine > theGridRemapEngine
void setRemapSource(ossimGridRemapSource *image_source)
ossimRefPtr< ossimGridRemapSource > theRemapSource
void getSourceValue(void *value)
void setViewPoint(const ossimDpt &view_point)
void setKernelSize(int side_size)
virtual ~ossimAtbPointSource()
virtual void computeSourceValue(ossimRefPtr< ossimImageData > &source, void *result)=0
bool pointWithin(const ossimIpt &pt) const