Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
9.2.2023: Due to updates GitLab will be unavailable for some minutes between 9:00 and 11:00.
Open sidebar
CAMP
campvis-public
Commits
c9cbf53e
Commit
c9cbf53e
authored
Nov 27, 2013
by
Christian Schulte zu Berge
Browse files
fixed SliceExtractor::updateProperties() not setting slice number maximum values correctly
parent
f92ceb1c
Changes
1
Hide whitespace changes
Inline
Side-by-side
modules/vis/processors/sliceextractor.cpp
View file @
c9cbf53e
...
...
@@ -262,16 +262,15 @@ namespace campvis {
p_transferFunction
.
getTF
()
->
setImageHandle
(
img
.
getDataHandle
());
if
(
img
!=
0
)
{
const
tgt
::
svec3
&
imgSize
=
img
->
getSize
();
unsigned
int
maxValue
=
static_cast
<
unsigned
int
>
(
p_xSliceNumber
.
getMaxValue
());
if
(
maxValue
!=
imgSize
.
x
-
1
){
p_xSliceNumber
.
setMaxValue
(
static_cast
<
int
>
(
imgSize
.
x
)
-
1
);
tgt
::
ivec3
imgSize
=
img
->
getSize
();
if
(
p_xSliceNumber
.
getMaxValue
()
!=
imgSize
.
x
-
1
){
p_xSliceNumber
.
setMaxValue
(
imgSize
.
x
-
1
);
}
if
(
m
axValue
!=
imgSize
.
y
-
1
){
p_ySliceNumber
.
setMaxValue
(
static_cast
<
int
>
(
imgSize
.
y
)
-
1
);
if
(
p_ySliceNumber
.
getM
axValue
()
!=
imgSize
.
y
-
1
){
p_ySliceNumber
.
setMaxValue
(
imgSize
.
y
-
1
);
}
if
(
m
axValue
!=
imgSize
.
z
-
1
){
p_zSliceNumber
.
setMaxValue
(
static_cast
<
int
>
(
imgSize
.
z
)
-
1
);
if
(
p_zSliceNumber
.
getM
axValue
()
!=
imgSize
.
z
-
1
){
p_zSliceNumber
.
setMaxValue
(
imgSize
.
z
-
1
);
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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