Chaste
Build::
|
#include <VesselNetworkReader.hpp>
Public Member Functions | |
VesselNetworkReader () | |
~VesselNetworkReader () | |
boost::shared_ptr< VesselNetwork< DIM > > | Read () |
void | SetRadiusArrayName (const std::string &rRadius) |
void | SetMergeCoincidentPoints (bool mergePoints) |
void | SetTargetSegmentLength (units::quantity< unit::length > targetSegmentLength) |
void | SetFileName (const std::string &rFileName) |
void | SetReferenceLengthScale (units::quantity< unit::length > rReferenceLength) |
Static Public Member Functions | |
static boost::shared_ptr< VesselNetworkReader< DIM > > | Create () |
Private Attributes | |
std::string | mFileName |
std::string | mRadiusLabel |
double | mRadiusConversionFactor |
bool | mMergeCoincidentPoints |
units::quantity< unit::length > | mTargetSegmentLength |
units::quantity< unit::length > | mReferenceLength |
Read vessel networks from file
Definition at line 48 of file VesselNetworkReader.hpp.
VesselNetworkReader< DIM >::VesselNetworkReader | ( | ) |
Constructor
Definition at line 52 of file VesselNetworkReader.cpp.
VesselNetworkReader< DIM >::~VesselNetworkReader | ( | ) |
Destructor
Definition at line 64 of file VesselNetworkReader.cpp.
|
static |
Construct a new instance of the class and return a shared pointer to it.
Definition at line 69 of file VesselNetworkReader.cpp.
boost::shared_ptr< VesselNetwork< DIM > > VesselNetworkReader< DIM >::Read | ( | ) |
Do the read and return the vessel network
Definition at line 100 of file VesselNetworkReader.cpp.
References VesselNetwork< DIM >::Create(), VesselSegment< DIM >::Create(), VesselNetworkReader< DIM >::mFileName, VesselNetworkReader< DIM >::mMergeCoincidentPoints, VesselNetworkReader< DIM >::mRadiusLabel, VesselNetworkReader< DIM >::mReferenceLength, and VesselNetworkReader< DIM >::mTargetSegmentLength.
void VesselNetworkReader< DIM >::SetFileName | ( | const std::string & | rFileName | ) |
Set the full path the file
rFileName | the full path to the file |
Definition at line 204 of file VesselNetworkReader.cpp.
References VesselNetworkReader< DIM >::mFileName.
void VesselNetworkReader< DIM >::SetMergeCoincidentPoints | ( | bool | mergePoints | ) |
If true merge coincident input points
mergePoints | merge coincident input points |
Definition at line 82 of file VesselNetworkReader.cpp.
References VesselNetworkReader< DIM >::mMergeCoincidentPoints.
void VesselNetworkReader< DIM >::SetRadiusArrayName | ( | const std::string & | rRadius | ) |
Set the name of the radius array
rRadius | the radius array name |
Definition at line 76 of file VesselNetworkReader.cpp.
References VesselNetworkReader< DIM >::mRadiusLabel.
void VesselNetworkReader< DIM >::SetReferenceLengthScale | ( | units::quantity< unit::length > | rReferenceLength | ) |
Set the reference length scale
rReferenceLength | the reference length scale |
Definition at line 94 of file VesselNetworkReader.cpp.
References VesselNetworkReader< DIM >::mReferenceLength.
void VesselNetworkReader< DIM >::SetTargetSegmentLength | ( | units::quantity< unit::length > | targetSegmentLength | ) |
If nonzero resample the network to a target segment length
targetSegmentLength | the target segment length |
Definition at line 88 of file VesselNetworkReader.cpp.
References VesselNetworkReader< DIM >::mTargetSegmentLength.
|
private |
The full path to the file
Definition at line 53 of file VesselNetworkReader.hpp.
Referenced by VesselNetworkReader< DIM >::Read(), and VesselNetworkReader< DIM >::SetFileName().
|
private |
Merge any coincident points in the input data
Definition at line 69 of file VesselNetworkReader.hpp.
Referenced by VesselNetworkReader< DIM >::Read(), and VesselNetworkReader< DIM >::SetMergeCoincidentPoints().
|
private |
Radius conversion factor. Multiply radii by this factor, useful if the contents of the 'Radius' array in the vtk file is not in the form we want
Definition at line 64 of file VesselNetworkReader.hpp.
|
private |
The name of the array containing radius info
Definition at line 58 of file VesselNetworkReader.hpp.
Referenced by VesselNetworkReader< DIM >::Read(), and VesselNetworkReader< DIM >::SetRadiusArrayName().
|
private |
The reference length scale for the vessel network, default in microns.
Definition at line 80 of file VesselNetworkReader.hpp.
Referenced by VesselNetworkReader< DIM >::Read(), and VesselNetworkReader< DIM >::SetReferenceLengthScale().
|
private |
If this is non-zero the network will be re-sampled to a target segment length using a vtk spline filter.
Definition at line 75 of file VesselNetworkReader.hpp.
Referenced by VesselNetworkReader< DIM >::Read(), and VesselNetworkReader< DIM >::SetTargetSegmentLength().