nodeview: started core node filtering work

This commit is contained in:
itsmattkc
2020-05-11 22:48:27 +10:00
parent 9c30f13a2e
commit ce58671fd6
10 changed files with 224 additions and 38 deletions
-11
View File
@@ -219,17 +219,11 @@ void NodeViewScene::AddEdge(NodeEdgePtr edge)
addItem(edge_ui);
edge_map_.insert(edge.get(), edge_ui);
// FIXME: Not optimal, fairly brute force/shotgun approach to positioning
ReorganizeFrom(static_cast<Sequence*>(graph_)->viewer_output());
}
void NodeViewScene::RemoveEdge(NodeEdgePtr edge)
{
delete edge_map_.take(edge.get());
// FIXME: Not optimal, fairly brute force/shotgun approach to positioning
ReorganizeFrom(static_cast<Sequence*>(graph_)->viewer_output());
}
int NodeViewScene::DetermineWeight(Node *n)
@@ -290,11 +284,6 @@ void NodeViewScene::ReorganizeFrom(Node* n)
}
}
void NodeViewScene::SetFilterMode(const NodeViewScene::FilterMode &f)
{
filter_mode_ = f;
}
bool NodeViewScene::GetEdgesAreCurved() const
{
return curved_edges_;