Commit a53b615d authored by John Biddiscombe's avatar John Biddiscombe

ENH: Change some void func(float *) defs to void func( float f[N]) : improves wrapping

by declaring the number of arguments for array types
parent 5404c592
......@@ -450,7 +450,7 @@ void vtkCursor3D::SetModelBounds(float xmin, float xmax, float ymin, float ymax,
}
}
void vtkCursor3D::SetModelBounds(float *bounds)
void vtkCursor3D::SetModelBounds(float bounds[6])
{
this->SetModelBounds(bounds[0], bounds[1], bounds[2], bounds[3], bounds[4],
bounds[5]);
......
......@@ -71,7 +71,7 @@ public:
// Set / get the boundary of the 3D cursor.
void SetModelBounds(float xmin, float xmax, float ymin, float ymax,
float zmin, float zmax);
void SetModelBounds(float *bounds);
void SetModelBounds(float bounds[6]);
vtkGetVectorMacro(ModelBounds,float,6);
// Description:
......
......@@ -98,7 +98,7 @@ void vtkExtractUnstructuredGrid::SetExtent(float xMin,float xMax, float yMin,
}
// Specify a (xmin,xmax, ymin,ymax, zmin,zmax) bounding box to clip data.
void vtkExtractUnstructuredGrid::SetExtent(float *extent)
void vtkExtractUnstructuredGrid::SetExtent(float extent[6])
{
int i;
......
......@@ -120,7 +120,7 @@ public:
// Description:
// Set / get a (xmin,xmax, ymin,ymax, zmin,zmax) bounding box to clip data.
void SetExtent(float *extent);
void SetExtent(float extent[6]);
float *GetExtent() { return this->Extent;};
// Description:
......
......@@ -118,7 +118,7 @@ void vtkGeometryFilter::SetExtent(float xMin, float xMax, float yMin,
}
// Specify a (xmin,xmax, ymin,ymax, zmin,zmax) bounding box to clip data.
void vtkGeometryFilter::SetExtent(float *extent)
void vtkGeometryFilter::SetExtent(float extent[6])
{
int i;
......
......@@ -125,7 +125,7 @@ public:
// Description:
// Set / get a (xmin,xmax, ymin,ymax, zmin,zmax) bounding box to clip data.
void SetExtent(float *extent);
void SetExtent(float extent[6]);
float *GetExtent() { return this->Extent;};
// Description:
......
......@@ -413,7 +413,7 @@ void vtkRectilinearGridGeometryFilter::SetExtent(int iMin, int iMax, int jMin,
}
// Specify (imin,imax, jmin,jmax, kmin,kmax) indices in array form.
void vtkRectilinearGridGeometryFilter::SetExtent(int *extent)
void vtkRectilinearGridGeometryFilter::SetExtent(int extent[6])
{
int i;
......
......@@ -85,7 +85,7 @@ public:
// Description:
// Specify (imin,imax, jmin,jmax, kmin,kmax) indices in array form.
void SetExtent(int *extent);
void SetExtent(int extent[6]);
protected:
vtkRectilinearGridGeometryFilter();
......
......@@ -434,7 +434,7 @@ void vtkStructuredGridGeometryFilter::SetExtent(int iMin, int iMax, int jMin, in
}
// Specify (imin,imax, jmin,jmax, kmin,kmax) indices in array form.
void vtkStructuredGridGeometryFilter::SetExtent(int *extent)
void vtkStructuredGridGeometryFilter::SetExtent(int extent[6])
{
int i;
......
......@@ -83,7 +83,7 @@ public:
// Description:
// Specify (imin,imax, jmin,jmax, kmin,kmax) indices in array form.
void SetExtent(int *extent);
void SetExtent(int extent[6]);
protected:
vtkStructuredGridGeometryFilter();
......
......@@ -410,7 +410,7 @@ void vtkStructuredPointsGeometryFilter::SetExtent(int iMin, int iMax,
}
// Specify (imin,imax, jmin,jmax, kmin,kmax) indices.
void vtkStructuredPointsGeometryFilter::SetExtent(int *extent)
void vtkStructuredPointsGeometryFilter::SetExtent(int extent[6])
{
int i;
......
......@@ -77,7 +77,7 @@ public:
// Description:
// Set / get the extent (imin,imax, jmin,jmax, kmin,kmax) indices.
void SetExtent(int *extent);
void SetExtent(int extent[6]);
void SetExtent(int iMin, int iMax, int jMin, int jMax, int kMin, int kMax);
int *GetExtent() { return this->Extent;};
......
......@@ -84,7 +84,7 @@ vtkVoxelModeller::vtkVoxelModeller()
}
// Specify the position in space to perform the voxelization.
void vtkVoxelModeller::SetModelBounds(float *bounds)
void vtkVoxelModeller::SetModelBounds(float bounds[6])
{
vtkVoxelModeller::SetModelBounds(bounds[0], bounds[1], bounds[2], bounds[3], bounds[4], bounds[5]);
}
......
......@@ -89,7 +89,7 @@ public:
// Description:
// Specify the position in space to perform the voxelization.
void SetModelBounds(float *bounds);
void SetModelBounds(float bounds[6]);
void SetModelBounds(float xmin, float xmax, float ymin, float ymax, float zmin, float zmax);
vtkGetVectorMacro(ModelBounds,float,6);
......
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