18 #ifndef __itkSpatialObject_h
19 #define __itkSpatialObject_h
55 template<
unsigned int VDimension >
58 template<
unsigned int VDimension = 3 >
152 itkGetConstObjectMacro(ObjectToWorldTransform,
TransformType);
154 itkGetConstObjectMacro(IndexToWorldTransform,
TransformType);
172 unsigned int depth = 0,
173 char *name =
NULL)
const;
182 unsigned int depth = 0,
183 char *name =
NULL)
const;
187 unsigned int depth = 0,
188 char *name =
NULL)
const;
201 short unsigned int order,
203 unsigned int depth = 0,
287 for (
int i = VDimension - 1; i > 0; i-- )
289 offset += ( ind[i] - bufferedRegionIndex[i] ) *
m_OffsetTable[i];
291 offset += ( ind[0] - bufferedRegionIndex[0] );
304 for (
int i = VDimension - 1; i > 0; i-- )
308 index[i] += bufferedRegionIndex[i];
310 index[0] = bufferedRegionIndex[0] +
static_cast< IndexValueType >( offset );
370 itkGetConstReferenceMacro(Id,
int);
371 itkSetMacro(Id,
int);
375 itkSetMacro(ParentId,
int);
376 itkGetConstReferenceMacro(ParentId,
int);
380 virtual void Update(
void);
387 itkGetConstObjectMacro(TreeNode, TreeNodeType);
450 char *name =
NULL)
const;
454 char *name =
NULL)
const;
461 virtual void Clear(
void);
489 std::cerr <<
"SpatialObject::ComputeLocalBoundingBox Not Implemented!"
499 itkSetMacro(BoundingBoxChildrenDepth,
unsigned int);
500 itkGetConstReferenceMacro(BoundingBoxChildrenDepth,
unsigned int);
505 itkSetMacro(BoundingBoxChildrenName, std::string);
506 itkGetConstReferenceMacro(BoundingBoxChildrenName, std::string);
522 itkSetMacro(DefaultInsideValue,
double);
523 itkGetConstMacro(DefaultInsideValue,
double);
528 itkSetMacro(DefaultOutsideValue,
double);
529 itkGetConstMacro(DefaultOutsideValue,
double);
552 itkSetMacro(Dimension,
unsigned int);
553 itkGetConstReferenceMacro(Dimension,
unsigned int)
554 itkSetMacro(TypeName, std::string);
556 itkGetConstObjectMacro(InternalInverseTransform,
TransformType);
619 #if !defined( CABLE_CONFIGURATION )
620 #ifndef ITK_MANUAL_INSTANTIATION
621 #include "itkSpatialObject.hxx"
625 #endif // __itkSpatialObject_h