Difference between revisions of "Slicer3:SkeletonGenerator"

From NAMIC Wiki
Jump to: navigation, search
Line 1: Line 1:
 
==Introduction==
 
==Introduction==
 
The Skeleton Generator is a simple program to generate template codes for 3D Slicer module and help developers to get started on their development. A source code generated by the Skeleton Generator can immediately be compiled and executed as a 3D Slicer module. The developers can create their own modules by just modifying the codes.
 
The Skeleton Generator is a simple program to generate template codes for 3D Slicer module and help developers to get started on their development. A source code generated by the Skeleton Generator can immediately be compiled and executed as a 3D Slicer module. The developers can create their own modules by just modifying the codes.
 +
 +
==Getting Started==
 +
===Requirement===
 +
The Skeleton Generator is written in Tcl. You need to have Tcl interpreter to run on you computer. It generates a Slicer3 Module C++ code, which can be compiled on Windows/Linux/Mac OS X.
 +
 +
===Get the program===
 +
The program is available in the NA-MIC SandBox repository. You can obtain the source code by using Subversion. In case of Linux and Mac OS X, simply type following command in the terminal:
 +
 +
  svn co http://svn.na-mic.org/NAMICSandBox/trunk/IGTLodableModules/SkeletonGenerator SkeletonGenerator
 +
 +
===How to use it===
 +
Go to working directory and just run the script. Suppose working director is "./work", Skeleton Generator is in /home/junichi/SkeletonGenrator and the name of the module you will create is "NewModule"
 +
 +
  $ mkdir work
 +
  $ cd work
 +
  $ /home/junichi/SkeltonGenerator/generate.tcl --name=NewModule
 +
 +
Then the program creates a directory named "NewModule" and generate template codes there.
 +
 +
  $ cd NewModule
 +
  $ ls
 +
  CMakeLists.txt            vtkNewModuleGUI.h
 +
  NewModule.txt              vtkNewModuleLogic.cxx
 +
  vtkNewModuleConfigure.h.in vtkNewModuleLogic.h
 +
  vtkNewModuleGUI.cxx        vtkNewModuleWin32Header.h
  
 
==People==
 
==People==
 
*[[User:Tokuda| Junichi Tokuda]]
 
*[[User:Tokuda| Junichi Tokuda]]

Revision as of 22:56, 16 October 2008

Home < Slicer3:SkeletonGenerator

Introduction

The Skeleton Generator is a simple program to generate template codes for 3D Slicer module and help developers to get started on their development. A source code generated by the Skeleton Generator can immediately be compiled and executed as a 3D Slicer module. The developers can create their own modules by just modifying the codes.

Getting Started

Requirement

The Skeleton Generator is written in Tcl. You need to have Tcl interpreter to run on you computer. It generates a Slicer3 Module C++ code, which can be compiled on Windows/Linux/Mac OS X.

Get the program

The program is available in the NA-MIC SandBox repository. You can obtain the source code by using Subversion. In case of Linux and Mac OS X, simply type following command in the terminal:

 svn co http://svn.na-mic.org/NAMICSandBox/trunk/IGTLodableModules/SkeletonGenerator SkeletonGenerator

How to use it

Go to working directory and just run the script. Suppose working director is "./work", Skeleton Generator is in /home/junichi/SkeletonGenrator and the name of the module you will create is "NewModule"

 $ mkdir work
 $ cd work
 $ /home/junichi/SkeltonGenerator/generate.tcl --name=NewModule

Then the program creates a directory named "NewModule" and generate template codes there.

 $ cd NewModule
 $ ls
 CMakeLists.txt             vtkNewModuleGUI.h
 NewModule.txt              vtkNewModuleLogic.cxx
 vtkNewModuleConfigure.h.in vtkNewModuleLogic.h
 vtkNewModuleGUI.cxx        vtkNewModuleWin32Header.h

People