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
6325b8cc
Commit
6325b8cc
authored
Mar 22, 2021
by
Joshua Santana
Browse files
[REFAC] allow minimum value of color bar scale to be changed
parent
59353c09
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
1 deletion
+7
-1
src/modules/transferFunctionColorBar/WMTransferFunctionColorBar.cpp
...s/transferFunctionColorBar/WMTransferFunctionColorBar.cpp
+2
-1
src/modules/transferFunctionColorBar/WMTransferFunctionColorBar.h
...les/transferFunctionColorBar/WMTransferFunctionColorBar.h
+5
-0
No files found.
src/modules/transferFunctionColorBar/WMTransferFunctionColorBar.cpp
View file @
6325b8cc
...
...
@@ -99,6 +99,7 @@ void WMTransferFunctionColorBar::properties()
m_colorBarLabels
->
setMin
(
0
);
m_colorBarLabels
->
setMax
(
55
);
m_minScaleValue
=
m_properties
->
addProperty
(
"Min scale value"
,
"Minimum scale value in dataset"
,
0.0
,
true
);
m_maxScaleValue
=
m_properties
->
addProperty
(
"Max scale value"
,
"Maximum scale value in dataset"
,
1.0
,
true
);
m_colorBarDescription
=
m_properties
->
addProperty
(
"Description"
,
"Description of current transfer function"
,
std
::
string
(
"TransferFunction"
),
true
),
...
...
@@ -250,7 +251,7 @@ void WMTransferFunctionColorBar::moduleMain()
matrix
->
addChild
(
labels
);
m_barProjection
->
addChild
(
matrix
);
m_valueMin
=
0.0
;
// dataSet->getTexture()->minimum()->get();
m_valueMin
=
m_minScaleValue
->
get
()
;
// dataSet->getTexture()->minimum()->get();
m_valueScale
=
m_maxScaleValue
->
get
();
// dataSet->getTexture()->scale()->get();
// add
...
...
src/modules/transferFunctionColorBar/WMTransferFunctionColorBar.h
View file @
6325b8cc
...
...
@@ -152,6 +152,11 @@ private:
*/
WPropDouble
m_maxScaleValue
;
/**
* Minimum scaling factor of the current dataset.
*/
WPropDouble
m_minScaleValue
;
/**
* Description of the color bar.
*/
...
...
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