Chaste  Build::
NetworkToSurface< DIM > Class Template Reference

#include <NetworkToSurface.hpp>

+ Collaboration diagram for NetworkToSurface< DIM >:

Public Member Functions

 NetworkToSurface ()
 
 ~NetworkToSurface ()
 
vtkSmartPointer< vtkPolyData > GetSurface ()
 
vtkSmartPointer< vtkImageData > GetSamplingImage ()
 
void SetVesselNetwork (boost::shared_ptr< VesselNetwork< DIM > > pNetwork)
 
void SetResamplingSplineSize (units::quantity< unit::length > splineResampleSize)
 
void SetResamplingGridSize (units::quantity< unit::length > sampleGridSize)
 
void Update ()
 

Static Public Member Functions

static boost::shared_ptr< NetworkToSurface< DIM > > Create ()
 

Private Attributes

boost::shared_ptr< VesselNetwork< DIM > > mpNetwork
 
units::quantity< unit::length > mSamplingGridSpacing
 
units::quantity< unit::length > mSplineResamplingLength
 
vtkSmartPointer< vtkPolyData > mpSurface
 
vtkSmartPointer< vtkImageData > mpImage
 
units::quantity< unit::length > mReferenceLength
 

Detailed Description

template<unsigned DIM>
class NetworkToSurface< DIM >

This class generates a 2d or 3d triangulated surface from a vessel network (centrelines and radii). It works by sampling the network onto a regular grid, with points inside and outside vessels having different values. It then reconstructs and optionally smooths the surface. The surface does not necessarily have high quality triangles in 3d, they can be added using other tools such as the NetworkToSurface class.

Definition at line 55 of file NetworkToSurface.hpp.

Constructor & Destructor Documentation

template<unsigned DIM>
NetworkToSurface< DIM >::NetworkToSurface ( )

Constructor

Definition at line 63 of file NetworkToSurface.cpp.

template<unsigned DIM>
NetworkToSurface< DIM >::~NetworkToSurface ( )

Destructor

Definition at line 82 of file NetworkToSurface.cpp.

Member Function Documentation

template<unsigned DIM>
boost::shared_ptr< NetworkToSurface< DIM > > NetworkToSurface< DIM >::Create ( )
static

Factory constructor method

Returns
a shared pointer to a new instance

Definition at line 75 of file NetworkToSurface.cpp.

template<unsigned DIM>
vtkSmartPointer< vtkImageData > NetworkToSurface< DIM >::GetSamplingImage ( )

Return the sampling image

Returns
a pointer to the sampling image

Definition at line 94 of file NetworkToSurface.cpp.

References NetworkToSurface< DIM >::mpImage.

template<unsigned DIM>
vtkSmartPointer< vtkPolyData > NetworkToSurface< DIM >::GetSurface ( )

Return the vessel surface

Returns
a pointer to the vessel surface

Definition at line 88 of file NetworkToSurface.cpp.

References NetworkToSurface< DIM >::mpSurface.

template<unsigned DIM>
void NetworkToSurface< DIM >::SetResamplingGridSize ( units::quantity< unit::length >  sampleGridSize)

Set the re-sampling grid size

Parameters
sampleGridSizethe resampling grid size

Definition at line 112 of file NetworkToSurface.cpp.

References NetworkToSurface< DIM >::mSamplingGridSpacing.

template<unsigned DIM>
void NetworkToSurface< DIM >::SetResamplingSplineSize ( units::quantity< unit::length >  splineResampleSize)

Set the re-sampling spline length

Parameters
splineResampleSizethe spline resampling size

Definition at line 106 of file NetworkToSurface.cpp.

References NetworkToSurface< DIM >::mSplineResamplingLength.

template<unsigned DIM>
void NetworkToSurface< DIM >::SetVesselNetwork ( boost::shared_ptr< VesselNetwork< DIM > >  pNetwork)

Set the vessel network

Parameters
pNetworkthe network to be converted to a surface

Definition at line 100 of file NetworkToSurface.cpp.

References NetworkToSurface< DIM >::mpNetwork.

Member Data Documentation

template<unsigned DIM>
vtkSmartPointer<vtkImageData> NetworkToSurface< DIM >::mpImage
private

The sampling image, can be used for assigning region attributes and identifing holes during meshing.

Definition at line 80 of file NetworkToSurface.hpp.

Referenced by NetworkToSurface< DIM >::GetSamplingImage(), and NetworkToSurface< DIM >::Update().

template<unsigned DIM>
boost::shared_ptr<VesselNetwork<DIM> > NetworkToSurface< DIM >::mpNetwork
private

The vessel network

Definition at line 60 of file NetworkToSurface.hpp.

Referenced by NetworkToSurface< DIM >::SetVesselNetwork(), and NetworkToSurface< DIM >::Update().

template<unsigned DIM>
vtkSmartPointer<vtkPolyData> NetworkToSurface< DIM >::mpSurface
private

The surface

Definition at line 75 of file NetworkToSurface.hpp.

Referenced by NetworkToSurface< DIM >::GetSurface(), and NetworkToSurface< DIM >::Update().

template<unsigned DIM>
units::quantity<unit::length> NetworkToSurface< DIM >::mReferenceLength
private

The reference length scale

Definition at line 85 of file NetworkToSurface.hpp.

Referenced by NetworkToSurface< DIM >::Update().

template<unsigned DIM>
units::quantity<unit::length> NetworkToSurface< DIM >::mSamplingGridSpacing
private

The spacing of the sampling grid.

Definition at line 65 of file NetworkToSurface.hpp.

Referenced by NetworkToSurface< DIM >::SetResamplingGridSize(), and NetworkToSurface< DIM >::Update().

template<unsigned DIM>
units::quantity<unit::length> NetworkToSurface< DIM >::mSplineResamplingLength
private

The length for spline re-sampling

Definition at line 70 of file NetworkToSurface.hpp.

Referenced by NetworkToSurface< DIM >::SetResamplingSplineSize(), and NetworkToSurface< DIM >::Update().


The documentation for this class was generated from the following files: