Commit 88a750c6 authored by Boris Yamrom's avatar Boris Yamrom
Browse files

ENH: 'static' is added to template definitions

parent 7b5f4209
......@@ -116,7 +116,7 @@ void vtkMarchingCubes::GenerateValues(int numContours, float r1, float r2)
// Calculate the gradient using central difference.
// NOTE: We calculate the negative of the gradient for efficiency
template <class T>
void ComputePointGradient(int i, int j, int k, T *s, int dims[3],
static void ComputePointGradient(int i, int j, int k, T *s, int dims[3],
int sliceSize, float aspectRatio[3], float n[3])
{
float sp, sm;
......@@ -186,7 +186,7 @@ void ComputePointGradient(int i, int j, int k, T *s, int dims[3],
// Contouring filter specialized for volumes and "short int" data values.
//
template <class T>
void ContourVolume(T *scalars, int dims[3], float origin[3], float aspectRatio[3],
static void ContourVolume(T *scalars, int dims[3], float origin[3], float aspectRatio[3],
vtkPointLocator *locator, vtkScalars *newScalars,
vtkFloatVectors *newGradients, vtkFloatNormals *newNormals,
vtkCellArray *newPolys, float *values, int numValues)
......
......@@ -132,7 +132,7 @@ void vtkMarchingSquares::SetImageRange(int imin, int imax, int jmin, int jmax,
// Contouring filter specialized for images
//
template <class T>
void ContourImage(T *scalars, vtkScalars *newScalars, int roi[6], int dir[3],
static void ContourImage(T *scalars, vtkScalars *newScalars, int roi[6], int dir[3],
int start[2], int end[2], int offset[3], float ar[3],
float origin[3], float *values, int numValues,
vtkPointLocator *p, vtkCellArray *lines)
......
......@@ -69,7 +69,7 @@ void vtkSliceCubes::Update()
// Calculate the gradient using central difference.
// NOTE: We calculate the negative of the gradient for efficiency
template <class T>
void ComputePointGradient(int i, int j, int k, int dims[3],
static void ComputePointGradient(int i, int j, int k, int dims[3],
float aspectRatio[3], float n[3],
T *s0, T *s1, T *s2)
{
......@@ -139,7 +139,7 @@ void ComputePointGradient(int i, int j, int k, int dims[3],
}
template <class T, class S>
int Contour(T *slice, S *scalars, int imageRange[2], int dims[3], float origin[3],
static int Contour(T *slice, S *scalars, int imageRange[2], int dims[3], float origin[3],
float aspectRatio[3], float value, float xmin[3], float xmax[3],
FILE *outFP, vtkVolumeReader *reader, int debug)
{
......
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