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
41f765b8
Commit
41f765b8
authored
Feb 22, 2008
by
Sebastien Barre
Browse files
ENH: fix computation of slice number/max
parent
c6a6ac55
Changes
1
Show whitespace changes
Inline
Side-by-side
Hybrid/vtkCornerAnnotation.cxx
View file @
41f765b8
...
...
@@ -27,7 +27,7 @@
//----------------------------------------------------------------------------
vtkStandardNewMacro
(
vtkCornerAnnotation
);
vtkCxxRevisionMacro
(
vtkCornerAnnotation
,
"1.1
5
"
);
vtkCxxRevisionMacro
(
vtkCornerAnnotation
,
"1.1
6
"
);
vtkSetObjectImplementationMacro
(
vtkCornerAnnotation
,
ImageActor
,
vtkImageActor
);
vtkSetObjectImplementationMacro
(
vtkCornerAnnotation
,
WindowLevel
,
...
...
@@ -130,8 +130,8 @@ void vtkCornerAnnotation::TextReplace(vtkImageActor *ia,
}
if
(
ia
)
{
slice
=
ia
->
GetSliceNumber
()
+
1
;
slice_max
=
ia
->
GetSliceNumberMax
()
+
1
;
slice
=
ia
->
GetSliceNumber
()
-
ia
->
GetSliceNumberMin
()
+
1
;
slice_max
=
ia
->
GetSliceNumberMax
()
-
ia
->
GetSliceNumberMin
()
+
1
;
ia_input
=
ia
->
GetInput
();
if
(
!
wl_input
&&
ia_input
)
{
...
...
Write
Preview
Supports
Markdown
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