Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Mirrors
SuperElastix
Commits
6c597022
Commit
6c597022
authored
Feb 01, 2017
by
Floris Berendsen
Browse files
COMP: cleaned up unused CloneGraph functionality
parent
fb838449
Changes
2
Hide whitespace changes
Inline
Side-by-side
Modules/Core/Blueprints/src/selxBlueprintImpl.cxx
View file @
6c597022
...
...
@@ -94,27 +94,6 @@ inline edge_label_writer< ParameterMapType >
}
struct
Blueprint
::
BlueprintImpl
::
do_nothing
{
template
<
typename
VertexOrEdge1
,
typename
VertexOrEdge2
>
void
operator
()(
const
VertexOrEdge1
&
,
VertexOrEdge2
&
)
const
{
}
};
//Used in CloneGraph
struct
Blueprint
::
BlueprintImpl
::
vertex_copier
{
ComponentPropertyType
&
from
;
ComponentPropertyType
&
to
;
void
operator
()(
GraphType
::
vertex_descriptor
input
,
GraphType
::
vertex_descriptor
output
)
const
{
//TODO !
//to[output] = { from[input]};
//to.name = from.name ;
//to.name = from.name;
}
};
bool
Blueprint
::
BlueprintImpl
::
SetComponent
(
ComponentNameType
name
,
ParameterMapType
parameterMap
)
...
...
@@ -240,27 +219,12 @@ Blueprint::BlueprintImpl
return
boost
::
edge_by_label
(
upstream
,
downstream
,
this
->
m_Graph
).
second
;
}
Blueprint
::
BlueprintImpl
::
GraphType
Blueprint
::
BlueprintImpl
::
CloneGraph
(
void
)
const
{
GraphType
clone
=
GraphType
(
this
->
m_Graph
);
// TODO!
//boost::copy_graph(this->m_Graph, clone, boost::vertex_copy(do_nothing()).edge_copy(do_nothing()));
//boost::copy_graph(this->m_Graph, clone, boost::vertex_copy(vertex_copier( this->m_Graph, clone )));
//boost::copy_graph(this->m_Graph, clone);
return
clone
;
}
bool
Blueprint
::
BlueprintImpl
::
ComposeWith
(
std
::
unique_ptr
<
Blueprint
>
const
&
other
)
{
// Make a backup of the current blueprint status in case composition fails
GraphType
graph_backup
=
this
->
Clone
Graph
(
);
GraphType
graph_backup
=
GraphType
(
this
->
m_
Graph
);
for
(
auto
const
&
componentName
:
other
->
GetComponentNames
())
{
...
...
Modules/Core/Blueprints/src/selxBlueprintImpl.h
View file @
6c597022
...
...
@@ -50,9 +50,6 @@ struct Blueprint::BlueprintImpl {
ParameterMapType
parameterMap
;
};
struct
vertex_copier
;
struct
do_nothing
;
typedef
boost
::
labeled_graph
<
boost
::
adjacency_list
<
boost
::
vecS
,
...
...
@@ -107,8 +104,6 @@ struct Blueprint::BlueprintImpl {
void
Write
(
const
std
::
string
filename
);
ConnectionIndexType
GetConnectionIndex
(
ComponentNameType
upsteam
,
ComponentNameType
downstream
)
const
;
GraphType
CloneGraph
(
void
)
const
;
GraphType
m_Graph
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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