Previous

Section

<<<

Isosurface Generation using VTK

Next

Section

>>>

 

 

 

4. Creating the Application

 

Now that the basics of Python, Tkinter, and VTK have been covered, it is time to put everything together into an application that views isosurfaces.  It will be necessary to use the prerequisite classes made by the author which include the following: GUIFactory and SliderWithValue.  The classes that will be created to make this application work are the following:

 

·        GUI: This class will allow the application that to create the main window and its supporting dialogs.  Because of the author’s programming difficulties with modal dialog boxes, all dialog boxes will appear minimized when the program begins and should not be closed because they will not reappear (it’s best not to ask about this; the author needs more time to thoroughly study this problem).

·        VTKRender: The class used for creating and updating the VTK pipeline.

·        DialogOptionVOI: This class will create a dialog for adjusting the sampling rate for the selected volume of interest.

·        DialogIsosurfaces: The class will create a dialog for adjusting the color and opacity of the predefined bone and skin isosurfaces.

 

Things could be a little more dynamic such as setting the volume of interest instead of selecting predefined volumes, but this is what is available for now.  In the sections that follow, each class will be highlighted in addition to providing the code for these classes.  Not all of the code is “cleaned up” because the author spent more time putting together the tutorial rather than enhancing and cleaning up the code.

 

 

<<< Previous

Trying Different Volumes of Interest and Sampling Rates

 

Table of Contents

 

Next >>>

GUI