18 #ifndef __itkSphereMeshSource_h
19 #define __itkSphereMeshSource_h
21 #include "vnl/vnl_matrix_fixed.h"
40 template<
class TOutputMesh >
41 class ITK_EXPORT SphereMeshSource:
public MeshSource< TOutputMesh >
45 typedef SphereMeshSource Self;
46 typedef MeshSource< TOutputMesh > Superclass;
47 typedef SmartPointer< Self > Pointer;
48 typedef SmartPointer< const Self > ConstPointer;
54 itkTypeMacro(SphereMeshSource, MeshSource);
57 typedef TOutputMesh OutputMeshType;
58 typedef typename OutputMeshType::MeshTraits OMeshTraits;
59 typedef typename OutputMeshType::PointType OPointType;
60 typedef typename OMeshTraits::PixelType OPixelType;
63 typedef typename OutputMeshType::Pointer OutputMeshPointer;
64 typedef typename OutputMeshType::CellTraits CellTraits;
65 typedef typename OutputMeshType::PointsContainerPointer PointsContainerPointer;
66 typedef typename OutputMeshType::PointsContainer PointsContainer;
70 typedef CellInterface< OPixelType, CellTraits > CellInterfaceType;
71 typedef TriangleCell< CellInterfaceType > TriCellType;
72 typedef typename TriCellType::SelfAutoPointer TriCellAutoPointer;
73 typedef typename TriCellType::CellAutoPointer CellAutoPointer;
77 itkSetMacro(ResolutionX,
unsigned int);
78 itkSetMacro(ResolutionY,
unsigned int);
81 itkSetMacro(Center, OPointType);
82 itkSetMacro(Scale, OPointType);
84 itkSetMacro(Squareness1,
double);
85 itkSetMacro(Squareness2,
double);
88 ~SphereMeshSource() {}
89 void PrintSelf(std::ostream & os, Indent indent)
const;
97 unsigned int m_ResolutionX;
98 unsigned int m_ResolutionY;