19#ifndef itkCastSpatialObjectFilter_h
20#define itkCastSpatialObjectFilter_h
53template <
unsigned int ObjectDimension>
76 template <
class OutputSpatialObjectT>
77 std::list<typename OutputSpatialObjectT::Pointer> *
80 using OutObjectType = OutputSpatialObjectT;
81 using OutListType = std::list<typename OutObjectType::Pointer>;
83 auto * outputList =
new OutListType;
85 auto * obj =
dynamic_cast<OutObjectType *
>(
m_Input.GetPointer());
88 auto sObj = OutObjectType::New();
90 outputList->push_back(sObj);
93 auto it = inputList->begin();
94 while (it != inputList->end())
96 obj =
dynamic_cast<OutObjectType *
>(it->GetPointer());
99 auto sObj = OutObjectType::New();
101 outputList->push_back(sObj);
112 std::list<ArrowPointer> *
119 std::list<BlobPointer> *
126 std::list<BoxPointer> *
133 std::list<ContourPointer> *
140 std::list<EllipsePointer> *
147 std::list<GaussianPointer> *
154 std::list<GroupPointer> *
161 std::list<ImageMaskPointer> *
168 std::list<ImagePointer> *
175 std::list<LandmarkPointer> *
182 std::list<LinePointer> *
189 std::list<PointBasedPointer> *
196 std::list<PolygonPointer> *
203 std::list<SpatialObjectPointer> *
210 std::list<SurfacePointer> *
217 std::list<TubePointer> *
238#ifndef ITK_MANUAL_INSTANTIATION
239# include "itkCastSpatialObjectFilter.hxx"
SmartPointer< Self > Pointer
SmartPointer< Self > Pointer
SmartPointer< Self > Pointer
typename itk::TubeSpatialObject< ObjectDimension >::Pointer TubePointer
typename itk::EllipseSpatialObject< ObjectDimension >::Pointer EllipsePointer
std::list< GroupPointer > * GetGroups() const
typename itk::SpatialObject< ObjectDimension >::Pointer SpatialObjectPointer
std::list< SpatialObjectPointer > * GetSpatialObjects() const
std::list< ArrowPointer > * GetArrows() const
std::list< LandmarkPointer > * GetLandmarks() const
SpatialObject< ObjectDimension > InputSpatialObjectType
SmartPointer< const Self > ConstPointer
std::list< GaussianPointer > * GetGaussians() const
typename itk::ImageSpatialObject< ObjectDimension >::Pointer ImagePointer
std::list< typename OutputSpatialObjectT::Pointer > * GetOutput() const
std::list< LinePointer > * GetLines() const
typename itk::ContourSpatialObject< ObjectDimension >::Pointer ContourPointer
typename itk::SurfaceSpatialObject< ObjectDimension >::Pointer SurfacePointer
typename itk::ImageMaskSpatialObject< ObjectDimension >::Pointer ImageMaskPointer
std::list< SurfacePointer > * GetSurfaces() const
typename itk::PolygonSpatialObject< ObjectDimension >::Pointer PolygonPointer
void PrintSelf(std::ostream &os, Indent indent) const override
~CastSpatialObjectFilter() override=default
std::list< PolygonPointer > * GetPolygons() const
std::list< TubePointer > * GetTubes() const
typename itk::BoxSpatialObject< ObjectDimension >::Pointer BoxPointer
std::list< EllipsePointer > * GetEllipses() const
std::list< BoxPointer > * GetBoxes() const
typename itk::LandmarkSpatialObject< ObjectDimension >::Pointer LandmarkPointer
typename itk::LineSpatialObject< ObjectDimension >::Pointer LinePointer
typename itk::GroupSpatialObject< ObjectDimension >::Pointer GroupPointer
typename itk::BlobSpatialObject< ObjectDimension >::Pointer BlobPointer
std::list< ImagePointer > * GetImages() const
std::list< ImageMaskPointer > * GetImageMasks() const
typename itk::GaussianSpatialObject< ObjectDimension >::Pointer GaussianPointer
InputSpatialObjectType::Pointer m_Input
SmartPointer< Self > Pointer
std::list< ContourPointer > * GetContours() const
typename itk::PointBasedSpatialObject< ObjectDimension >::Pointer PointBasedPointer
CastSpatialObjectFilter Self
CastSpatialObjectFilter()
std::list< BlobPointer > * GetBlobs() const
std::list< PointBasedPointer > * GetPointBased() const
typename itk::ArrowSpatialObject< ObjectDimension >::Pointer ArrowPointer
typename InputSpatialObjectType::ChildrenListType InputChildrenListType
SmartPointer< Self > Pointer
SmartPointer< Self > Pointer
SmartPointer< Self > Pointer
SmartPointer< Self > Pointer
SmartPointer< Self > Pointer
SmartPointer< Self > Pointer
Control indentation during Print() invocation.
SmartPointer< Self > Pointer
SmartPointer< Self > Pointer
SmartPointer< Self > Pointer
SmartPointer< Self > Pointer
Implements transparent reference counting.
Implementation of the composite pattern.
SmartPointer< Self > Pointer
std::list< Pointer > ChildrenListType
SmartPointer< Self > Pointer
SmartPointer< Self > Pointer
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....