18 #ifndef __itkSpatialObject_h
19 #define __itkSpatialObject_h
55 template<
unsigned int VDimension >
58 template<
unsigned int VDimension = 3 >
150 itkGetModifiableObjectMacro(ObjectToWorldTransform,
TransformType);
153 itkGetModifiableObjectMacro(IndexToWorldTransform,
TransformType);
171 unsigned int depth = 0,
172 char *name =
NULL)
const;
181 unsigned int depth = 0,
182 char *name =
NULL)
const;
186 unsigned int depth = 0,
187 char *name =
NULL)
const;
200 short unsigned int order,
202 unsigned int depth = 0,
286 for (
int i = VDimension - 1; i > 0; i-- )
288 offset += ( ind[i] - bufferedRegionIndex[i] ) *
m_OffsetTable[i];
290 offset += ( ind[0] - bufferedRegionIndex[0] );
303 for (
int i = VDimension - 1; i > 0; i-- )
307 index[i] += bufferedRegionIndex[i];
309 index[0] = bufferedRegionIndex[0] +
static_cast< IndexValueType >( offset );
369 itkGetConstReferenceMacro(Id,
int);
370 itkSetMacro(Id,
int);
374 itkSetMacro(ParentId,
int);
375 itkGetConstReferenceMacro(ParentId,
int);
379 virtual void Update(
void);
459 char *name =
NULL)
const;
463 char *name =
NULL)
const;
470 virtual void Clear(
void);
498 std::cerr <<
"SpatialObject::ComputeLocalBoundingBox Not Implemented!"
508 itkSetMacro(BoundingBoxChildrenDepth,
unsigned int);
509 itkGetConstReferenceMacro(BoundingBoxChildrenDepth,
unsigned int);
514 itkSetMacro(BoundingBoxChildrenName, std::string);
515 itkGetConstReferenceMacro(BoundingBoxChildrenName, std::string);
531 itkSetMacro(DefaultInsideValue,
double);
532 itkGetConstMacro(DefaultInsideValue,
double);
537 itkSetMacro(DefaultOutsideValue,
double);
538 itkGetConstMacro(DefaultOutsideValue,
double);
561 itkSetMacro(Dimension,
unsigned int);
562 itkGetConstReferenceMacro(Dimension,
unsigned int)
563 itkSetMacro(TypeName, std::string);
565 itkGetModifiableObjectMacro(InternalInverseTransform,
TransformType);
628 #if !defined( CABLE_CONFIGURATION )
629 #ifndef ITK_MANUAL_INSTANTIATION
630 #include "itkSpatialObject.hxx"
634 #endif // __itkSpatialObject_h