18 #ifndef __itkSpatialObject_h
19 #define __itkSpatialObject_h
23 #pragma warning ( disable : 4786 )
66 template <
unsigned int TDimension>
class SpatialObjectTreeNode;
68 template<
unsigned int TDimension = 3>
165 itkGetConstObjectMacro(ObjectToWorldTransform,
TransformType);
185 unsigned int depth=0,
186 char * name =
NULL)
const;
195 unsigned int depth=0,
196 char * name =
NULL)
const;
200 unsigned int depth=0,
201 char * name =
NULL)
const;
214 short unsigned int order,
216 unsigned int depth=0,
222 unsigned long GetMTime(
void )
const;
299 for (
int i=TDimension-1; i > 0; i--)
301 offset += (ind[i] - bufferedRegionIndex[i])*
m_OffsetTable[i];
303 offset += (ind[0] - bufferedRegionIndex[0]);
315 for (
int i=TDimension-1; i > 0; i--)
319 index[i] += bufferedRegionIndex[i];
321 index[0] = bufferedRegionIndex[0] +
static_cast<IndexValueType>(offset);
381 itkGetConstReferenceMacro(Id,
int);
385 itkSetMacro(ParentId,
int);
386 itkGetConstReferenceMacro(ParentId,
int);
389 virtual void Update(
void);
396 itkGetConstObjectMacro(TreeNode, TreeNodeType);
453 char * name=
NULL )
const;
457 char * name=
NULL )
const;
464 virtual void Clear(
void );
491 std::cerr <<
"SpatialObject::ComputeLocalBoundingBox Not Implemented!"
502 itkSetMacro(BoundingBoxChildrenDepth,
unsigned int);
503 itkGetConstReferenceMacro(BoundingBoxChildrenDepth,
unsigned int);
507 itkSetMacro(BoundingBoxChildrenName, std::string);
508 itkGetConstReferenceMacro(BoundingBoxChildrenName, std::string);
522 itkSetMacro(DefaultInsideValue,
double);
523 itkGetConstMacro(DefaultInsideValue,
double);
527 itkSetMacro(DefaultOutsideValue,
double);
528 itkGetConstMacro(DefaultOutsideValue,
double);
550 itkSetMacro(Dimension,
unsigned int);
551 itkGetConstReferenceMacro(Dimension,
unsigned int)
552 itkSetMacro(TypeName,std::string);
554 itkGetConstObjectMacro(InternalInverseTransform,
TransformType);
618 #if !defined(CABLE_CONFIGURATION)
619 #ifndef ITK_MANUAL_INSTANTIATION
624 #endif // __itkSpatialObject_h