Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Andrew Bauer
VTK
Commits
88a750c6
Commit
88a750c6
authored
Apr 01, 1997
by
Boris Yamrom
Browse files
ENH: 'static' is added to template definitions
parent
7b5f4209
Changes
3
Hide whitespace changes
Inline
Side-by-side
patented/vtkMarchingCubes.cxx
View file @
88a750c6
...
...
@@ -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
)
...
...
patented/vtkMarchingSquares.cxx
View file @
88a750c6
...
...
@@ -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
)
...
...
patented/vtkSliceCubes.cxx
View file @
88a750c6
...
...
@@ -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
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment