18 #ifndef __itkSpatialObjectToImageFilter_h
19 #define __itkSpatialObjectToImageFilter_h
39 template<
class TInputSpatialObject,
class TOutputImage >
50 typedef typename OutputImageType::SizeType
SizeType;
51 typedef typename OutputImageType::PointType
PointType;
53 typedef typename OutputImageType::ValueType
ValueType;
73 itkStaticConstMacro(ObjectDimension,
unsigned int,
74 InputSpatialObjectType::ObjectDimension);
76 itkStaticConstMacro(OutputImageDimension,
unsigned int,
77 TOutputImage::ImageDimension);
80 using Superclass::SetInput;
93 virtual void SetSpacing(
const SpacingType & spacing);
95 virtual void SetSpacing(
const double *spacing);
97 virtual void SetSpacing(
const float *spacing);
99 virtual const double * GetSpacing(
void)
const;
114 itkGetConstMacro(InsideValue,
ValueType);
124 itkGetConstMacro(OutsideValue,
ValueType);
131 virtual void SetOrigin(
const PointType & origin);
133 virtual void SetOrigin(
const double *origin);
135 virtual void SetOrigin(
const float *origin);
137 virtual const double * GetOrigin(
void)
const;
143 itkSetMacro(ChildrenDepth,
unsigned int);
144 itkGetConstMacro(ChildrenDepth,
unsigned int);
154 itkSetMacro(UseObjectValue,
bool);
155 itkGetConstMacro(UseObjectValue,
bool);
162 virtual void GenerateData();
165 double m_Spacing[OutputImageDimension];
166 double m_Origin[OutputImageDimension];
176 virtual void PrintSelf(std::ostream & os,
Indent indent)
const;
181 void operator=(
const Self &);
185 #ifndef ITK_MANUAL_INSTANTIATION
186 #include "itkSpatialObjectToImageFilter.hxx"