一般而言,我們想要解決一個問題的方法有很多種,然而在程式設計的世界裡,也是一樣的。程式設計師想要寫一個程式來達成某種目的,自然而然寫法就有千百種。所以如果要對程式碼進行視覺化,一個問題的視覺化呈現可能就只有一種,但是程式實作的方法可能有很多種並且資料結構的差異也很大。 本實驗室的程式3D視覺化工具xDIVA是基於物件來產生視覺化的結果,所以當程式碼撰寫的方式非常不物件導向的情況下,程式設計師所要繪製的圖形不存在於真正的物件,而是以其他形式表達,xDIVA可能無法呈現程式設計師心中所想要的視覺化結果。 作為一個程式視覺化工具,xDIVA不能要求程式設計師要以某種限制來撰寫程式碼,才能進行視覺化。所以本研究提出了Virtual Object的解決方案。藉由此功能,讓使用xDIVA的程式設計師能夠輕輕鬆鬆地產生出不存在於程式碼中的物件,如此一來,就能對這些虛擬物件進行視覺化,來完成其心中所期望的視覺化結果。 ;In general, there are many ways to solve a problem. It is the same in the world of programming. Programmers may want to write a program to solve a problem, but there are many kinds of implementation. Therefore, if we want to visualize a problem, there may be only one visualization of a program, but the implementations and data structures can vary significantly. The 3D program visualization tool xDIVA in our lab is based on objects to produce visualizations. If the code is written in a way that is not object-oriented, xDIVA may not be able to render the visualization expected by the programmer. Because the graphics that the programmer wants to draw are expressed in other forms. Instead of the real objects. As a program visualization tool, xDIVA cannot limit programmers to write code in some fixed way to be visualized. So this study presents a solution called virtual objects. With this feature, programmers can produce objects from existing variables for xDIVA′s type mapping to work on. These virtual objects can be used to bridge non-object-oriented programs so that expected visualization can be accomplished.