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
053ff36c
Commit
053ff36c
authored
Apr 13, 2010
by
Alexander Wiebel
Browse files
[ADD] color selection for distance map
parent
b6f819b7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
0 deletions
+4
-0
src/modules/distanceMap/WMDistanceMapIsosurface.cpp
src/modules/distanceMap/WMDistanceMapIsosurface.cpp
+3
-0
src/modules/distanceMap/WMDistanceMapIsosurface.h
src/modules/distanceMap/WMDistanceMapIsosurface.h
+1
-0
No files found.
src/modules/distanceMap/WMDistanceMapIsosurface.cpp
View file @
053ff36c
...
...
@@ -90,6 +90,9 @@ void WMDistanceMapIsosurface::moduleMain()
m_useTextureProp
->
set
(
true
);
m_properties
->
addProperty
(
m_useTextureProp
);
m_surfaceColorProp
=
mcProps
->
getProperty
(
"Surface Color"
)
->
toPropColor
();
m_properties
->
addProperty
(
m_surfaceColorProp
);
m_opacityProp
=
mcProps
->
getProperty
(
"Opacity %"
)
->
toPropInt
();
m_properties
->
addProperty
(
m_opacityProp
);
...
...
src/modules/distanceMap/WMDistanceMapIsosurface.h
View file @
053ff36c
...
...
@@ -90,6 +90,7 @@ private:
WPropDouble
m_isoValueProp
;
//!< Property holding the value for the distance.
WPropInt
m_opacityProp
;
//!< Property holding the value for the opacity of the surface.
WPropBool
m_useTextureProp
;
//!< Property indicating whether to use texturing with scalar data sets.
WPropColor
m_surfaceColorProp
;
//!< Property indicating which color to use for non-textured surface.
boost
::
shared_ptr
<
WModuleInputForwardData
<
WDataSetScalar
>
>
m_input
;
//!< Input connector required by this module.
boost
::
shared_ptr
<
WModuleOutputForwardData
<
WDataSetScalar
>
>
m_output
;
//!< Connector to provide the distance map to other modules.
...
...
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