Commit ab4b8fea authored by Boris Yamrom's avatar Boris Yamrom
Browse files

PORT: 'static' is added to template definitions

parent baf435e7
......@@ -59,7 +59,7 @@ vtkImageArithmetic::vtkImageArithmetic()
// Description:
// This templated function executes the filter for any type of data.
template <class T>
void vtkImageArithmeticExecute(vtkImageArithmetic *self,
static void vtkImageArithmeticExecute(vtkImageArithmetic *self,
vtkImageRegion *in1Region, T *in1Ptr,
vtkImageRegion *in2Region, T *in2Ptr,
vtkImageRegion *outRegion, T *outPtr)
......
......@@ -58,7 +58,7 @@ vtkImageCast::vtkImageCast()
// Description:
// This templated function executes the filter for any type of data.
template <class IT, class OT>
void vtkImageCastExecute(vtkImageCast *self,
static void vtkImageCastExecute(vtkImageCast *self,
vtkImageRegion *inRegion, IT *inPtr,
vtkImageRegion *outRegion, OT *outPtr){
int min0, max0, min1, max1;
......@@ -95,7 +95,7 @@ void vtkImageCastExecute(vtkImageCast *self,
//----------------------------------------------------------------------------
template <class T>
void vtkImageCastExecute(vtkImageCast *self,
static void vtkImageCastExecute(vtkImageCast *self,
vtkImageRegion *inRegion, T *inPtr,
vtkImageRegion *outRegion)
{
......
......@@ -162,7 +162,7 @@ void vtkImageClip::Execute(vtkImageRegion *inRegion,
//----------------------------------------------------------------------------
// Clips the first axis
template <class T>
void vtkImageClipAxis(vtkImageRegion *region, T backGround)
static void vtkImageClipAxis(vtkImageRegion *region, T backGround)
{
int idx0, idx1, idx2, idx3, idx4;
int inc0, inc1, inc2, inc3, inc4;
......@@ -255,7 +255,7 @@ void vtkImageClipAxis(vtkImageRegion *region, T backGround)
//----------------------------------------------------------------------------
// The automatically computes a new ImageExtent.
template <class T>
void vtkImageClipCompute(vtkImageRegion *region, T *ptr)
static void vtkImageClipCompute(vtkImageRegion *region, T *ptr)
{
int idx0, idx1, idx2, idx3, idx4, idx;
int t0, t1, t2, t3, t4;
......
......@@ -59,7 +59,7 @@ vtkImageConstantPad::vtkImageConstantPad()
// Description:
// This templated function executes the filter for any type of data.
template <class T>
void vtkImageConstantPadExecute(vtkImageConstantPad *self,
static void vtkImageConstantPadExecute(vtkImageConstantPad *self,
vtkImageRegion *inRegion, T *inPtr,
vtkImageRegion *outRegion, T *outPtr)
{
......
......@@ -128,7 +128,7 @@ void vtkImageConvolution1D::SetKernel(float *kernel, int size)
// and executes the Conv1d algorithm to fill the output from the input.
// Note that input pixel is offset from output pixel.
template <class T>
void vtkImageConvolution1DExecuteCenter(vtkImageConvolution1D *self,
static void vtkImageConvolution1DExecuteCenter(vtkImageConvolution1D *self,
vtkImageRegion *inRegion, T *inPtr,
vtkImageRegion *outRegion, T *outPtr)
{
......@@ -243,7 +243,7 @@ void vtkImageConvolution1D::ExecuteCenter(vtkImageRegion *inRegion,
// Note that input pixel is offset from output pixel.
// It is only call with boundary regions.
template <class T>
void vtkImageConvolution1DExecute(vtkImageConvolution1D *self,
static void vtkImageConvolution1DExecute(vtkImageConvolution1D *self,
vtkImageRegion *inRegion, T *inPtr,
vtkImageRegion *outRegion, T *outPtr)
{
......
......@@ -88,7 +88,7 @@ void vtkImageDilate1D::SetStride(int stride)
// Note that input pixel is offset from output pixel.
// It also handles ImageExtent by truncating the kernel.
template <class T>
void vtkImageDilate1DExecute(vtkImageDilate1D *self,
static void vtkImageDilate1DExecute(vtkImageDilate1D *self,
vtkImageRegion *inRegion, T *inPtr,
vtkImageRegion *outRegion, T *outPtr)
{
......
......@@ -156,7 +156,7 @@ void vtkImageDilateErode::SetKernelSize(int num, int *size)
// If the filter needs to be faster, the function could be duplicated
// for strictly center (no boundary ) processing.
template <class T>
void vtkImageDilateErodeExecute(vtkImageDilateErode *self,
static void vtkImageDilateErodeExecute(vtkImageDilateErode *self,
vtkImageRegion *inRegion, T *inPtr,
vtkImageRegion *outRegion, T *outPtr,
int boundaryFlag)
......
......@@ -79,7 +79,7 @@ void vtkImageDilateValue1D::SetKernelSize(int size)
// Note that input pixel is offset from output pixel.
// It also handles ImageExtent by truncating the kernel.
template <class T>
void vtkImageDilateValue1DExecute(vtkImageDilateValue1D *self,
static void vtkImageDilateValue1DExecute(vtkImageDilateValue1D *self,
vtkImageRegion *inRegion, T *inPtr,
vtkImageRegion *outRegion, T *outPtr)
{
......
......@@ -93,7 +93,7 @@ void vtkImageDotProduct::ComputeRequiredInputRegionExtent(
// Description:
// This templated function executes the filter for any type of data.
template <class T>
void vtkImageDotProductExecute(vtkImageDotProduct *self,
static void vtkImageDotProductExecute(vtkImageDotProduct *self,
vtkImageRegion *in1Region, T *in1Ptr,
vtkImageRegion *in2Region, T *in2Ptr,
vtkImageRegion *outRegion, T *outPtr)
......
......@@ -106,7 +106,7 @@ vtkImageDuotone::ComputeRequiredInputRegionExtent(vtkImageRegion *outRegion,
// Description:
// This templated function executes the filter for any type of data.
template <class T>
void vtkImageDuotoneExecute(vtkImageDuotone *self,
static void vtkImageDuotoneExecute(vtkImageDuotone *self,
vtkImageRegion *inRegion, T *inPtr,
vtkImageRegion *out0Region, T *out0Ptr,
vtkImageRegion *out1Region, T *out1Ptr,
......
......@@ -178,7 +178,7 @@ void vtkImageFFT1D::ComputeRequiredInputRegionExtent(
// This templated execute method handles any type input, but the output
// is always floats. Axis 0 should be components. FFT is performed on axis 1.
template <class T>
void vtkImageFFT1DExecute(vtkImageFFT1D *self,
static void vtkImageFFT1DExecute(vtkImageFFT1D *self,
vtkImageRegion *inRegion, T *inPtr,
vtkImageRegion *outRegion, float *outPtr)
{
......
......@@ -93,7 +93,7 @@ void vtkImageFlip::ComputeRequiredInputRegionExtent(vtkImageRegion *outRegion,
// Description:
// This templated function executes the filter for any type of data.
template <class IT, class OT>
void vtkImageFlipExecute(vtkImageFlip *self,
static void vtkImageFlipExecute(vtkImageFlip *self,
vtkImageRegion *inRegion, IT *inPtr,
vtkImageRegion *outRegion, OT *outPtr){
int min0, max0, min1, max1;
......@@ -131,7 +131,7 @@ void vtkImageFlipExecute(vtkImageFlip *self,
//----------------------------------------------------------------------------
template <class T>
void vtkImageFlipExecute(vtkImageFlip *self,
static void vtkImageFlipExecute(vtkImageFlip *self,
vtkImageRegion *inRegion, T *inPtr,
vtkImageRegion *outRegion)
{
......
......@@ -351,7 +351,7 @@ int vtkImageFourierWavelet2D::TestWaveletOrthogonality(int waveletIdx)
// Create an addition resolution level.
// Regions bound only the lores. quadrent of the last resolution level.
template <class T>
void
static void
vtkImageFourierWavelet2DExecute(vtkImageFourierWavelet2D *self,
vtkImageRegion *inRegion, T *inPtr,
vtkImageRegion *outRegion, float *outPtr)
......
......@@ -208,7 +208,7 @@ void vtkImageGradient::ComputeRequiredInputRegionExtent(
// it handles boundaries. Pixels are just replicated to get values
// out of extent.
template <class T>
void vtkImageGradientExecute(vtkImageGradient *self,
static void vtkImageGradientExecute(vtkImageGradient *self,
vtkImageRegion *inRegion, T *inPtr,
vtkImageRegion *outRegion, float *outPtr)
{
......
......@@ -137,7 +137,7 @@ void vtkImageGradientMagnitude::ComputeRequiredInputRegionExtent(
// it handles boundaries. Pixels are just replicated to get values
// out of extent.
template <class T>
void vtkImageGradientMagnitudeExecute(vtkImageGradientMagnitude *self,
static void vtkImageGradientMagnitudeExecute(vtkImageGradientMagnitude *self,
vtkImageRegion *inRegion, T *inPtr,
vtkImageRegion *outRegion, float *outPtr)
{
......
......@@ -84,7 +84,7 @@ void vtkImageHarrWavelet2D::InterceptCacheUpdate(vtkImageRegion *region)
// Create an addition resolution level.
// Regions bound only the lores. quadrent of the last resolution level.
template <class T>
void vtkImageHarrWavelet2DExecute(vtkImageHarrWavelet2D *self,
static void vtkImageHarrWavelet2DExecute(vtkImageHarrWavelet2D *self,
int qSize0, int qSize1,
vtkImageRegion *inRegion, T *inPtr,
vtkImageRegion *outRegion, T *outPtr)
......
......@@ -72,7 +72,7 @@ void vtkImageHistogram::PrintSelf(ostream& os, vtkIndent indent)
// Description:
// This templated function executes the filter for any type of data.
template <class T>
void vtkImageHistogramExecute(vtkImageHistogram *self,
static void vtkImageHistogramExecute(vtkImageHistogram *self,
vtkImageRegion *inRegion, T *inPtr,
vtkImageRegion *outRegion, T *outPtr)
{
......
......@@ -66,7 +66,7 @@ void vtkImageHistogramEqualization::PrintSelf(ostream& os, vtkIndent indent)
// Description:
// This templated function executes the filter for any type of data.
template <class T>
void vtkImageHistogramEqualizationExecute(vtkImageHistogramEqualization *self,
static void vtkImageHistogramEqualizationExecute(vtkImageHistogramEqualization *self,
vtkImageRegion *inRegion, T *inPtr,
vtkImageRegion *outRegion, T *outPtr)
{
......
......@@ -108,7 +108,7 @@ void vtkImageIslandRemoval2D::InterceptCacheUpdate(vtkImageRegion *region)
// neighborhoods is to check neighbors one by one directly. Also, I did
// not want to break the templated function into pieces.
template <class T>
void vtkImageIslandRemoval2DExecute(vtkImageIslandRemoval2D *self,
static void vtkImageIslandRemoval2DExecute(vtkImageIslandRemoval2D *self,
vtkImageRegion *inRegion, T *inPtr,
vtkImageRegion *outRegion, T *outPtr)
{
......
......@@ -107,7 +107,7 @@ void vtkImageLaplacian::ComputeRequiredInputRegionExtent(
// it handles boundaries. Pixels are just replicated to get values
// out of extent.
template <class T>
void vtkImageLaplacianExecute(vtkImageLaplacian *self,
static void vtkImageLaplacianExecute(vtkImageLaplacian *self,
vtkImageRegion *inRegion, T *inPtr,
vtkImageRegion *outRegion, float *outPtr)
{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment