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
Christian Butz
VTK
Commits
f5b6fe05
Commit
f5b6fe05
authored
Jan 21, 2011
by
David Partyka
Browse files
Fix failing printself/otherprint tests.
Change-Id: I525ca5437f25a17eb47725f0332a9d5f6a120b04
parent
8e6df1e8
Changes
1
Hide whitespace changes
Inline
Side-by-side
VolumeRendering/vtkVolumeRayCastSpaceLeapingImageFilter.cxx
View file @
f5b6fe05
...
...
@@ -923,8 +923,12 @@ int vtkVolumeRayCastSpaceLeapingImageFilter
{
// the number of independent components for which we need to keep track of
// min/max
const
int
components
=
this
->
CurrentScalars
->
GetNumberOfComponents
();
return
((
this
->
IndependentComponents
)
?
components
:
1
);
if
(
this
->
CurrentScalars
)
{
const
int
components
=
this
->
CurrentScalars
->
GetNumberOfComponents
();
return
((
this
->
IndependentComponents
)
?
components
:
1
);
}
return
0
;
}
//----------------------------------------------------------------------------
...
...
@@ -934,8 +938,7 @@ void vtkVolumeRayCastSpaceLeapingImageFilter
// Find the first non-zero scalar opacity and gradient opacity points on
// the respective transfer functions
const
unsigned
int
nComponents
=
static_cast
<
unsigned
int
>
(
this
->
GetNumberOfIndependentComponents
());
const
int
nComponents
=
this
->
GetNumberOfIndependentComponents
();
// Initialize these arrays.
if
(
this
->
MinNonZeroScalarIndex
)
...
...
@@ -950,9 +953,9 @@ void vtkVolumeRayCastSpaceLeapingImageFilter
}
// Update the flags now
unsigned
int
i
;
int
i
;
this
->
MinNonZeroScalarIndex
=
new
unsigned
short
[
nComponents
];
for
(
unsigned
int
c
=
0
;
c
<
nComponents
;
c
++
)
for
(
int
c
=
0
;
c
<
nComponents
;
c
++
)
{
for
(
i
=
0
;
i
<
this
->
TableSize
[
c
];
i
++
)
{
...
...
@@ -965,7 +968,7 @@ void vtkVolumeRayCastSpaceLeapingImageFilter
}
this
->
MinNonZeroGradientMagnitudeIndex
=
new
unsigned
char
[
nComponents
];
for
(
unsigned
int
c
=
0
;
c
<
nComponents
;
c
++
)
for
(
int
c
=
0
;
c
<
nComponents
;
c
++
)
{
for
(
i
=
0
;
i
<
256
;
i
++
)
{
...
...
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