Toggle navigation
Toggle navigation
This project
Loading...
Sign in
조성현
/
graph-visualization
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
조성현
2017-04-13 09:09:02 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
7df620cff0e0d746f4621445b489f0e86893f903
7df620cf
1 parent
8329d969
init graph as null
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
1 deletions
PaperGraph/GraphItem.cpp
PaperGraph/MainWindow.cpp
PaperGraph/PaperGraphWidget.cpp
PaperGraph/PaperGraphWidget.h
PaperGraph/GraphItem.cpp
View file @
7df620c
...
...
@@ -266,6 +266,8 @@ void GraphItem::path_highlighting(std::string start, std::string end)
n
->
setColor
(
QColor
(
255
,
0
,
0
));
}
}
}
//event handler
...
...
PaperGraph/MainWindow.cpp
View file @
7df620c
...
...
@@ -40,4 +40,5 @@ void MainWindow::test_func()
/*QMessageBox::information(this, "test",
"test: "+QString::number(11));*/
graphWidget
->
path_highlight
();
//graphWidget->update();
}
\ No newline at end of file
...
...
PaperGraph/PaperGraphWidget.cpp
View file @
7df620c
...
...
@@ -45,6 +45,7 @@ void PaperGraphWidget::print_graph(ifstream& fin)
void
PaperGraphWidget
::
path_highlight
()
{
graphItem
->
path_highlighting
(
std
::
string
(
""
),
std
::
string
(
""
));
scene
->
update
();
}
void
PaperGraphWidget
::
handleSelectionChanged
(
int
idx
)
...
...
PaperGraph/PaperGraphWidget.h
View file @
7df620c
...
...
@@ -27,7 +27,7 @@ private:
//Ui::PaperGraphWidgetClass ui;
QGraphicsScene
*
scene
;
GraphItem
*
graphItem
;
GraphItem
*
graphItem
=
nullptr
;
};
#endif // PAPERGRAPHWIDGET_H
...
...
Please
register
or
login
to post a comment