Presentation is loading. Please wait.

Presentation is loading. Please wait.

10 주 실습강의 XML Visualization(2) 2009. 1 학기, 소프트웨어 설계 및 실험 ( Ⅰ )

Similar presentations


Presentation on theme: "10 주 실습강의 XML Visualization(2) 2009. 1 학기, 소프트웨어 설계 및 실험 ( Ⅰ )"— Presentation transcript:

1 10 주 실습강의 XML Visualization(2) 2009. 1 학기, 소프트웨어 설계 및 실험 ( Ⅰ )

2 Artificial Intelligence Laboratory 실습목표

3 Artificial Intelligence Laboratory The Confidence Man Output ElementStart=book AttributeQName=genre AttributeValue=novel ElementStart=title TextValue=The Confidence Man ElementEnd=title ElementEnd=book

4 Artificial Intelligence Laboratory LEDA ?  Library  C++ 클래스 라이브러리로 구현되었음.  많은 양의 data type(stack, heap, graph,…), 알고리즘 제 공  사용하기 편리  빠른 속도, 안정성  Manual, Reference 제공  상용 ( 학습용으로 free edition 제공 )

5 Artificial Intelligence Laboratory LEDA 사용법  Borame.cs.pusan.ac.kr 에서 download  압축해제  프로젝트 생성  프로젝트 속성  C/C++ -> 일반 -> 추가 포함 디렉토리  \incl 추가  C/C++ -> 전처리기 -> 전처리기 정의  ;LEDA_DLL 추가  링커 -> 일반 -> 추가 라이브러리 디렉토리  추가  링커 -> 입력 -> 추가 종속성  libGeoW_mdd_dll.lib  Leda_mdd.lib 추가  파일 복사 leda_mdd.dll

6 Artificial Intelligence Laboratory LEDA  LEDA Test  Main.cpp 추가  Leda demo 에 있는거 이것 저것 실행시켜본다.  http://www.algorithmic-solutions.com/ http://www.algorithmic-solutions.com/

7 Artificial Intelligence Laboratory LEDA graphwin #include using namespace leda; int main(int argc, char * argv){ GraphWin gw; gw.display(window::center, window::center); gw.edit(); return 0; }

8 Artificial Intelligence Laboratory LEDA graphwin

9 Artificial Intelligence Laboratory LEDA graphwin  Graph  node, edge 의 집합  GraphWin  그래프의 생성, 디스플레이, 조작 및 에니메이션  node, edge 의 추가 및 디스플레이 설정 가능  http://www.algorithmic-solutions.info/leda_manual/GraphWin.html http://www.algorithmic-solutions.info/leda_manual/GraphWin.html

10 Artificial Intelligence Laboratory LEDA graphwin #include using namespace leda; int main(int argc, char * argv){ GraphWin gw; gw.display(window::center, window::center); gw.edit(); return 0; }

11 Artificial Intelligence Laboratory LEDA graphwin #include using namespace leda; int main(int argc, char * argv){ GraphWin gw; gw.display(window::center, window::center); gw.new_node(point(50,50)); gw.edit(); return 0; }

12 Artificial Intelligence Laboratory LEDA graphwin node n1 = nil; node n2 = nil; n1 = gw.new_node(point(50,50)); n2 = gw.new_node(point(100, 100)); gw.new_edge(n1, n2);

13 Artificial Intelligence Laboratory LEDA graphwin node n1; list nodeList; gw.set_node_width(90); n1 = gw.new_node(point(50,50)); gw.set_label(n1, "first node"); gw.set_shape(n1, rectangle_node); nodeList.push_back(n1); n1 = gw.new_node(point(150,150)); gw.set_label(n1, "second node"); gw.new_edge(nodeList.back(), n1);

14 Artificial Intelligence Laboratory 구현방법  startElement event 발생시 해당 element 의 이름으로 그 래프의 노드 추가  Attributes 가 있으면 해당 element 에 추가

15 Artificial Intelligence Laboratory


Download ppt "10 주 실습강의 XML Visualization(2) 2009. 1 학기, 소프트웨어 설계 및 실험 ( Ⅰ )"

Similar presentations


Ads by Google