Master's Thesis - Computer Graphics and Visualization - TU Delft
Master's Thesis - Computer Graphics and Visualization - TU Delft
Master's Thesis - Computer Graphics and Visualization - TU Delft
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
Table B-5 Functionalities of class Kernel.<br />
Functions Functionalities<br />
__init__ -Create an instance of TCL interpreter, named it as Root.<br />
-Load Culgi.DLL to the Tcl interpreter<br />
-Create a instance of class Manager<br />
ScanLibrary() -Scan all subfolders in Folder CMLib, <strong>and</strong> the files in each subfolder.<br />
-Create or rewrite files which are named “syslib.def” in folder CMLib <strong>and</strong> all<br />
subfolders.<br />
Create Node() -Call buildNode()<br />
-The File “syslib.def” in CMLib will record all the modules.<br />
-The “syslib.def” in a subfolder will record all the modules in this category.<br />
-Call buildNodeIcon()<br />
buildNode() -Import a module into the Python system according to the name passed from<br />
interface part.<br />
-If the module has already in Python system, delete the original one in the<br />
Python system, <strong>and</strong> reload again. By doing this, user can reload a module after<br />
modified this module without restarting the system.<br />
-Compile the module<br />
-Create an instance of this module.<br />
-Kernel will add the instance to the Manager as well.<br />
buildNodeIcon() -Call node.buildIcon() to create the interface of the node<br />
DeleteNode() -Delete all the icons of the module instance.<br />
-Remove it from Manager.<br />
-Destroy it.<br />
showView1 -Call node.showView1()<br />
showView2 -Call node.showView2()<br />
showView3 -Call node.showView3()<br />
showView4 -Call node.showView4()<br />
zoomIn -Call node.zoomIn()<br />
zoomOut -Call node.zoomOut()<br />
Run the program -Run the whole user program according to some special order. The order is<br />
determined according to the different strategy<br />
- 63 -