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
eb11593e
Commit
eb11593e
authored
Oct 31, 1995
by
Ken Martin
Browse files
removed some unused params
parent
4fc88ed9
Changes
1
Show whitespace changes
Inline
Side-by-side
src/vtkPNMReader.cc
View file @
eb11593e
...
...
@@ -177,7 +177,7 @@ vtkColorScalars *vtkPNMReader::ReadImage(int dim[3])
else
if
(
!
strcmp
(
magic
,
"P5"
)
)
//pgm file
{
graymap
=
new
vtkGraymap
(
numPts
);
if
(
this
->
ReadBinaryPGM
(
fp
,
graymap
,
numPts
,
dim
[
0
],
dim
[
1
])
)
if
(
this
->
ReadBinaryPGM
(
fp
,
graymap
,
dim
[
0
],
dim
[
1
])
)
{
s
=
(
vtkColorScalars
*
)
graymap
;
}
...
...
@@ -190,7 +190,7 @@ vtkColorScalars *vtkPNMReader::ReadImage(int dim[3])
else
if
(
!
strcmp
(
magic
,
"P6"
)
)
//ppm file
{
pixmap
=
new
vtkPixmap
(
numPts
);
if
(
this
->
ReadBinaryPPM
(
fp
,
pixmap
,
numPts
,
dim
[
0
],
dim
[
1
])
)
if
(
this
->
ReadBinaryPPM
(
fp
,
pixmap
,
dim
[
0
],
dim
[
1
])
)
{
s
=
(
vtkColorScalars
*
)
pixmap
;
}
...
...
@@ -216,7 +216,7 @@ vtkColorScalars *vtkPNMReader::ReadVolume(int dim[3])
}
int
vtkPNMReader
::
ReadBinaryPBM
(
FILE
*
fp
,
vtkBitmap
*
bitmap
,
int
numPts
,
int
vtkPNMReader
::
ReadBinaryPBM
(
FILE
*
fp
,
vtkBitmap
*
bitmap
,
int
xsize
,
int
ysize
)
{
int
max
,
j
,
packedXSize
=
xsize
/
8
;
...
...
@@ -241,7 +241,7 @@ int vtkPNMReader::ReadBinaryPBM(FILE *fp, vtkBitmap* bitmap, int numPts,
return
1
;
}
int
vtkPNMReader
::
ReadBinaryPGM
(
FILE
*
fp
,
vtkGraymap
*
graymap
,
int
numPts
,
int
vtkPNMReader
::
ReadBinaryPGM
(
FILE
*
fp
,
vtkGraymap
*
graymap
,
int
xsize
,
int
ysize
)
{
int
max
,
j
;
...
...
@@ -265,7 +265,7 @@ int vtkPNMReader::ReadBinaryPGM(FILE *fp, vtkGraymap* graymap, int numPts,
return
1
;
}
int
vtkPNMReader
::
ReadBinaryPPM
(
FILE
*
fp
,
vtkPixmap
*
pixmap
,
int
numPts
,
int
vtkPNMReader
::
ReadBinaryPPM
(
FILE
*
fp
,
vtkPixmap
*
pixmap
,
int
xsize
,
int
ysize
)
{
int
max
,
j
;
...
...
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