mial::DefOrgAdapter_VesselCrawler Class Reference

A deforg adapter for vessel crawlers [1]. More...

#include <DefOrgAdapter_VesselCrawler.h>

Inheritance diagram for mial::DefOrgAdapter_VesselCrawler:

mial::DefOrgViewerAdapterBaseTemplated< ITKPIXELTYPE, MESHDATATYPE > mial::DefOrgViewerAdapterBase List of all members.

Public Types

typedef itk::CovariantVector<
DataType, N_DIMS > 
GradientPixelType
typedef itk::Image< GradientPixelType,
N_DIMS > 
GradientImageType
typedef itk::ItkVesselCrawler<
ImageType, ImageType, GradientImageType,
DataType
VesselCrawlerType

Public Member Functions

virtual bool IsAllInputFilesSet ()
 DefOrgAdapter_VesselCrawler ()
virtual void SetupOrganism ()
virtual void UpdateOrganism ()
virtual void PopulateVtkImage ()
virtual void PopulateVtkUnstructuredGrid (vtkUnstructuredGrid *vtkGrid)
virtual void PopulateItkScene ()
virtual void HandleUserMouseInteraction (vtkTransform *userTransformation)
virtual int MaxNumberOfOutputItkSpatialObjects ()
virtual unsigned int MaxNumberOfOutputImages ()

Detailed Description

A deforg adapter for vessel crawlers [1].

This class describes a viewer adapter (to be loaded by the DefOrg Viewer) for a vessel crawler. Essentially it provides the functionaly for which the vessel crawlers can obtain input from the user, and display output.

[1] C. McIntosh and G. Hamarneh, "Vessel Crawlers: 3D Physically-based Deformable Organisms for Segmentation and Analysis of Tubular Structures in Medical Images", IEEE Conference on Computer Vision and Pattern Recognition, 2006.

Definition at line 38 of file DefOrgAdapter_VesselCrawler.h.


Constructor & Destructor Documentation

mial::DefOrgAdapter_VesselCrawler::DefOrgAdapter_VesselCrawler (  ) 

Constructor should define the property the organism exposes at run-time using AddOrganismProperty helper method

Definition at line 15 of file DefOrgAdapter_VesselCrawler.cxx.

References mial::DefOrgViewerAdapterBase::AddOrganismProperty(), and mial::DefOrgViewerAdapterBase::m_OutputImages.


Member Function Documentation

void mial::DefOrgAdapter_VesselCrawler::HandleUserMouseInteraction ( vtkTransform *  userTransformation  )  [virtual]

This method is called when the user changes the DefOrg. It is the responsibility of the adapter to update the internal data structure of the DefOrg. The user transformation argument supplies the transformation that is specified visually by the user

Implements mial::DefOrgViewerAdapterBase.

Definition at line 53 of file DefOrgAdapter_VesselCrawler.cxx.

virtual bool mial::DefOrgAdapter_VesselCrawler::IsAllInputFilesSet (  )  [inline, virtual]

Viewer will query this method to see if all three required files are set. If they are, it means the DefOrg can now be initialized

Reimplemented from mial::DefOrgViewerAdapterBase.

Definition at line 42 of file DefOrgAdapter_VesselCrawler.h.

References mial::DefOrgViewerAdapterBase::m_ImageFileName.

unsigned int mial::DefOrgAdapter_VesselCrawler::MaxNumberOfOutputImages (  )  [virtual]

Should return n, the number of Image volumes this organism exports. The viewer would create n-1 secondary windows for images. The output of the image volumes are usually assigned to during PopulateVtkImage() and UpdateOrganism() The primary output will be displayed in the primary window

Implements mial::DefOrgViewerAdapterBase.

Definition at line 46 of file DefOrgAdapter_VesselCrawler.cxx.

int mial::DefOrgAdapter_VesselCrawler::MaxNumberOfOutputItkSpatialObjects (  )  [virtual]

Should return n, the number of ItkSpatialObjects this organism exports. The viewer would create n-1 secondary windows for Spatial objects. The output of the spatialoutputs are usually assigned to during PopulateItkScene() and UpdateOrganism() The primary output will be displayed in the primary window

Implements mial::DefOrgViewerAdapterBase.

Definition at line 38 of file DefOrgAdapter_VesselCrawler.cxx.

void mial::DefOrgAdapter_VesselCrawler::PopulateItkScene (  )  [virtual]

This method is called when the user presses Load Mesh

Implements mial::DefOrgViewerAdapterBaseTemplated< ITKPIXELTYPE, MESHDATATYPE >.

Definition at line 60 of file DefOrgAdapter_VesselCrawler.cxx.

References mial::DefOrgViewerAdapterBase::m_OutputItkSpatialObjects.

void mial::DefOrgAdapter_VesselCrawler::PopulateVtkImage (  )  [virtual]

This method is called when the user presses Load Image

Implements mial::DefOrgViewerAdapterBaseTemplated< ITKPIXELTYPE, MESHDATATYPE >.

Definition at line 77 of file DefOrgAdapter_VesselCrawler.cxx.

References mial::DefOrgViewerAdapterBase::m_ImageFileName, mial::DefOrgViewerAdapterBaseTemplated< ITKPIXELTYPE, MESHDATATYPE >::m_InputImageReader, mial::DefOrgViewerAdapterBase::m_OutputImages, and mial::DefOrgViewerAdapterBaseTemplated< ITKPIXELTYPE, MESHDATATYPE >::PopulateVtkImageHelper().

void mial::DefOrgAdapter_VesselCrawler::PopulateVtkUnstructuredGrid ( vtkUnstructuredGrid *  vtkGrid  )  [virtual]

This method is currently not used. This method is originally for displaying meshes when SOViewer was not used

Implements mial::DefOrgViewerAdapterBaseTemplated< ITKPIXELTYPE, MESHDATATYPE >.

Definition at line 135 of file DefOrgAdapter_VesselCrawler.cxx.

void mial::DefOrgAdapter_VesselCrawler::SetupOrganism (  )  [virtual]

This method is called when the user presses "Initialize/Setup organism from the GUI. The adapter should initialize the organism appropriately.

Implements mial::DefOrgViewerAdapterBaseTemplated< ITKPIXELTYPE, MESHDATATYPE >.

Definition at line 125 of file DefOrgAdapter_VesselCrawler.cxx.

References mial::DefOrgViewerAdapterBaseTemplated< ITKPIXELTYPE, MESHDATATYPE >::m_InputImageReader.

void mial::DefOrgAdapter_VesselCrawler::UpdateOrganism (  )  [virtual]

This method is called during each organism step. In this method, the adapter should indicate which outputs are modified, and call run on the organism.

Implements mial::DefOrgViewerAdapterBaseTemplated< ITKPIXELTYPE, MESHDATATYPE >.

Definition at line 110 of file DefOrgAdapter_VesselCrawler.cxx.

References mial::DefOrgViewerAdapterBase::m_OutputItkSpatialObjects.


The documentation for this class was generated from the following files:
Generated on Wed Jul 19 13:05:22 2006 for IDO by  doxygen 1.4.7