18 #ifndef itkSpatialObjectToImageFilter_h
19 #define itkSpatialObjectToImageFilter_h
39 template<
typename TInputSpatialObject,
typename TOutputImage >
50 typedef typename OutputImageType::SizeType
SizeType;
51 typedef typename OutputImageType::PointType
PointType;
53 typedef typename OutputImageType::ValueType
ValueType;
74 InputSpatialObjectType::ObjectDimension);
77 TOutputImage::ImageDimension);
95 virtual void SetSpacing(
const double *spacing);
114 itkGetConstMacro(InsideValue,
ValueType);
124 itkGetConstMacro(OutsideValue,
ValueType);
133 virtual void SetOrigin(
const double *origin);
135 virtual void SetOrigin(
const float *origin);
137 virtual const double *
GetOrigin()
const;
143 itkSetMacro(ChildrenDepth,
unsigned int);
144 itkGetConstMacro(ChildrenDepth,
unsigned int);
154 itkSetMacro(UseObjectValue,
bool);
155 itkGetConstMacro(UseObjectValue,
bool);
177 virtual
void PrintSelf(std::ostream & os,
Indent indent) const ITK_OVERRIDE;
182 void operator=(const
Self &) ITK_DELETE_FUNCTION;
186 #ifndef ITK_MANUAL_INSTANTIATION
187 #include "itkSpatialObjectToImageFilter.hxx"
virtual const double * GetOrigin() const
static const unsigned int OutputImageDimension
ImageSource< TOutputImage > Superclass
virtual void SetOrigin(const PointType &origin)
virtual const DirectionType & GetDirection() const
~SpatialObjectToImageFilter()
Represent the size (bounds) of a n-dimensional image.
OutputImageType::ValueType ValueType
OutputImageType::SpacingType SpacingType
double m_Origin[OutputImageDimension]
InputSpatialObjectType::Pointer InputSpatialObjectPointer
TInputSpatialObject InputSpatialObjectType
Base class for all process objects that output image data.
DirectionType m_Direction
SmartPointer< const Self > ConstPointer
SmartPointer< Self > Pointer
virtual void GenerateData() override
const InputSpatialObjectType * GetInput()
Superclass::OutputImageRegionType OutputImageRegionType
OutputImageType::DirectionType DirectionType
virtual void PrintSelf(std::ostream &os, Indent indent) const override
OutputImageType::PointType PointType
virtual void GenerateOutputInformation() override
virtual void SetInput(const DataObjectIdentifierType &key, DataObject *input)
Protected method for setting indexed and named inputs.
TOutputImage OutputImageType
unsigned int m_ChildrenDepth
virtual const double * GetSpacing() const
InputSpatialObjectType::ConstPointer InputSpatialObjectConstPointer
virtual void SetSpacing(const SpacingType &spacing)
static const unsigned int ObjectDimension
OutputImageType::RegionType OutputImageRegionType
TInputSpatialObject::ChildrenListType ChildrenListType
Control indentation during Print() invocation.
virtual void SetDirection(const DirectionType &direction)
OutputImageType::Pointer OutputImagePointer
SpatialObjectToImageFilter()
SpatialObjectToImageFilter Self
OutputImageType::SizeType SizeType
Base class for filters that take a SpatialObject as input and produce an image as output...
double m_Spacing[OutputImageDimension]
virtual void SetInput(const InputSpatialObjectType *object)