Difference between revisions of "NA-MIC/Projects/Collaboration/Slicer3 Theme"

From NAMIC Wiki
Jump to: navigation, search
(New page: {| |thumb|320px|Return to [[2008_Summer_Project_Week|Project Week Main Page ]] |[[Image:MeshBuildingBlock.png|thumb|320px|Building Block shown with number of...)
 
Line 12: Line 12:
  
  
<div style="margin: 20px;">
 
 
<div style="width: 27%; float: left; padding-right: 3%;">
 
  
 
<h1>Objective</h1>
 
<h1>Objective</h1>
Line 20: Line 17:
  
  
</div>
 
 
<div style="width: 27%; float: left; padding-right: 3%;">
 
  
<h1>Approach, Plan</h1>
+
<h1>Steps for Installing Slicer3 Theme</h1>
  
 
The Slicer3 theme is a clean and nice looking user interface. This page describes how to incroporate the theme into any KWWidgets application.
 
The Slicer3 theme is a clean and nice looking user interface. This page describes how to incroporate the theme into any KWWidgets application.
Line 90: Line 84:
 
|[[Image:PatrioticMesh.png|thumb|320px|Holiday Spirit or a Mesh showing material properties depending on the time of year]]
 
|[[Image:PatrioticMesh.png|thumb|320px|Holiday Spirit or a Mesh showing material properties depending on the time of year]]
 
|}
 
|}
 
  
 
===References===
 
===References===

Revision as of 15:39, 30 June 2008

Home < NA-MIC < Projects < Collaboration < Slicer3 Theme
Building Block shown with number of mesh seeds color coded.
Mesh quality visualization.



Key Investigators

  • Iowa: Nicole Grosland, Vincent Magnotta, Hans Johnson


Objective

This page describes how to incorporate the Slicer3 Theme into any KWWidgets based application.


Steps for Installing Slicer3 Theme

The Slicer3 theme is a clean and nice looking user interface. This page describes how to incroporate the theme into any KWWidgets application.

  • The following source code files are needed from the Slicer3 code base. These are located in Slicer3/Base/GUI
    • vtkSlicerCheckRadioButtonIcons.cxx vtkSlicerCheckRadioButtonIcons.h
    • vtkSlicerFont.cxx vtkSlicerFont.h
    • vtkSlicerTheme.cxx vtkSlicerTheme.h
    • vtkSlicerColor.cxx vtkSlicerColor.h
    • vtkSlicerIcons.cxx vtkSlicerIcons.h
  • The following icons are needed. These are located in Slicer3/Base/GUI/Resources. This file needs to be put in a directory called Resources that is in the same directory as vtkSlicerCheckRadioButtonIcons.h
    • vtkSlicerCheckRadioButton_ImageData.h

In your application class header file should look similar to this

#ifndef __vtkKWMyApplication_h
#define __vtkKWMyApplication_h

#include "vtkKWApplication.h"
#include "vtkKWRegistryHelper.h"


class vtkSlicerTheme;
class vtkKWMyApplication : public vtkKWApplication
{
public:
 static vtkKWMyApplication* New();
 vtkTypeRevisionMacro(vtkKWMyApplication,vtkKWApplication);

 virtual void InstallTheme ( vtkKWTheme *theme );
 virtual void InstallDefaultTheme ( );
 vtkSlicerTheme *GetSlicerTheme ( );
 .
 .
 .
protected:
 vtkKWMyApplication();
 ~vtkKWMyApplication();
 
 vtkSlicerTheme *SlicerTheme;    
 .
 .
 .
};
       

Progress

  • Much progress was made adding support for VTK Unstructured Grid datatypes as a subclass of models in Slicer3. Slicer's Model Hierarchy module was modified to include control over unstructured grids. This work is currently in the meshing branch of Slicer, but will be merged into the trunk in the next few weeks, after completing and testing what we developed this week.
  • The mesh generation interface has stabilized now that all the desired features for creating meshes have been implemented and partially tested. These new editing functions will be integrated with Slicer and tested during the next few months.
  • Several user interface bugs were fixed in mesh generation. Initial support for node and element set definitions have been added.
  • Created a initial mesh from an Aneurysm as provided by Luca. Testing also being done on data provided by Adam Wittek.


Initial Hex mesh generated from an aneurysm
Unstructured Grid Mesh in Slicer Model Editor
Holiday Spirit or a Mesh showing material properties depending on the time of year

References

  • Grosland NM, Brown TD. A voxel-based formulation for contact finite element analysis. Comput Methods Biomech Biomed Engin. 5(1):21-32, 2002.
  • Grosland NM, Bafna R, Magnotta VA. Automated Hexahedral Meshing of Anatomical structures using Deformable Registration. Computer Methods in Biomechanics and Biomedical Engineering. Accepted.
  • Grosland NM, Shivanna KH, Magnotta VM, Kallemeyn NA, DeVries NA, Tadepalli SC. IA-FEMesh: An open-source, interactive, multiblock approach to musculoskeletal finite element model development. Submitted.
  • P. P. P'ebay and D. C. Thompson and J. Shepherd and P. Knupp and C. Lisle and V. A. Magnotta and N. M. Grosland, New Applications of the Verdict Library for Standardized Mesh Verification. Pre, Post, and End-to-End Processing, Proc. 16th International Meshing Roundtable,Seattle, WA, 2007

Description

The Musculoskeletal Imaging, Modeling, and EXperimentation (MIMX) Program is a collaborative effort directed at computational modeling of anatomic structures. A primary objective is to automate the development of patient-/subject- specific models using a combination of imaging and modeling techniques, with particular emphasis on finite element modeling.


Publications

Links


Project Week Results:  Winter 2008, June 2007