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 Modules
Commits
c9d3c184
Commit
c9d3c184
authored
Feb 18, 2013
by
Sebastian Eichelbaum
Browse files
[FIX #246] replaced shared_dynamic_cast by dynamic_pointer_cast
parent
e3e53d01
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
8 deletions
+8
-8
FiberClusteringToolbox/src/clusterSlicer/WMClusterSlicer.cpp
FiberClusteringToolbox/src/clusterSlicer/WMClusterSlicer.cpp
+2
-2
FiberStippleToolbox/src/fiberStipples/WMFiberStipples.cpp
FiberStippleToolbox/src/fiberStipples/WMFiberStipples.cpp
+2
-2
FiberStippleToolbox/src/isoLines/WMIsoLines.cpp
FiberStippleToolbox/src/isoLines/WMIsoLines.cpp
+1
-1
TransferCalcToolbox/src/transferCalc/WMTransferCalc.cpp
TransferCalcToolbox/src/transferCalc/WMTransferCalc.cpp
+3
-3
No files found.
FiberClusteringToolbox/src/clusterSlicer/WMClusterSlicer.cpp
View file @
c9d3c184
...
...
@@ -234,7 +234,7 @@ WValue< double > WMClusterSlicer::meanParameter( boost::shared_ptr< std::set< WP
std
::
vector
<
double
>
samples
;
samples
.
reserve
(
samplePoints
->
size
()
);
boost
::
shared_ptr
<
WGridRegular3D
>
grid
=
boost
::
shared_
dynamic_cast
<
WGridRegular3D
>
(
m_clusterDS
->
getGrid
()
);
boost
::
shared_ptr
<
WGridRegular3D
>
grid
=
boost
::
dynamic
_pointer
_cast
<
WGridRegular3D
>
(
m_clusterDS
->
getGrid
()
);
assert
(
grid
!=
0
);
for
(
std
::
set
<
WPosition
>::
iterator
pos
=
samplePoints
->
begin
();
pos
!=
samplePoints
->
end
();
)
...
...
@@ -575,7 +575,7 @@ void WMClusterSlicer::updateDisplay( bool force )
osg
::
ref_ptr
<
osg
::
Geode
>
WMClusterSlicer
::
generateIsoVoxelGeode
()
const
{
boost
::
shared_ptr
<
std
::
set
<
WPosition
>
>
points
(
new
std
::
set
<
WPosition
>
);
boost
::
shared_ptr
<
WGridRegular3D
>
grid
=
boost
::
shared_
dynamic_cast
<
WGridRegular3D
>
(
m_clusterDS
->
getGrid
()
);
boost
::
shared_ptr
<
WGridRegular3D
>
grid
=
boost
::
dynamic
_pointer
_cast
<
WGridRegular3D
>
(
m_clusterDS
->
getGrid
()
);
assert
(
grid
!=
0
);
for
(
std
::
set
<
size_t
>::
const_iterator
cit
=
m_isoVoxels
->
begin
();
cit
!=
m_isoVoxels
->
end
();
++
cit
)
{
...
...
FiberStippleToolbox/src/fiberStipples/WMFiberStipples.cpp
View file @
c9d3c184
...
...
@@ -224,7 +224,7 @@ void WMFiberStipples::initOSG( boost::shared_ptr< WDataSetScalar > probTract )
osg
::
ref_ptr
<
osg
::
Uniform
>
u_aVec
=
new
osg
::
Uniform
(
"u_aVec"
,
osg
::
Vec3
(
sizes
[
0
],
0.0
,
0.0
)
);
osg
::
ref_ptr
<
osg
::
Uniform
>
u_bVec
=
new
osg
::
Uniform
(
"u_bVec"
,
osg
::
Vec3
(
0.0
,
0.0
,
sizes
[
2
]
)
);
osg
::
ref_ptr
<
osg
::
Uniform
>
u_WorldTransform
=
new
osg
::
Uniform
(
"u_WorldTransform"
,
osg
::
Matrix
::
identity
()
);
boost
::
shared_ptr
<
const
WGridRegular3D
>
grid
=
boost
::
shared_
dynamic_cast
<
const
WGridRegular3D
>
(
probTract
->
getGrid
()
);
boost
::
shared_ptr
<
const
WGridRegular3D
>
grid
=
boost
::
dynamic
_pointer
_cast
<
const
WGridRegular3D
>
(
probTract
->
getGrid
()
);
if
(
!
grid
)
{
errorLog
()
<<
"This module can only process probabilistic Tracts with regular 3D grids, Hence you may see garbage from now on."
;
...
...
@@ -294,7 +294,7 @@ void WMFiberStipples::moduleMain()
boost
::
shared_ptr
<
WDataSetVector
>
vectors
=
m_vectorIC
->
getData
();
boost
::
shared_ptr
<
WDataSetScalar
>
probTract
=
m_probIC
->
getData
();
if
(
!
(
vectors
&&
probTract
)
||
!
boost
::
shared_
dynamic_cast
<
WGridRegular3D
>
(
probTract
->
getGrid
()
)
)
// if data valid
if
(
!
(
vectors
&&
probTract
)
||
!
boost
::
dynamic
_pointer
_cast
<
WGridRegular3D
>
(
probTract
->
getGrid
()
)
)
// if data valid
{
continue
;
}
...
...
FiberStippleToolbox/src/isoLines/WMIsoLines.cpp
View file @
c9d3c184
...
...
@@ -119,7 +119,7 @@ namespace
osg
::
Vec3
bNorm
=
b
;
bNorm
.
normalize
();
boost
::
shared_ptr
<
WGridRegular3D
>
grid
=
boost
::
shared_
dynamic_cast
<
WGridRegular3D
>
(
data
->
getGrid
()
);
boost
::
shared_ptr
<
WGridRegular3D
>
grid
=
boost
::
dynamic
_pointer
_cast
<
WGridRegular3D
>
(
data
->
getGrid
()
);
if
(
grid
)
{
...
...
TransferCalcToolbox/src/transferCalc/WMTransferCalc.cpp
View file @
c9d3c184
...
...
@@ -394,7 +394,7 @@ void WMTransferCalc::moduleMain()
else
{
// grab the grid
m_grid
=
boost
::
shared_
dynamic_cast
<
WGridRegular3D
>
(
m_dataSet
->
getGrid
()
);
m_grid
=
boost
::
dynamic
_pointer
_cast
<
WGridRegular3D
>
(
m_dataSet
->
getGrid
()
);
if
(
!
m_grid
)
{
errorLog
()
<<
"The dataset does not provide a regular grid. Ignoring dataset."
;
...
...
@@ -420,7 +420,7 @@ void WMTransferCalc::moduleMain()
else
{
// grab the grid
m_deriGrid
=
boost
::
shared_
dynamic_cast
<
WGridRegular3D
>
(
m_deriDataSet
->
getGrid
()
);
m_deriGrid
=
boost
::
dynamic
_pointer
_cast
<
WGridRegular3D
>
(
m_deriDataSet
->
getGrid
()
);
if
(
!
m_deriGrid
)
{
errorLog
()
<<
"The derivated dataset does not provide a regular grid. Ignoring dataset."
;
...
...
@@ -453,7 +453,7 @@ void WMTransferCalc::moduleMain()
else
{
// grab the grid
m_FAgrid
=
boost
::
shared_
dynamic_cast
<
WGridRegular3D
>
(
m_FAdataSet
->
getGrid
()
);
m_FAgrid
=
boost
::
dynamic
_pointer
_cast
<
WGridRegular3D
>
(
m_FAdataSet
->
getGrid
()
);
if
(
!
m_FAgrid
)
{
errorLog
()
<<
"The FA dataset does not provide a regular grid. Ignoring dataset."
;
...
...
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