Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Christian Butz
VTK
Commits
7d7444af
Commit
7d7444af
authored
Oct 29, 2016
by
David E. DeMarle
Browse files
Options
Browse Files
Download
Plain Diff
Merge commit '
0e1e9466
' into release
parents
94d03e0b
0e1e9466
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
Rendering/Core/vtkVolumeProperty.cxx
Rendering/Core/vtkVolumeProperty.cxx
+4
-5
Rendering/Core/vtkVolumeProperty.h
Rendering/Core/vtkVolumeProperty.h
+2
-1
No files found.
Rendering/Core/vtkVolumeProperty.cxx
View file @
7d7444af
...
...
@@ -475,13 +475,12 @@ void vtkVolumeProperty::SetComponentWeight(int index, double value)
return
;
}
if
(
this
->
ComponentWeight
[
index
]
==
value
)
double
val
=
value
<
0.0
?
0.0
:
(
value
>
1.0
?
1.0
:
value
);
if
(
this
->
ComponentWeight
[
index
]
!=
val
)
{
return
;
this
->
ComponentWeight
[
index
]
=
val
;
this
->
Modified
();
}
this
->
ComponentWeight
[
index
]
=
value
;
this
->
Modified
();
}
double
vtkVolumeProperty
::
GetComponentWeight
(
int
index
)
...
...
Rendering/Core/vtkVolumeProperty.h
View file @
7d7444af
...
...
@@ -109,7 +109,8 @@ public:
//@{
/**
* Set/Get the scalar component weights
* Set/Get the scalar component weights.
* Clamped between the range of (0.0, 1.0)
*/
virtual
void
SetComponentWeight
(
int
index
,
double
value
);
virtual
double
GetComponentWeight
(
int
index
);
...
...
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