Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
CamiTK Community Edition
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
25
Issues
25
List
Boards
Labels
Milestones
Merge Requests
3
Merge Requests
3
Packages
Packages
Container Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
CamiTK
CamiTK Community Edition
Commits
484a8638
Commit
484a8638
authored
Jul 31, 2019
by
Emmanuel Promayon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
FIXED some code clarification
parent
5d9bb71d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
40 deletions
+15
-40
sdk/libraries/core/component/Slice.cpp
sdk/libraries/core/component/Slice.cpp
+1
-1
sdk/libraries/core/component/image/ImageComponent.cpp
sdk/libraries/core/component/image/ImageComponent.cpp
+14
-39
No files found.
sdk/libraries/core/component/Slice.cpp
View file @
484a8638
...
...
@@ -151,7 +151,7 @@ void Slice::setOriginalVolume(vtkSmartPointer<vtkImageData> volume) {
void
Slice
::
initActors
()
{
imgToMapFilter
->
SetInputData
(
originalVolume
);
if
(
nullptr
==
lut
)
{
if
(
lut
==
nullptr
)
{
imgToMapFilter
->
SetLookupTable
(
nullptr
);
}
else
{
...
...
sdk/libraries/core/component/image/ImageComponent.cpp
View file @
484a8638
...
...
@@ -377,7 +377,6 @@ vtkSmartPointer<vtkImageData> ImageComponent::getImageDataWithFrameTransform() {
// -------------------- initLookupTable --------------------
void
ImageComponent
::
initLookupTable
()
{
// TODO set in a betterway information about the lut thanks to image data
if
(
this
->
originalImageData
->
GetNumberOfScalarComponents
()
==
1
)
{
// Default values for grey level lut
...
...
@@ -390,7 +389,6 @@ void ImageComponent::initLookupTable() {
lut
->
SetWindow
(
getActualNumberOfColors
());
lut
->
SetRampToSCurve
();
lut
->
Build
();
// effective build
}
else
{
// For colored image, we need to extract the information from the image
...
...
@@ -507,48 +505,25 @@ QString ImageComponent::getImageName() const {
void
ImageComponent
::
update3DViewer
()
{
bool
viewIn3D
=
property
(
"Display Image in 3D Viewer"
).
toBool
();
if
(
viewIn3D
)
{
if
(
axialSlices
)
{
axialSlices
->
setViewSliceIn3D
(
true
);
}
if
(
coronalSlices
)
{
coronalSlices
->
setViewSliceIn3D
(
true
);
}
if
(
sagittalSlices
)
{
sagittalSlices
->
setViewSliceIn3D
(
true
);
}
if
(
arbitrarySlices
)
{
// by default not visible in 3D
arbitrarySlices
->
setViewSliceIn3D
(
false
);
}
if
(
volumeRenderingChild
)
{
volumeRenderingChild
->
setVisibility
(
InteractiveViewer
::
get3DViewer
(),
true
);
}
if
(
axialSlices
)
{
axialSlices
->
setViewSliceIn3D
(
viewIn3D
);
}
else
{
if
(
axialSlices
)
{
axialSlices
->
setViewSliceIn3D
(
false
);
}
if
(
coronalSlices
)
{
coronalSlices
->
setViewSliceIn3D
(
false
);
}
if
(
coronalSlices
)
{
coronalSlices
->
setViewSliceIn3D
(
viewIn3D
);
}
if
(
sagittalSlices
)
{
sagittalSlices
->
setViewSliceIn3D
(
false
);
}
if
(
sagittalSlices
)
{
sagittalSlices
->
setViewSliceIn3D
(
viewIn3D
);
}
if
(
arbitrarySlices
)
{
arbitrarySlices
->
setViewSliceIn3D
(
false
);
}
if
(
arbitrarySlices
)
{
// by default never visible in 3D
arbitrarySlices
->
setViewSliceIn3D
(
false
);
}
if
(
volumeRenderingChild
)
{
volumeRenderingChild
->
setVisibility
(
InteractiveViewer
::
get3DViewer
(),
false
);
}
if
(
volumeRenderingChild
)
{
volumeRenderingChild
->
setVisibility
(
InteractiveViewer
::
get3DViewer
(),
viewIn3D
);
}
}
...
...
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