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
7b5f4209
Commit
7b5f4209
authored
Apr 01, 1997
by
Boris Yamrom
Browse files
ENH: static is added to template definition
parent
4967ed9a
Changes
1
Hide whitespace changes
Inline
Side-by-side
common/vtkImageData.cxx
View file @
7b5f4209
...
...
@@ -65,7 +65,7 @@ vtkImageData::vtkImageData()
//----------------------------------------------------------------------------
// A templated function to print different types of pointData.
template
<
class
T
>
void
vtkImageDataPrintScalars
(
vtkImageData
*
self
,
T
*
ptr
,
static
void
vtkImageDataPrintScalars
(
vtkImageData
*
self
,
T
*
ptr
,
ostream
&
os
,
vtkIndent
indent
)
{
int
precisionSave
=
os
.
precision
();
...
...
@@ -760,7 +760,7 @@ float *vtkImageData::GetVectorPointer()
// This should be a recursive call to avoid many nested loops, and
// make the code independant of VTK_IMAGE_DIMENSIONS.
template
<
class
IT
,
class
OT
>
void
vtkImageDataCopyData2
(
vtkImageData
*
outData
,
OT
*
outPtr
,
static
void
vtkImageDataCopyData2
(
vtkImageData
*
outData
,
OT
*
outPtr
,
vtkImageData
*
inData
,
IT
*
inPtr
,
int
*
b
)
{
IT
*
inPtr0
,
*
inPtr1
,
*
inPtr2
,
*
inPtr3
,
*
inPtr4
;
...
...
@@ -822,7 +822,7 @@ void vtkImageDataCopyData2(vtkImageData *outData, OT *outPtr,
//----------------------------------------------------------------------------
// First templated function for copying.
template
<
class
T
>
void
vtkImageDataCopyData
(
vtkImageData
*
self
,
void
*
outPtr
,
static
void
vtkImageDataCopyData
(
vtkImageData
*
self
,
void
*
outPtr
,
vtkImageData
*
inData
,
T
*
inPtr
,
int
*
extent
)
{
switch
(
self
->
GetScalarType
())
...
...
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