Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
OpenWalnut
OpenWalnut Core
Commits
de1dd781
Commit
de1dd781
authored
May 19, 2022
by
Alexander Wiebel
Browse files
[CLEAN
#722
] removed couts
parent
50dae8a1
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
11 deletions
+9
-11
src/modules/directVolumeRendering2TF/WMDirectVolumeRendering2TF.cpp
...s/directVolumeRendering2TF/WMDirectVolumeRendering2TF.cpp
+2
-2
src/modules/transferFunction2D/WMTransferFunction2D.cpp
src/modules/transferFunction2D/WMTransferFunction2D.cpp
+1
-1
src/qtgui/controlPanel/WPropertyTransferFunction2DWidget.cpp
src/qtgui/controlPanel/WPropertyTransferFunction2DWidget.cpp
+6
-8
No files found.
src/modules/directVolumeRendering2TF/WMDirectVolumeRendering2TF.cpp
View file @
de1dd781
...
...
@@ -79,7 +79,7 @@ const char** WMDirectVolumeRendering2TF::getXPMIcon() const
const
std
::
string
WMDirectVolumeRendering2TF
::
getName
()
const
{
// Specify your module name here. This name must be UNIQUE!
return
"Direct Volume Rendering
for 2 TF
"
;
return
"Direct Volume Rendering
using a 2D transfer function.
"
;
}
const
std
::
string
WMDirectVolumeRendering2TF
::
getDescription
()
const
...
...
@@ -98,7 +98,7 @@ void WMDirectVolumeRendering2TF::connectors()
// The transfer function for our DVR
m_transferFunction
=
WModuleInputData
<
WDataSetSingle
>::
createAndAdd
(
shared_from_this
(),
"transfer function
data set 1
"
,
"transfer function"
,
"The 2D transfer function for the two data sets."
);
// Optional: the gradient field
...
...
src/modules/transferFunction2D/WMTransferFunction2D.cpp
View file @
de1dd781
...
...
@@ -67,7 +67,7 @@ const std::string WMTransferFunction2D::getName() const
const
std
::
string
WMTransferFunction2D
::
getDescription
()
const
{
return
"A module to modify a transfer function."
;
return
"A module to modify a
2D
transfer function."
;
}
void
WMTransferFunction2D
::
connectors
()
...
...
src/qtgui/controlPanel/WPropertyTransferFunction2DWidget.cpp
View file @
de1dd781
...
...
@@ -66,7 +66,6 @@ WPropertyTransferFunction2DWidget::WPropertyTransferFunction2DWidget( WPropTrans
WPropertyTransferFunction2DWidget
::~
WPropertyTransferFunction2DWidget
()
{
// cleanup
// std::cout << "cleanup." << std::endl;
}
namespace
...
...
@@ -90,12 +89,12 @@ namespace
void
WPropertyTransferFunction2DWidget
::
update
()
{
modifying
=
true
;
std
::
cout
<<
"Widget update"
<<
std
::
endl
;
//
std::cout << "Widget update" << std::endl;
WTransferFunction2D
tf
(
m_transferFunctionProperty
->
get
()
);
if
(
tf
!=
lastTransferFunction
)
{
std
::
cout
<<
"
tf
updated"
<<
std
::
endl
;
//
std::cout << "
TF
updated" << std::endl;
m_transferFunction
.
cleanTransferFunction
();
m_transferFunction
.
setHistogram
(
tf
.
getHistogram
()
);
...
...
@@ -113,7 +112,7 @@ void WPropertyTransferFunction2DWidget::update()
}
else
{
std
::
cout
<<
"update blocked because nothing changed"
<<
std
::
endl
;
//
std::cout << "update blocked because nothing changed" << std::endl;
}
modifying
=
false
;
}
...
...
@@ -126,13 +125,12 @@ void WPropertyTransferFunction2DWidget::guiUpdate( const WTransferFunction2D& tf
lastTransferFunction
=
tf
;
if
(
!
modifying
)
{
std
::
cout
<<
"guiUpdate(...)"
<<
std
::
endl
;
//
std::cout << "guiUpdate(...)" << std::endl;
m_transferFunctionProperty
->
set
(
tf
);
std
::
cout
<<
"end guiUpdate(...)"
<<
std
::
endl
;
//
std::cout << "end guiUpdate(...)" << std::endl;
}
else
{
std
::
cout
<<
"guiUpdate(...) blocked"
<<
std
::
endl
;
//
std::cout << "guiUpdate(...) blocked" << std::endl;
}
}
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