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
a30bd81f
Commit
a30bd81f
authored
Aug 12, 2010
by
Alexander Wiebel
Browse files
[STYLE] fixed capitalization of property names
parent
44f00dde
Changes
17
Hide whitespace changes
Inline
Side-by-side
Showing
17 changed files
with
90 additions
and
90 deletions
+90
-90
src/kernel/modules/fiberDisplay/WMFiberDisplay.cpp
src/kernel/modules/fiberDisplay/WMFiberDisplay.cpp
+11
-11
src/modules/clusterParamDisplay/WMClusterParamDisplay.cpp
src/modules/clusterParamDisplay/WMClusterParamDisplay.cpp
+3
-3
src/modules/clusterSlicer/WMClusterSlicer.cpp
src/modules/clusterSlicer/WMClusterSlicer.cpp
+1
-1
src/modules/distanceMapIsosurface/WMDistanceMapIsosurface.cpp
...modules/distanceMapIsosurface/WMDistanceMapIsosurface.cpp
+3
-3
src/modules/effectiveConnectivityCluster/WMEffectiveConnectivityCluster.cpp
...iveConnectivityCluster/WMEffectiveConnectivityCluster.cpp
+18
-18
src/modules/fiberSelection/WMFiberSelection.cpp
src/modules/fiberSelection/WMFiberSelection.cpp
+4
-4
src/modules/histogramEqualization/WMHistogramEqualization.cpp
...modules/histogramEqualization/WMHistogramEqualization.cpp
+3
-3
src/modules/isosurfaceRaytracer/WMIsosurfaceRaytracer.cpp
src/modules/isosurfaceRaytracer/WMIsosurfaceRaytracer.cpp
+5
-5
src/modules/marchingCubes/WMMarchingCubes.cpp
src/modules/marchingCubes/WMMarchingCubes.cpp
+5
-5
src/modules/marchingCubes/test/WMMarchingCubes_test.h
src/modules/marchingCubes/test/WMMarchingCubes_test.h
+4
-4
src/modules/probTractDisplay/WMProbTractDisplay.cpp
src/modules/probTractDisplay/WMProbTractDisplay.cpp
+7
-7
src/modules/splineSurface/WMSplineSurface.cpp
src/modules/splineSurface/WMSplineSurface.cpp
+4
-4
src/modules/superquadricGlyphs/WMSuperquadricGlyphs.cpp
src/modules/superquadricGlyphs/WMSuperquadricGlyphs.cpp
+9
-9
src/modules/surfaceParameterAnimator/WMSurfaceParameterAnimator.cpp
...s/surfaceParameterAnimator/WMSurfaceParameterAnimator.cpp
+7
-7
src/modules/vectorPlot/WMVectorPlot.cpp
src/modules/vectorPlot/WMVectorPlot.cpp
+4
-4
src/modules/voxelizer/WMVoxelizer.cpp
src/modules/voxelizer/WMVoxelizer.cpp
+1
-1
src/modules/writeNIfTI/WMWriteNIfTI.cpp
src/modules/writeNIfTI/WMWriteNIfTI.cpp
+1
-1
No files found.
src/kernel/modules/fiberDisplay/WMFiberDisplay.cpp
View file @
a30bd81f
...
...
@@ -255,27 +255,27 @@ void WMFiberDisplay::activate()
void
WMFiberDisplay
::
properties
()
{
m_customColoring
=
m_properties
->
addProperty
(
"Custom
C
oloring"
,
"Switches the coloring between custom and predefined."
,
false
);
m_coloring
=
m_properties
->
addProperty
(
"Global or
L
ocal
C
oloring"
,
"Switches the coloring between global and local."
,
true
);
m_customColoring
=
m_properties
->
addProperty
(
"Custom
c
oloring"
,
"Switches the coloring between custom and predefined."
,
false
);
m_coloring
=
m_properties
->
addProperty
(
"Global or
l
ocal
c
oloring"
,
"Switches the coloring between global and local."
,
true
);
m_useTubesProp
=
m_properties
->
addProperty
(
"Use
T
ubes"
,
"Draw fiber tracts as fake tubes."
,
false
);
m_useTextureProp
=
m_properties
->
addProperty
(
"Use
T
exture"
,
"Texture fibers with the texture on top of the list."
,
false
);
m_tubeThickness
=
m_properties
->
addProperty
(
"Tube
T
hickness"
,
"Adjusts the thickness of the tubes."
,
50.
,
m_useTubesProp
=
m_properties
->
addProperty
(
"Use
t
ubes"
,
"Draw fiber tracts as fake tubes."
,
false
);
m_useTextureProp
=
m_properties
->
addProperty
(
"Use
t
exture"
,
"Texture fibers with the texture on top of the list."
,
false
);
m_tubeThickness
=
m_properties
->
addProperty
(
"Tube
t
hickness"
,
"Adjusts the thickness of the tubes."
,
50.
,
boost
::
bind
(
&
WMFiberDisplay
::
adjustTubes
,
this
)
);
m_tubeThickness
->
setMin
(
0
);
m_tubeThickness
->
setMax
(
300
);
m_save
=
m_properties
->
addProperty
(
"Save"
,
"
s
aves the selected fiber bundles."
,
false
,
boost
::
bind
(
&
WMFiberDisplay
::
saveSelected
,
this
)
);
m_saveFileName
=
m_properties
->
addProperty
(
"File
N
ame"
,
"
no description yet
"
,
WPathHelper
::
getAppPath
()
);
m_updateOC
=
m_properties
->
addProperty
(
"Update
O
utput
C
onn."
,
m_save
=
m_properties
->
addProperty
(
"Save"
,
"
S
aves the selected fiber bundles."
,
false
,
boost
::
bind
(
&
WMFiberDisplay
::
saveSelected
,
this
)
);
m_saveFileName
=
m_properties
->
addProperty
(
"File
n
ame"
,
""
,
WPathHelper
::
getAppPath
()
);
m_updateOC
=
m_properties
->
addProperty
(
"Update
o
utput
c
onn."
,
"Updates the output connector with the currently selected fibers"
,
WPVBaseTypes
::
PV_TRIGGER_READY
,
boost
::
bind
(
&
WMFiberDisplay
::
updateOutput
,
this
)
);
m_cullBoxGroup
=
m_properties
->
addPropertyGroup
(
"Box Culling"
,
"Properties only related to the box culling."
);
m_activateCullBox
=
m_cullBoxGroup
->
addProperty
(
"Activate"
,
"
a
ctivates the cull box"
,
false
);
m_showCullBox
=
m_cullBoxGroup
->
addProperty
(
"Show
C
ull
B
ox"
,
"
s
hows/hides the cull box"
,
false
);
m_insideCullBox
=
m_cullBoxGroup
->
addProperty
(
"Inside -
O
utside"
,
"
s
how fibers inside or outside the cull box"
,
true
);
m_activateCullBox
=
m_cullBoxGroup
->
addProperty
(
"Activate"
,
"
A
ctivates the cull box"
,
false
);
m_showCullBox
=
m_cullBoxGroup
->
addProperty
(
"Show
c
ull
b
ox"
,
"
S
hows/hides the cull box"
,
false
);
m_insideCullBox
=
m_cullBoxGroup
->
addProperty
(
"Inside -
o
utside"
,
"
S
how fibers inside or outside the cull box"
,
true
);
}
void
WMFiberDisplay
::
updateRenderModes
()
...
...
src/modules/clusterParamDisplay/WMClusterParamDisplay.cpp
View file @
a30bd81f
...
...
@@ -57,7 +57,7 @@ void WMClusterParamDisplay::connectors()
void
WMClusterParamDisplay
::
properties
()
{
m_isoValue
=
m_properties
->
addProperty
(
"Iso
V
alue"
,
""
,
0.01
);
m_isoValue
=
m_properties
->
addProperty
(
"Iso
v
alue"
,
""
,
0.01
);
}
void
WMClusterParamDisplay
::
moduleMain
()
...
...
@@ -79,8 +79,8 @@ void WMClusterParamDisplay::moduleMain()
if
(
m_isoValue
->
changed
()
)
{
m_isoSurface
->
getProperties
()
->
getProperty
(
"Iso
V
alue"
)
->
toPropDouble
()
->
set
(
m_isoValue
->
get
()
);
m_clusterSlicer
->
getProperties
()
->
getProperty
(
"Iso
V
alue"
)
->
toPropDouble
()
->
set
(
m_isoValue
->
get
(
true
)
);
m_isoSurface
->
getProperties
()
->
getProperty
(
"Iso
v
alue"
)
->
toPropDouble
()
->
set
(
m_isoValue
->
get
()
);
m_clusterSlicer
->
getProperties
()
->
getProperty
(
"Iso
v
alue"
)
->
toPropDouble
()
->
set
(
m_isoValue
->
get
(
true
)
);
}
}
}
...
...
src/modules/clusterSlicer/WMClusterSlicer.cpp
View file @
a30bd81f
...
...
@@ -75,7 +75,7 @@ void WMClusterSlicer::connectors()
void
WMClusterSlicer
::
properties
()
{
m_drawISOVoxels
=
m_properties
->
addProperty
(
"Show or Hide ISO Voxels"
,
"En/Disables to draw the voxels withing a given ISOSurface."
,
true
);
m_isoValue
=
m_properties
->
addProperty
(
"Iso
V
alue"
,
""
,
0.01
);
m_isoValue
=
m_properties
->
addProperty
(
"Iso
v
alue"
,
""
,
0.01
);
}
void
WMClusterSlicer
::
moduleMain
()
...
...
src/modules/distanceMapIsosurface/WMDistanceMapIsosurface.cpp
View file @
a30bd81f
...
...
@@ -81,18 +81,18 @@ void WMDistanceMapIsosurface::moduleMain()
// now wait for it to be ready
m_marchingCubesModule
->
isReady
().
wait
();
boost
::
shared_ptr
<
WProperties
>
mcProps
=
m_marchingCubesModule
->
getProperties
();
m_isoValueProp
=
mcProps
->
getProperty
(
"Iso
V
alue"
)
->
toPropDouble
();
m_isoValueProp
=
mcProps
->
getProperty
(
"Iso
v
alue"
)
->
toPropDouble
();
m_isoValueProp
->
set
(
0.2
);
m_isoValueProp
->
setMin
(
0.0
);
m_isoValueProp
->
setMax
(
1.0
);
m_properties
->
addProperty
(
m_isoValueProp
);
m_useTextureProp
=
mcProps
->
getProperty
(
"Use
T
exture"
)
->
toPropBool
();
m_useTextureProp
=
mcProps
->
getProperty
(
"Use
t
exture"
)
->
toPropBool
();
m_useTextureProp
->
set
(
true
);
m_properties
->
addProperty
(
m_useTextureProp
);
m_surfaceColorProp
=
mcProps
->
getProperty
(
"Surface
C
olor"
)
->
toPropColor
();
m_surfaceColorProp
=
mcProps
->
getProperty
(
"Surface
c
olor"
)
->
toPropColor
();
m_properties
->
addProperty
(
m_surfaceColorProp
);
m_opacityProp
=
mcProps
->
getProperty
(
"Opacity %"
)
->
toPropInt
();
...
...
src/modules/effectiveConnectivityCluster/WMEffectiveConnectivityCluster.cpp
View file @
a30bd81f
...
...
@@ -148,12 +148,12 @@ void WMEffectiveConnectivityCluster::moduleMain()
// set some props
boost
::
shared_ptr
<
WProperties
>
props
=
m_fiberSelection
->
getProperties
();
props
->
getProperty
(
"VOI1
T
hreshold"
)
->
toPropDouble
()
->
set
(
50.0
);
props
->
getProperty
(
"VOI2
T
hreshold"
)
->
toPropDouble
()
->
set
(
50.0
);
props
->
getProperty
(
"Cut
F
ibers"
)
->
toPropBool
()
->
set
(
true
);
m_properties
->
addProperty
(
props
->
getProperty
(
"Cut
F
ibers"
)
);
props
->
getProperty
(
"Prefer
S
hortest
P
ath"
)
->
toPropBool
()
->
set
(
false
);
m_properties
->
addProperty
(
props
->
getProperty
(
"Prefer
S
hortest
P
ath"
)
);
props
->
getProperty
(
"VOI1
t
hreshold"
)
->
toPropDouble
()
->
set
(
50.0
);
props
->
getProperty
(
"VOI2
t
hreshold"
)
->
toPropDouble
()
->
set
(
50.0
);
props
->
getProperty
(
"Cut
f
ibers"
)
->
toPropBool
()
->
set
(
true
);
m_properties
->
addProperty
(
props
->
getProperty
(
"Cut
f
ibers"
)
);
props
->
getProperty
(
"Prefer
s
hortest
p
ath"
)
->
toPropBool
()
->
set
(
false
);
m_properties
->
addProperty
(
props
->
getProperty
(
"Prefer
s
hortest
p
ath"
)
);
// as this module needs the centerline / longest line -> subscribe to the output connector DATA_CHANGE signal
m_fiberSelection
->
getOutputConnector
(
"cluster"
)
->
subscribeSignal
(
DATA_CHANGED
,
...
...
@@ -182,13 +182,13 @@ void WMEffectiveConnectivityCluster::moduleMain()
props
->
getProperty
(
"Lighting"
)
->
toPropBool
()
->
set
(
false
);
// set longest line based parameterization
props
->
getProperty
(
"Voxels per
U
nit"
)
->
toPropInt
()
->
set
(
2
);
props
->
getProperty
(
"Voxels per
u
nit"
)
->
toPropInt
()
->
set
(
2
);
WItemSelector
::
IndexList
idx
;
idx
.
push_back
(
1
);
props
->
getProperty
(
"Parameterization"
)
->
toPropSelection
()
->
set
(
props
->
getProperty
(
"Parameterization"
)
->
toPropSelection
()
->
get
().
newSelector
(
idx
)
);
m_properties
->
addProperty
(
props
->
getProperty
(
"Voxels per
U
nit"
)
);
m_properties
->
addProperty
(
props
->
getProperty
(
"Voxels per
u
nit"
)
);
//////////////////////////////////////////////////////////////////////
// Gauss Filter the voxel output
...
...
@@ -226,18 +226,18 @@ void WMEffectiveConnectivityCluster::moduleMain()
props
=
m_animation
->
getProperties
();
props
->
getProperty
(
"Isovalue"
)
->
toPropInt
()
->
set
(
32
);
m_properties
->
addProperty
(
props
->
getProperty
(
"Isovalue"
)
);
props
->
getProperty
(
"Step
C
ount"
)
->
toPropInt
()
->
set
(
500
);
m_properties
->
addProperty
(
props
->
getProperty
(
"Step
C
ount"
)
);
props
->
getProperty
(
"Iso
C
olor"
)
->
toPropColor
()
->
set
(
WColor
(
0.0
,
0.5
,
1.0
,
1.0
)
);
m_properties
->
addProperty
(
props
->
getProperty
(
"Iso
C
olor"
)
);
props
->
getProperty
(
"Step
c
ount"
)
->
toPropInt
()
->
set
(
500
);
m_properties
->
addProperty
(
props
->
getProperty
(
"Step
c
ount"
)
);
props
->
getProperty
(
"Iso
c
olor"
)
->
toPropColor
()
->
set
(
WColor
(
0.0
,
0.5
,
1.0
,
1.0
)
);
m_properties
->
addProperty
(
props
->
getProperty
(
"Iso
c
olor"
)
);
props
->
getProperty
(
"Opacity %"
)
->
toPropInt
()
->
set
(
100
);
m_properties
->
addProperty
(
props
->
getProperty
(
"Opacity %"
)
);
m_properties
->
addProperty
(
props
->
getProperty
(
"Saturation %"
)
);
m_properties
->
addProperty
(
props
->
getProperty
(
"Beam1
S
ize"
)
);
m_properties
->
addProperty
(
props
->
getProperty
(
"Beam2
S
ize"
)
);
m_properties
->
addProperty
(
props
->
getProperty
(
"Beam1
S
peed"
)
);
m_properties
->
addProperty
(
props
->
getProperty
(
"Beam2
S
peed"
)
);
m_properties
->
addProperty
(
props
->
getProperty
(
"Parameter
S
cale"
)
);
m_properties
->
addProperty
(
props
->
getProperty
(
"Beam1
s
ize"
)
);
m_properties
->
addProperty
(
props
->
getProperty
(
"Beam2
s
ize"
)
);
m_properties
->
addProperty
(
props
->
getProperty
(
"Beam1
s
peed"
)
);
m_properties
->
addProperty
(
props
->
getProperty
(
"Beam2
s
peed"
)
);
m_properties
->
addProperty
(
props
->
getProperty
(
"Parameter
s
cale"
)
);
//////////////////////////////////////////////////////////////////////////////////
...
...
@@ -403,7 +403,7 @@ void WMEffectiveConnectivityCluster::properties()
m_voi1Name
=
m_properties
->
addProperty
(
"Name of VOI1"
,
"The name of the VOI1."
,
std
::
string
(
""
),
m_propCondition
);
m_voi2Name
=
m_properties
->
addProperty
(
"Name of VOI2"
,
"The name of the VOI2."
,
std
::
string
(
""
),
m_propCondition
);
m_labelCharacterSize
=
m_properties
->
addProperty
(
"Font
S
ize"
,
"The size of the label fonts."
,
20
,
m_propCondition
);
m_labelCharacterSize
=
m_properties
->
addProperty
(
"Font
s
ize"
,
"The size of the label fonts."
,
20
,
m_propCondition
);
}
void
WMEffectiveConnectivityCluster
::
activate
()
...
...
src/modules/fiberSelection/WMFiberSelection.cpp
View file @
a30bd81f
...
...
@@ -132,13 +132,13 @@ void WMFiberSelection::properties()
m_propCondition
=
boost
::
shared_ptr
<
WCondition
>
(
new
WCondition
()
);
// the threshold for testing whether a fiber vertex is inside a volume of interest.
m_voi1Threshold
=
m_properties
->
addProperty
(
"VOI1
T
hreshold"
,
"The threshold uses for determining whether a fiber is inside the first VOI"
m_voi1Threshold
=
m_properties
->
addProperty
(
"VOI1
t
hreshold"
,
"The threshold uses for determining whether a fiber is inside the first VOI"
"dataset or not."
,
5.0
,
m_propCondition
);
m_voi2Threshold
=
m_properties
->
addProperty
(
"VOI2
T
hreshold"
,
"The threshold uses for determining whether a fiber is inside the second VOI"
m_voi2Threshold
=
m_properties
->
addProperty
(
"VOI2
t
hreshold"
,
"The threshold uses for determining whether a fiber is inside the second VOI"
"dataset or not."
,
5.0
,
m_propCondition
);
m_cutFibers
=
m_properties
->
addProperty
(
"Cut
F
ibers"
,
"Cut the fibers after they gone through both VOI."
,
true
,
m_propCondition
);
m_cutFibers
=
m_properties
->
addProperty
(
"Cut
f
ibers"
,
"Cut the fibers after they gone through both VOI."
,
true
,
m_propCondition
);
m_preferShortestPath
=
m_properties
->
addProperty
(
"Prefer
S
hortest
P
ath"
,
"Determines whether the fibers should be cut on the entry and "
m_preferShortestPath
=
m_properties
->
addProperty
(
"Prefer
s
hortest
p
ath"
,
"Determines whether the fibers should be cut on the entry and "
"exit of a VOI. This should prevent the fibers from going deep into the VOI's."
,
false
,
m_propCondition
);
}
...
...
src/modules/histogramEqualization/WMHistogramEqualization.cpp
View file @
a30bd81f
...
...
@@ -96,7 +96,7 @@ void WMHistogramEqualization::properties()
m_clamp
=
m_clamping
->
addProperty
(
"Clamp values?"
,
"Values below the specified threshold are clamped to min and max respectively."
,
true
,
m_propCondition
);
m_histogramResolution
=
m_clamping
->
addProperty
(
"Histogram
R
esolution"
,
"How many buckets should be used for the initial data histogram?"
,
m_histogramResolution
=
m_clamping
->
addProperty
(
"Histogram
r
esolution"
,
"How many buckets should be used for the initial data histogram?"
,
10000
,
m_propCondition
);
m_histogramResolution
->
setMin
(
10
);
m_histogramResolution
->
setMax
(
1000000
);
...
...
@@ -109,10 +109,10 @@ void WMHistogramEqualization::properties()
// equalizing related props
m_equalizing
=
m_properties
->
addPropertyGroup
(
"Equalizing"
,
"Equalizing values in the dataset."
);
m_equalize
=
m_equalizing
->
addProperty
(
"Equalize
H
istogram"
,
"If true, the dataset's cumulative histogram gets linearized."
,
m_equalize
=
m_equalizing
->
addProperty
(
"Equalize
h
istogram"
,
"If true, the dataset's cumulative histogram gets linearized."
,
true
,
m_propCondition
);
m_cdfResolution
=
m_equalizing
->
addProperty
(
"CDF
H
istogram
R
esolution"
,
m_cdfResolution
=
m_equalizing
->
addProperty
(
"CDF
h
istogram
r
esolution"
,
"How many buckets should be used for the data histogram used for equalizing?"
,
10000
,
m_propCondition
);
m_cdfResolution
->
setMin
(
10
);
...
...
src/modules/isosurfaceRaytracer/WMIsosurfaceRaytracer.cpp
View file @
a30bd81f
...
...
@@ -101,10 +101,10 @@ void WMIsosurfaceRaytracer::properties()
m_isoValue
=
m_properties
->
addProperty
(
"Isovalue"
,
"The isovalue used whenever the isosurface Mode is turned on."
,
50
);
m_isoColor
=
m_properties
->
addProperty
(
"Iso
C
olor"
,
"The color to blend the isosurface with."
,
WColor
(
1.0
,
1.0
,
1.0
,
1.0
),
m_isoColor
=
m_properties
->
addProperty
(
"Iso
c
olor"
,
"The color to blend the isosurface with."
,
WColor
(
1.0
,
1.0
,
1.0
,
1.0
),
m_propCondition
);
m_stepCount
=
m_properties
->
addProperty
(
"Step
C
ount"
,
"The number of steps to walk along the ray during raycasting. A low value "
m_stepCount
=
m_properties
->
addProperty
(
"Step
c
ount"
,
"The number of steps to walk along the ray during raycasting. A low value "
"may cause artifacts whilst a high value slows down rendering."
,
250
);
m_stepCount
->
setMin
(
1
);
m_stepCount
->
setMax
(
1000
);
...
...
@@ -113,10 +113,10 @@ void WMIsosurfaceRaytracer::properties()
// Lighting
m_shadingSelections
=
boost
::
shared_ptr
<
WItemSelection
>
(
new
WItemSelection
()
);
m_shadingSelections
->
addItem
(
"Emphasize
C
ortex"
,
"Emphasize the cortex. Inner parts are not that well lighten."
);
m_shadingSelections
->
addItem
(
"Depth
O
nly"
,
"Only show the depth of the surface along the ray."
);
m_shadingSelections
->
addItem
(
"Emphasize
c
ortex"
,
"Emphasize the cortex. Inner parts are not that well lighten."
);
m_shadingSelections
->
addItem
(
"Depth
o
nly"
,
"Only show the depth of the surface along the ray."
);
m_shadingSelections
->
addItem
(
"Phong"
,
"Phong lighting. Slower but more realistic lighting"
);
m_shadingSelections
->
addItem
(
"Phong +
D
epth"
,
"Phong lighting in combination with depth cueing."
);
m_shadingSelections
->
addItem
(
"Phong +
d
epth"
,
"Phong lighting in combination with depth cueing."
);
m_shadingAlgo
=
m_properties
->
addProperty
(
"Shading"
,
"The shading algorithm."
,
m_shadingSelections
->
getSelectorFirst
(),
m_propCondition
);
WPropertyHelper
::
PC_SELECTONLYONE
::
addTo
(
m_shadingAlgo
);
...
...
src/modules/marchingCubes/WMMarchingCubes.cpp
View file @
a30bd81f
...
...
@@ -196,7 +196,7 @@ void WMMarchingCubes::properties()
m_nbVertices
=
m_infoProperties
->
addProperty
(
"Vertices"
,
"The number of vertices in the produced mesh."
,
0
);
m_nbVertices
->
setMax
(
std
::
numeric_limits
<
int
>::
max
()
);
m_isoValueProp
=
m_properties
->
addProperty
(
"Iso
V
alue"
,
"The surface will show the area that has this value."
,
100.
,
m_recompute
);
m_isoValueProp
=
m_properties
->
addProperty
(
"Iso
v
alue"
,
"The surface will show the area that has this value."
,
100.
,
m_recompute
);
m_isoValueProp
->
setMin
(
wlimits
::
MIN_DOUBLE
);
m_isoValueProp
->
setMax
(
wlimits
::
MAX_DOUBLE
);
{
...
...
@@ -212,16 +212,16 @@ void WMMarchingCubes::properties()
m_opacityProp
->
setMin
(
0
);
m_opacityProp
->
setMax
(
100
);
m_useTextureProp
=
m_properties
->
addProperty
(
"Use
T
exture"
,
"Use texturing of the surface?"
,
false
);
m_useTextureProp
=
m_properties
->
addProperty
(
"Use
t
exture"
,
"Use texturing of the surface?"
,
false
);
m_surfaceColor
=
m_properties
->
addProperty
(
"Surface
C
olor"
,
"Description."
,
WColor
(
0.5
,
0.5
,
0.5
,
1.0
)
);
m_surfaceColor
=
m_properties
->
addProperty
(
"Surface
c
olor"
,
"Description."
,
WColor
(
0.5
,
0.5
,
0.5
,
1.0
)
);
m_savePropGroup
=
m_properties
->
addPropertyGroup
(
"Save Surface"
,
""
);
m_saveTriggerProp
=
m_savePropGroup
->
addProperty
(
"Do
S
ave"
,
"Press!"
,
m_saveTriggerProp
=
m_savePropGroup
->
addProperty
(
"Do
s
ave"
,
"Press!"
,
WPVBaseTypes
::
PV_TRIGGER_READY
);
m_saveTriggerProp
->
getCondition
()
->
subscribeSignal
(
boost
::
bind
(
&
WMMarchingCubes
::
save
,
this
)
);
m_meshFile
=
m_savePropGroup
->
addProperty
(
"Mesh
F
ile"
,
""
,
WPathHelper
::
getAppPath
()
);
m_meshFile
=
m_savePropGroup
->
addProperty
(
"Mesh
f
ile"
,
""
,
WPathHelper
::
getAppPath
()
);
}
void
WMMarchingCubes
::
generateSurfacePre
(
double
isoValue
)
...
...
src/modules/marchingCubes/test/WMMarchingCubes_test.h
View file @
a30bd81f
...
...
@@ -82,8 +82,8 @@ public:
std
::
string
fileName
=
wiotools
::
tempFileName
();
mc
.
m_properties
=
boost
::
shared_ptr
<
WProperties
>
(
new
WProperties
(
"Properties"
,
"Module's properties"
)
);
mc
.
m_savePropGroup
=
mc
.
m_properties
->
addPropertyGroup
(
"Save Surface"
,
""
);
mc
.
m_meshFile
=
mc
.
m_savePropGroup
->
addProperty
(
"Mesh
F
ile"
,
""
,
boost
::
filesystem
::
path
(
fileName
.
c_str
()
)
);
mc
.
m_saveTriggerProp
=
mc
.
m_savePropGroup
->
addProperty
(
"Do
S
ave"
,
"Press!"
,
WPVBaseTypes
::
PV_TRIGGER_READY
);
mc
.
m_meshFile
=
mc
.
m_savePropGroup
->
addProperty
(
"Mesh
f
ile"
,
""
,
boost
::
filesystem
::
path
(
fileName
.
c_str
()
)
);
mc
.
m_saveTriggerProp
=
mc
.
m_savePropGroup
->
addProperty
(
"Do
s
ave"
,
"Press!"
,
WPVBaseTypes
::
PV_TRIGGER_READY
);
bool
result
=
mc
.
save
();
TS_ASSERT_EQUALS
(
result
,
false
);
// should return false as we did not have any vertices or triangles.
...
...
@@ -112,8 +112,8 @@ public:
std
::
string
fileName
=
wiotools
::
tempFileName
();
mc
.
m_properties
=
boost
::
shared_ptr
<
WProperties
>
(
new
WProperties
(
"Properties"
,
"Module's properties"
)
);
mc
.
m_savePropGroup
=
mc
.
m_properties
->
addPropertyGroup
(
"Save Surface"
,
""
);
mc
.
m_meshFile
=
mc
.
m_savePropGroup
->
addProperty
(
"Mesh
F
ile"
,
""
,
boost
::
filesystem
::
path
(
fileName
.
c_str
()
)
);
mc
.
m_saveTriggerProp
=
mc
.
m_savePropGroup
->
addProperty
(
"Do
S
ave"
,
"Press!"
,
WPVBaseTypes
::
PV_TRIGGER_READY
);
mc
.
m_meshFile
=
mc
.
m_savePropGroup
->
addProperty
(
"Mesh
f
ile"
,
""
,
boost
::
filesystem
::
path
(
fileName
.
c_str
()
)
);
mc
.
m_saveTriggerProp
=
mc
.
m_savePropGroup
->
addProperty
(
"Do
s
ave"
,
"Press!"
,
WPVBaseTypes
::
PV_TRIGGER_READY
);
mc
.
save
();
...
...
src/modules/probTractDisplay/WMProbTractDisplay.cpp
View file @
a30bd81f
...
...
@@ -97,23 +97,23 @@ void WMProbTractDisplay::properties()
// Initialize the properties
m_propCondition
=
boost
::
shared_ptr
<
WCondition
>
(
new
WCondition
()
);
m_isoSurface
=
m_properties
->
addProperty
(
"Isosurface
M
ode"
,
"If enabled, the Volume Renderer will render an isosurface and ignores the "
m_isoSurface
=
m_properties
->
addProperty
(
"Isosurface
m
ode"
,
"If enabled, the Volume Renderer will render an isosurface and ignores the "
"transfer function."
,
true
);
m_isoValue0
=
m_properties
->
addProperty
(
"Isovalue 0"
,
"The isovalue used whenever the isosurface Mode is turned on."
,
50
);
m_isoValue1
=
m_properties
->
addProperty
(
"Isovalue 1"
,
"The isovalue used whenever the isosurface Mode is turned on."
,
50
);
m_isoValue2
=
m_properties
->
addProperty
(
"Isovalue 2"
,
"The isovalue used whenever the isosurface Mode is turned on."
,
50
);
m_isoValue3
=
m_properties
->
addProperty
(
"Isovalue 3"
,
"The isovalue used whenever the isosurface Mode is turned on."
,
50
);
m_isoColor0
=
m_properties
->
addProperty
(
"Iso
C
olor 0"
,
"The color to blend the 0'th isosurface with."
,
WColor
(
1.0
,
1.0
,
1.0
,
1.0
),
m_isoColor0
=
m_properties
->
addProperty
(
"Iso
c
olor 0"
,
"The color to blend the 0'th isosurface with."
,
WColor
(
1.0
,
1.0
,
1.0
,
1.0
),
m_propCondition
);
m_isoColor1
=
m_properties
->
addProperty
(
"Iso
C
olor 1"
,
"The color to blend the 1'th isosurface with."
,
WColor
(
1.0
,
1.0
,
1.0
,
1.0
),
m_isoColor1
=
m_properties
->
addProperty
(
"Iso
c
olor 1"
,
"The color to blend the 1'th isosurface with."
,
WColor
(
1.0
,
1.0
,
1.0
,
1.0
),
m_propCondition
);
m_isoColor2
=
m_properties
->
addProperty
(
"Iso
C
olor 2"
,
"The color to blend the 2'th isosurface with."
,
WColor
(
1.0
,
1.0
,
1.0
,
1.0
),
m_isoColor2
=
m_properties
->
addProperty
(
"Iso
c
olor 2"
,
"The color to blend the 2'th isosurface with."
,
WColor
(
1.0
,
1.0
,
1.0
,
1.0
),
m_propCondition
);
m_isoColor3
=
m_properties
->
addProperty
(
"Iso
C
olor 3"
,
"The color to blend the 3'th isosurface with."
,
WColor
(
1.0
,
1.0
,
1.0
,
1.0
),
m_isoColor3
=
m_properties
->
addProperty
(
"Iso
c
olor 3"
,
"The color to blend the 3'th isosurface with."
,
WColor
(
1.0
,
1.0
,
1.0
,
1.0
),
m_propCondition
);
m_stepCount
=
m_properties
->
addProperty
(
"Step
C
ount"
,
"The number of steps to walk along the ray during raycasting. A low value "
m_stepCount
=
m_properties
->
addProperty
(
"Step
c
ount"
,
"The number of steps to walk along the ray during raycasting. A low value "
"may cause artifacts whilst a high value slows down rendering."
,
250
);
m_stepCount
->
setMin
(
1
);
m_stepCount
->
setMax
(
1000
);
...
...
@@ -123,7 +123,7 @@ void WMProbTractDisplay::properties()
m_alpha2
=
m_properties
->
addProperty
(
"Opacity % 2"
,
"The opacity in %. Transparency = 100 - Opacity for the 2'th isosurface"
,
100
);
m_alpha3
=
m_properties
->
addProperty
(
"Opacity % 3"
,
"The opacity in %. Transparency = 100 - Opacity for the 3'th isosurface"
,
100
);
m_useSimpleDepthColoring
=
m_properties
->
addProperty
(
"Use
D
epth
C
ueing"
,
"Enable it to have simple depth dependent coloring only."
,
false
);
m_useSimpleDepthColoring
=
m_properties
->
addProperty
(
"Use
d
epth
c
ueing"
,
"Enable it to have simple depth dependent coloring only."
,
false
);
}
void
WMProbTractDisplay
::
moduleMain
()
...
...
src/modules/splineSurface/WMSplineSurface.cpp
View file @
a30bd81f
...
...
@@ -156,15 +156,15 @@ void WMSplineSurface::properties()
m_opacityProp
->
setMin
(
0
);
m_opacityProp
->
setMax
(
100
);
m_useTextureProp
=
m_properties
->
addProperty
(
"Use
T
exture"
,
"Use texturing of the surface?"
,
false
);
m_useTextureProp
=
m_properties
->
addProperty
(
"Use
t
exture"
,
"Use texturing of the surface?"
,
false
);
m_surfaceColor
=
m_properties
->
addProperty
(
"Surface
C
olor"
,
"Description."
,
WColor
(
0.5
,
0.5
,
0.5
,
1.0
)
);
m_surfaceColor
=
m_properties
->
addProperty
(
"Surface
c
olor"
,
"Description."
,
WColor
(
0.5
,
0.5
,
0.5
,
1.0
)
);
m_savePropGroup
=
m_properties
->
addPropertyGroup
(
"Save Surface"
,
""
);
m_saveTriggerProp
=
m_savePropGroup
->
addProperty
(
"Do
S
ave"
,
"Press!"
,
WPVBaseTypes
::
PV_TRIGGER_READY
);
m_saveTriggerProp
=
m_savePropGroup
->
addProperty
(
"Do
s
ave"
,
"Press!"
,
WPVBaseTypes
::
PV_TRIGGER_READY
);
m_saveTriggerProp
->
getCondition
()
->
subscribeSignal
(
boost
::
bind
(
&
WMSplineSurface
::
save
,
this
)
);
m_meshFile
=
m_savePropGroup
->
addProperty
(
"Mesh
F
ile"
,
""
,
WPathHelper
::
getAppPath
()
);
m_meshFile
=
m_savePropGroup
->
addProperty
(
"Mesh
f
ile"
,
""
,
WPathHelper
::
getAppPath
()
);
}
void
WMSplineSurface
::
renderMesh
()
...
...
src/modules/superquadricGlyphs/WMSuperquadricGlyphs.cpp
View file @
a30bd81f
...
...
@@ -94,9 +94,9 @@ void WMSuperquadricGlyphs::properties()
m_propCondition
=
boost
::
shared_ptr
<
WCondition
>
(
new
WCondition
()
);
// The slice positions. These get update externally
m_xPos
=
m_properties
->
addProperty
(
"Sagittal
P
osition"
,
"Slice X position."
,
80
,
m_propCondition
);
m_yPos
=
m_properties
->
addProperty
(
"Coronal
P
osition"
,
"Slice Y position."
,
100
,
m_propCondition
);
m_zPos
=
m_properties
->
addProperty
(
"Axial
P
osition"
,
"Slice Z position."
,
80
,
m_propCondition
);
m_xPos
=
m_properties
->
addProperty
(
"Sagittal
p
osition"
,
"Slice X position."
,
80
,
m_propCondition
);
m_yPos
=
m_properties
->
addProperty
(
"Coronal
p
osition"
,
"Slice Y position."
,
100
,
m_propCondition
);
m_zPos
=
m_properties
->
addProperty
(
"Axial
p
osition"
,
"Slice Z position."
,
80
,
m_propCondition
);
m_xPos
->
setMin
(
0
);
m_xPos
->
setMax
(
159
);
m_yPos
->
setMin
(
0
);
...
...
@@ -105,16 +105,16 @@ void WMSuperquadricGlyphs::properties()
m_zPos
->
setMax
(
159
);
// Flags denoting whether the glyphs should be shown on the specific slice
m_showonX
=
m_properties
->
addProperty
(
"Show
S
agittal"
,
"Show vectors on sagittal slice."
,
true
,
m_propCondition
);
m_showonY
=
m_properties
->
addProperty
(
"Show
C
oronal"
,
"Show vectors on coronal slice."
,
true
,
m_propCondition
);
m_showonZ
=
m_properties
->
addProperty
(
"Show
A
xial"
,
"Show vectors on axial slice."
,
true
,
m_propCondition
);
m_showonX
=
m_properties
->
addProperty
(
"Show
s
agittal"
,
"Show vectors on sagittal slice."
,
true
,
m_propCondition
);
m_showonY
=
m_properties
->
addProperty
(
"Show
c
oronal"
,
"Show vectors on coronal slice."
,
true
,
m_propCondition
);
m_showonZ
=
m_properties
->
addProperty
(
"Show
a
xial"
,
"Show vectors on axial slice."
,
true
,
m_propCondition
);
// Thresholding for filtering glyphs
m_evThreshold
=
m_properties
->
addProperty
(
"Eigenvalue
T
hreshold"
,
m_evThreshold
=
m_properties
->
addProperty
(
"Eigenvalue
t
hreshold"
,
"Clip Glyphs whose smallest eigenvalue is below the given threshold."
,
0.01
);
m_evThreshold
->
setMin
(
0.0
);
m_evThreshold
->
setMax
(
1.0
);
m_faThreshold
=
m_properties
->
addProperty
(
"FA
T
hreshold"
,
m_faThreshold
=
m_properties
->
addProperty
(
"FA
t
hreshold"
,
"Clip Glyphs whose fractional anisotropy is below the given threshold."
,
0.01
);
m_faThreshold
->
setMin
(
0.0
);
m_faThreshold
->
setMax
(
1.0
);
...
...
@@ -127,7 +127,7 @@ void WMSuperquadricGlyphs::properties()
m_scaling
->
setMin
(
0.0
);
m_scaling
->
setMax
(
2.0
);
m_unifyEV
=
m_properties
->
addProperty
(
"Unify
E
igenvalues"
,
"Unify the eigenvalues?."
,
false
);
m_unifyEV
=
m_properties
->
addProperty
(
"Unify
e
igenvalues"
,
"Unify the eigenvalues?."
,
false
);
}
inline
void
WMSuperquadricGlyphs
::
addGlyph
(
osg
::
Vec3
position
,
osg
::
ref_ptr
<
osg
::
Vec3Array
>
vertices
,
osg
::
ref_ptr
<
osg
::
Vec3Array
>
orientation
)
...
...
src/modules/surfaceParameterAnimator/WMSurfaceParameterAnimator.cpp
View file @
a30bd81f
...
...
@@ -110,25 +110,25 @@ void WMSurfaceParameterAnimator::properties()
m_isoValue
=
m_properties
->
addProperty
(
"Isovalue"
,
"The Isovalue used whenever the Isosurface Mode is turned on."
,
50
);
m_stepCount
=
m_properties
->
addProperty
(
"Step
C
ount"
,
"The number of steps to walk along the ray during raycasting. A low value"
m_stepCount
=
m_properties
->
addProperty
(
"Step
c
ount"
,
"The number of steps to walk along the ray during raycasting. A low value"
"may cause artifacts whilst a high value slows down rendering."
,
250
);
m_stepCount
->
setMin
(
1
);
m_stepCount
->
setMax
(
1000
);
m_alpha
=
m_properties
->
addProperty
(
"Opacity %"
,
"The opacity in %. Transparency = 100 - Opacity."
,
100
);
m_isoColor
=
m_properties
->
addProperty
(
"Iso
C
olor"
,
"The color to blend the isosurface with."
,
WColor
(
0.0
,
0.0
,
0.0
,
1.0
),
m_isoColor
=
m_properties
->
addProperty
(
"Iso
c
olor"
,
"The color to blend the isosurface with."
,
WColor
(
0.0
,
0.0
,
0.0
,
1.0
),
m_propCondition
);
m_saturation
=
m_properties
->
addProperty
(
"Saturation %"
,
"The saturation in %."
,
100
);
m_size1
=
m_properties
->
addProperty
(
"Beam1
S
ize"
,
"The relative size of the first beam. A value of 0 gets mapped to the "
m_size1
=
m_properties
->
addProperty
(
"Beam1
s
ize"
,
"The relative size of the first beam. A value of 0 gets mapped to the "
"smallest size, whilst 100 gets mapped to the largest. This is typically "
"one third of the size of the voxelized surface."
,
10
);
m_size2
=
m_properties
->
addProperty
(
"Beam2
S
ize"
,
"The relative size of the second beam. A value of 0 gets mapped to the "
m_size2
=
m_properties
->
addProperty
(
"Beam2
s
ize"
,
"The relative size of the second beam. A value of 0 gets mapped to the "
"smallest size, whilst 100 gets mapped to the largest. This is typically "
"one third of the size of the voxelized surface."
,
50
);
m_speed1
=
m_properties
->
addProperty
(
"Beam1
S
peed"
,
"The relative speed of the beam. This speed relates to the clock used."
,
25
);
m_speed2
=
m_properties
->
addProperty
(
"Beam2
S
peed"
,
"The relative speed of the beam. This speed relates to the clock used."
,
25
);
m_parameterScale
=
m_properties
->
addProperty
(
"Parameter
S
cale"
,
"Scaling the parameter space on the fly creates consistently sized and fast "
m_speed1
=
m_properties
->
addProperty
(
"Beam1
s
peed"
,
"The relative speed of the beam. This speed relates to the clock used."
,
25
);
m_speed2
=
m_properties
->
addProperty
(
"Beam2
s
peed"
,
"The relative speed of the beam. This speed relates to the clock used."
,
25
);
m_parameterScale
=
m_properties
->
addProperty
(
"Parameter
s
cale"
,
"Scaling the parameter space on the fly creates consistently sized and fast "
"beams over multiple WMSurfaceParameterAnimator instances."
,
1.0
);
}
...
...
src/modules/vectorPlot/WMVectorPlot.cpp
View file @
a30bd81f
...
...
@@ -97,15 +97,15 @@ void WMVectorPlot::properties()
"used to place them. Thus their "
"representation is tangential to the surface."
,
false
);
m_coloringMode
=
m_properties
->
addProperty
(
"Direction
C
oloring"
,
m_coloringMode
=
m_properties
->
addProperty
(
"Direction
c
oloring"
,
"Draw each vector in a color indicating its direction. "
,
false
);
m_aColor
=
m_properties
->
addProperty
(
"Color"
,
"This color is used if direction coloring is deactivated."
,
WColor
(
1.0
,
0.0
,
0.0
,
1.0
)
);
m_showonX
=
m_properties
->
addProperty
(
"Show
S
agittal"
,
"Show vectors on sagittal slice."
,
true
);
m_showonY
=
m_properties
->
addProperty
(
"Show
C
oronal"
,
"Show vectors on coronal slice."
,
true
);
m_showonZ
=
m_properties
->
addProperty
(
"Show
A
xial"
,
"Show vectors on axial slice."
,
true
);
m_showonX
=
m_properties
->
addProperty
(
"Show
s
agittal"
,
"Show vectors on sagittal slice."
,
true
);
m_showonY
=
m_properties
->
addProperty
(
"Show
c
oronal"
,
"Show vectors on coronal slice."
,
true
);
m_showonZ
=
m_properties
->
addProperty
(
"Show
a
xial"
,
"Show vectors on axial slice."
,
true
);
m_xPos
->
setMin
(
0
);
m_xPos
->
setMax
(
160
);
...
...
src/modules/voxelizer/WMVoxelizer.cpp
View file @
a30bd81f
...
...
@@ -153,7 +153,7 @@ void WMVoxelizer::properties()
m_drawVoxels
=
m_properties
->
addProperty
(
"Display Voxels"
,
"Enable/Disable drawing of marked voxels."
,
true
,
m_fullUpdate
);
m_rasterAlgo
=
m_properties
->
addProperty
(
"Raster Algo"
,
"Specifies the algorithm you may want to use for voxelization."
,
std
::
string
(
"WBresenham"
),
m_fullUpdate
);
m_voxelsPerUnit
=
m_properties
->
addProperty
(
"Voxels per
U
nit"
,
"Specified the number of voxels per unit in the coordinate system. This "
m_voxelsPerUnit
=
m_properties
->
addProperty
(
"Voxels per
u
nit"
,
"Specified the number of voxels per unit in the coordinate system. This "
"is useful to increase the resolution of the grid"
,
1
,
m_fullUpdate
);
m_parameterAlgo
=
m_properties
->
addProperty
(
"Parameterization"
,
"Select the parameterization algorithm."
,
m_paramAlgoSelections
->
getSelectorFirst
(),
m_fullUpdate
);
...
...
src/modules/writeNIfTI/WMWriteNIfTI.cpp
View file @
a30bd81f
...
...
@@ -132,7 +132,7 @@ void WMWriteNIfTI::properties()
{
m_filename
=
m_properties
->
addProperty
(
"Filename"
,
"Filename where to write the NIfTI file to."
,
WPathHelper
::
getAppPath
()
);
m_saveTriggerProp
=
m_properties
->
addProperty
(
"Do
S
ave"
,
"Press!"
,
m_saveTriggerProp
=
m_properties
->
addProperty
(
"Do
s
ave"
,
"Press!"
,
WPVBaseTypes
::
PV_TRIGGER_READY
);
m_saveTriggerProp
->
getCondition
()
->
subscribeSignal
(
boost
::
bind
(
&
WMWriteNIfTI
::
writeToFile
,
this
)
);
}
...
...
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