ITK
5.3.0
Insight Toolkit
|
#include <itkSpatialObject.h>
Public Member Functions | |
void | AddChild (Self *pointer) |
virtual void | AddChildrenToConstList (ChildrenConstListType *childrenList, unsigned int depth=0, const std::string &name="") const |
virtual void | AddChildrenToList (ChildrenListType *childrenList, unsigned int depth=0, const std::string &name="") const |
bool | CheckIdValidity () const |
virtual void | Clear () |
virtual bool | ComputeFamilyBoundingBox (unsigned int depth=0, const std::string &name="") const |
void | ComputeObjectToParentTransform () |
void | CopyInformation (const DataObject *data) override |
virtual void | DerivativeAtInObjectSpace (const PointType &point, short unsigned int order, CovariantVectorType &value, unsigned int depth=0, const std::string &name="", const DerivativeOffsetType &offset=MakeFilled< DerivativeOffsetType >(1)) |
virtual void | DerivativeAtInWorldSpace (const PointType &point, short unsigned int order, CovariantVectorType &value, unsigned int depth=0, const std::string &name="", const DerivativeOffsetType &offset=MakeFilled< DerivativeOffsetType >(1)) |
bool | Evaluate (const PointType &point) const |
void | FixIdValidity () |
bool | FixParentChildHierarchyUsingParentIds () |
virtual const RegionType & | GetBufferedRegion () const |
virtual ChildrenListType * | GetChildren (unsigned int depth=0, const std::string &name="") const |
virtual std::string | GetClassNameAndDimension () const |
virtual ChildrenConstListType * | GetConstChildren (unsigned int depth=0, const std::string &name="") const |
virtual const BoundingBoxType * | GetFamilyBoundingBoxInObjectSpace () const |
virtual const BoundingBoxType * | GetFamilyBoundingBoxInWorldSpace () const |
virtual const RegionType & | GetLargestPossibleRegion () const |
unsigned int | GetMaximumDepth () const |
ModifiedTimeType | GetMTime () const override |
virtual const BoundingBoxType * | GetMyBoundingBoxInObjectSpace () const |
virtual const BoundingBoxType * | GetMyBoundingBoxInWorldSpace () const |
ModifiedTimeType | GetMyMTime () const |
virtual const char * | GetNameOfClass () const |
int | GetNextAvailableId () const |
unsigned int | GetNumberOfChildren (unsigned int depth=0, const std::string &name="") const |
SpatialObject< VDimension > * | GetObjectById (int id) |
unsigned int | GetObjectDimension () const |
virtual Self * | GetParent () |
virtual const Self * | GetParent () const |
PropertyType & | GetProperty () |
const PropertyType & | GetProperty () const |
virtual const RegionType & | GetRequestedRegion () const |
virtual const std::string | GetTypeName () const |
virtual bool | HasParent () const |
virtual bool | IsEvaluableAtChildrenInObjectSpace (const PointType &point, unsigned int depth=0, const std::string &name="") const |
virtual bool | IsEvaluableAtInObjectSpace (const PointType &point, unsigned int depth=0, const std::string &name="") const |
virtual bool | IsEvaluableAtInWorldSpace (const PointType &point, unsigned int depth=0, const std::string &name="") const |
virtual bool | IsInsideChildrenInObjectSpace (const PointType &point, unsigned int depth=0, const std::string &name="") const |
virtual bool | IsInsideInObjectSpace (const PointType &point) const |
bool | IsInsideInObjectSpace (const PointType &point, unsigned int depth, const std::string &name="") const |
virtual bool | IsInsideInWorldSpace (const PointType &point, unsigned int depth=0, const std::string &name="") const |
void | RemoveAllChildren (unsigned int depth=MaximumDepth) |
bool | RemoveChild (Self *pointer) |
bool | RequestedRegionIsOutsideOfTheBufferedRegion () override |
virtual void | SetBufferedRegion (const RegionType ®ion) |
void | SetChildren (ChildrenListType &children) |
virtual void | SetLargestPossibleRegion (const RegionType ®ion) |
void | SetParent (Self *parent) |
void | SetRequestedRegion (const DataObject *data) override |
virtual void | SetRequestedRegion (const RegionType ®ion) |
void | SetRequestedRegionToLargestPossibleRegion () override |
virtual void | SetTypeName (std::string _arg) |
void | Update () override |
void | UpdateOutputInformation () override |
virtual bool | ValueAtChildrenInObjectSpace (const PointType &point, double &value, unsigned int depth=0, const std::string &name="") const |
virtual bool | ValueAtInObjectSpace (const PointType &point, double &value, unsigned int depth=0, const std::string &name="") const |
virtual bool | ValueAtInWorldSpace (const PointType &point, double &value, unsigned int depth=0, const std::string &name="") const |
bool | VerifyRequestedRegion () override |
void | SetId (int id) |
virtual const int & | GetId () const |
void | SetProperty (const PropertyType &property) |
void | SetObjectToWorldTransform (const TransformType *transform) |
virtual TransformType * | GetModifiableObjectToWorldTransform () |
const TransformType * | GetObjectToWorldTransformInverse () const |
void | SetObjectToParentTransform (const TransformType *transform) |
virtual TransformType * | GetModifiableObjectToParentTransform () |
const TransformType * | GetObjectToParentTransformInverse () const |
virtual void | SetDefaultInsideValue (double _arg) |
virtual double | GetDefaultInsideValue () const |
virtual void | SetDefaultOutsideValue (double _arg) |
virtual double | GetDefaultOutsideValue () const |
virtual void | SetParentId (int _arg) |
virtual const int & | GetParentId () const |
Public Member Functions inherited from itk::DataObject | |
virtual void | DataHasBeenGenerated () |
void | DisconnectPipeline () |
bool | GetDataReleased () const |
virtual const bool & | GetReleaseDataFlag () const |
SmartPointer< ProcessObject > | GetSource () const |
DataObjectPointerArraySizeType | GetSourceOutputIndex () const |
const DataObjectIdentifierType & | GetSourceOutputName () const |
virtual ModifiedTimeType | GetUpdateMTime () const |
virtual void | Graft (const DataObject *) |
virtual void | Initialize () |
virtual void | PrepareForNewData () |
virtual void | PropagateRequestedRegion () |
void | ReleaseData () |
virtual void | ReleaseDataFlagOn () |
virtual void | ResetPipeline () |
void | SetReleaseDataFlag (bool flag) |
bool | ShouldIReleaseData () const |
virtual void | UpdateOutputData () |
void | UpdateSource () const |
void | SetPipelineMTime (ModifiedTimeType time) |
virtual const ModifiedTimeType & | GetPipelineMTime () const |
virtual void | SetRealTimeStamp (RealTimeStamp _arg) |
virtual const RealTimeStamp & | GetRealTimeStamp () const |
Public Member Functions inherited from itk::Object | |
unsigned long | AddObserver (const EventObject &event, Command *) |
unsigned long | AddObserver (const EventObject &event, Command *) const |
unsigned long | AddObserver (const EventObject &event, std::function< void(const EventObject &)> function) const |
LightObject::Pointer | CreateAnother () const override |
virtual void | DebugOff () const |
virtual void | DebugOn () const |
Command * | GetCommand (unsigned long tag) |
bool | GetDebug () const |
MetaDataDictionary & | GetMetaDataDictionary () |
const MetaDataDictionary & | GetMetaDataDictionary () const |
virtual const TimeStamp & | GetTimeStamp () const |
bool | HasObserver (const EventObject &event) const |
void | InvokeEvent (const EventObject &) |
void | InvokeEvent (const EventObject &) const |
virtual void | Modified () const |
void | Register () const override |
void | RemoveAllObservers () |
void | RemoveObserver (unsigned long tag) |
void | SetDebug (bool debugFlag) const |
void | SetReferenceCount (int) override |
void | UnRegister () const noexcept override |
void | SetMetaDataDictionary (const MetaDataDictionary &rhs) |
void | SetMetaDataDictionary (MetaDataDictionary &&rrhs) |
virtual void | SetObjectName (std::string _arg) |
virtual const std::string & | GetObjectName () const |
Public Member Functions inherited from itk::LightObject | |
Pointer | Clone () const |
virtual void | Delete () |
virtual int | GetReferenceCount () const |
void | Print (std::ostream &os, Indent indent=0) const |
Static Public Member Functions | |
static Pointer | New () |
Static Public Member Functions inherited from itk::DataObject | |
static bool | GetGlobalReleaseDataFlag () |
static void | GlobalReleaseDataFlagOff () |
static void | GlobalReleaseDataFlagOn () |
static Pointer | New () |
static void | SetGlobalReleaseDataFlag (bool val) |
Static Public Member Functions inherited from itk::Object | |
static bool | GetGlobalWarningDisplay () |
static void | GlobalWarningDisplayOff () |
static void | GlobalWarningDisplayOn () |
static Pointer | New () |
static void | SetGlobalWarningDisplay (bool val) |
Static Public Member Functions inherited from itk::LightObject | |
static void | BreakOnError () |
static Pointer | New () |
Static Public Attributes | |
static constexpr unsigned int | MaximumDepth = 9999999 |
static constexpr ObjectDimensionType | ObjectDimension = VDimension |
Protected Member Functions | |
virtual void | ComputeMyBoundingBox () |
BoundingBoxType * | GetModifiableMyBoundingBoxInObjectSpace () |
LightObject::Pointer | InternalClone () const override |
void | PrintSelf (std::ostream &os, Indent indent) const override |
void | ProtectedComputeObjectToWorldTransform () |
SpatialObject ()=default | |
~SpatialObject () override | |
Protected Member Functions inherited from itk::DataObject | |
DataObject () | |
virtual void | PropagateResetPipeline () |
~DataObject () override | |
Protected Member Functions inherited from itk::Object | |
Object () | |
bool | PrintObservers (std::ostream &os, Indent indent) const |
virtual void | SetTimeStamp (const TimeStamp &timeStamp) |
~Object () override | |
Protected Member Functions inherited from itk::LightObject | |
LightObject () | |
virtual void | PrintHeader (std::ostream &os, Indent indent) const |
virtual void | PrintTrailer (std::ostream &os, Indent indent) const |
virtual | ~LightObject () |
Private Attributes | |
RegionType | m_BufferedRegion |
ChildrenListType | m_ChildrenList |
double | m_DefaultInsideValue { 1.0 } |
double | m_DefaultOutsideValue { 0.0 } |
const BoundingBoxPointer | m_FamilyBoundingBoxInObjectSpace { BoundingBoxType::New() } |
const BoundingBoxPointer | m_FamilyBoundingBoxInWorldSpace { BoundingBoxType::New() } |
int | m_Id { -1 } |
RegionType | m_LargestPossibleRegion |
const BoundingBoxPointer | m_MyBoundingBoxInObjectSpace { BoundingBoxType::New() } |
const BoundingBoxPointer | m_MyBoundingBoxInWorldSpace { BoundingBoxType::New() } |
const TransformPointer | m_ObjectToParentTransform { TransformType::New() } |
const TransformPointer | m_ObjectToParentTransformInverse { TransformType::New() } |
const TransformPointer | m_ObjectToWorldTransform { TransformType::New() } |
const TransformPointer | m_ObjectToWorldTransformInverse { TransformType::New() } |
Self * | m_Parent { nullptr } |
int | m_ParentId { -1 } |
PropertyType | m_Property |
RegionType | m_RequestedRegion |
std::string | m_TypeName { "SpatialObject" } |
Additional Inherited Members | |
Protected Attributes inherited from itk::LightObject | |
std::atomic< int > | m_ReferenceCount |
Implementation of the composite pattern.
The purpose of this class is to implement the composite pattern [Design Patterns, Gamma, 1995] within itk, so that it becomes easy to create an environment containing objects within a scene, and to manipulate the environment as a whole or any of its component objects. An object has a list of transformations to transform object coordinates to the corresponding coordinates in the real world coordinate system, and a list of inverse transformation to go backward. Any spatial objects can be plugged to a spatial object as children. To implement your own spatial object, you need to derive from the following class, which requires the definition of just a few pure virtual functions. Examples of such functions are ValueAtInWorldSpace(), IsEvaluableAtInWorldSpace(), and IsInsideInWorldSpace(), each of which has a meaning specific to each particular object type.
Definition at line 57 of file itkSpatialObject.h.
using itk::SpatialObject< VDimension >::BoundingBoxPointer = typename BoundingBoxType::Pointer |
Definition at line 106 of file itkSpatialObject.h.
using itk::SpatialObject< VDimension >::BoundingBoxType = BoundingBox<IdentifierType, VDimension, ScalarType, VectorContainerType> |
Definition at line 105 of file itkSpatialObject.h.
using itk::SpatialObject< VDimension >::ChildrenConstListPointer = ChildrenConstListType * |
Definition at line 112 of file itkSpatialObject.h.
using itk::SpatialObject< VDimension >::ChildrenConstListType = std::list<ConstPointer> |
Definition at line 110 of file itkSpatialObject.h.
using itk::SpatialObject< VDimension >::ChildrenListPointer = ChildrenListType * |
Definition at line 111 of file itkSpatialObject.h.
using itk::SpatialObject< VDimension >::ChildrenListType = std::list<Pointer> |
Return type for the list of children
Definition at line 109 of file itkSpatialObject.h.
using itk::SpatialObject< VDimension >::ConstPointer = SmartPointer<const Self> |
Definition at line 82 of file itkSpatialObject.h.
using itk::SpatialObject< VDimension >::CovariantVectorType = CovariantVector<ScalarType, VDimension> |
Definition at line 91 of file itkSpatialObject.h.
using itk::SpatialObject< VDimension >::DerivativeOffsetType = Vector<double, VDimension> |
Definition at line 97 of file itkSpatialObject.h.
using itk::SpatialObject< VDimension >::DerivativeVectorPointer = DerivativeVectorType * |
Definition at line 95 of file itkSpatialObject.h.
using itk::SpatialObject< VDimension >::DerivativeVectorType = CovariantVector<ScalarType, VDimension> |
Definition at line 94 of file itkSpatialObject.h.
using itk::SpatialObject< VDimension >::IndexType = Index<VDimension> |
Definition at line 122 of file itkSpatialObject.h.
using itk::SpatialObject< VDimension >::InputType = Point<ScalarType, VDimension> |
Definition at line 86 of file itkSpatialObject.h.
using itk::SpatialObject< VDimension >::ObjectConstListType = std::list<ConstPointer> |
Definition at line 115 of file itkSpatialObject.h.
using itk::SpatialObject< VDimension >::ObjectDimensionType = unsigned int |
Definition at line 64 of file itkSpatialObject.h.
using itk::SpatialObject< VDimension >::ObjectListType = std::list<Pointer> |
Definition at line 114 of file itkSpatialObject.h.
using itk::SpatialObject< VDimension >::Pointer = SmartPointer<Self> |
Definition at line 81 of file itkSpatialObject.h.
using itk::SpatialObject< VDimension >::PointPointer = PointType * |
Definition at line 89 of file itkSpatialObject.h.
using itk::SpatialObject< VDimension >::PointType = Point<ScalarType, VDimension> |
Definition at line 88 of file itkSpatialObject.h.
using itk::SpatialObject< VDimension >::PropertyType = SpatialObjectProperty |
Definition at line 119 of file itkSpatialObject.h.
using itk::SpatialObject< VDimension >::RegionType = ImageRegion<VDimension> |
Definition at line 117 of file itkSpatialObject.h.
using itk::SpatialObject< VDimension >::ScalarType = double |
Definition at line 62 of file itkSpatialObject.h.
using itk::SpatialObject< VDimension >::Self = SpatialObject<VDimension> |
Definition at line 78 of file itkSpatialObject.h.
using itk::SpatialObject< VDimension >::SizeType = Size<VDimension> |
Definition at line 123 of file itkSpatialObject.h.
using itk::SpatialObject< VDimension >::Superclass = DataObject |
Definition at line 79 of file itkSpatialObject.h.
using itk::SpatialObject< VDimension >::TransformConstPointer = const TransformType * |
Definition at line 101 of file itkSpatialObject.h.
using itk::SpatialObject< VDimension >::TransformPointer = typename TransformType::Pointer |
Definition at line 100 of file itkSpatialObject.h.
using itk::SpatialObject< VDimension >::TransformType = AffineTransform<ScalarType, VDimension> |
Definition at line 99 of file itkSpatialObject.h.
using itk::SpatialObject< VDimension >::VectorContainerType = VectorContainer<IdentifierType, PointType> |
Definition at line 103 of file itkSpatialObject.h.
using itk::SpatialObject< VDimension >::VectorPointer = VectorType * |
Definition at line 92 of file itkSpatialObject.h.
using itk::SpatialObject< VDimension >::VectorType = Vector<ScalarType, VDimension> |
Definition at line 90 of file itkSpatialObject.h.
|
protecteddefault |
Default constructor. Ensures that its bounding boxes are empty (all bounds zero-valued), its list of children is empty, and its transform objects identical to the identity transform, initially.
|
overrideprotected |
Destructor.
void itk::SpatialObject< VDimension >::AddChild | ( | Self * | pointer | ) |
Add an object to the list of children.
|
virtual |
|
virtual |
bool itk::SpatialObject< VDimension >::CheckIdValidity | ( | ) | const |
Confirm that every object inherited from this has a unique Id
|
virtual |
Restore a spatial object to its initial state, yet preserves Id as well as parent and children relationships
Reimplemented in itk::ContourSpatialObject< TDimension >, itk::TubeSpatialObject< TDimension, TSpatialObjectPointType >, itk::TubeSpatialObject< TDimension, DTITubeSpatialObjectPoint< TDimension > >, itk::SurfaceSpatialObject< TDimension, TSpatialObjectPointType >, itk::ImageSpatialObject< TDimension, TPixelType >, itk::ImageSpatialObject< TDimension, TPixel >, itk::EllipseSpatialObject< TDimension >, itk::MeshSpatialObject< TMesh >, itk::GaussianSpatialObject< TDimension >, itk::PointBasedSpatialObject< TDimension, TSpatialObjectPointType >, itk::PointBasedSpatialObject< TDimension, ContourSpatialObjectPoint< TDimension > >, itk::PointBasedSpatialObject< TDimension, SurfaceSpatialObjectPoint< TDimension > >, itk::PointBasedSpatialObject< TDimension >, itk::PointBasedSpatialObject< TDimension, SpatialObjectPoint< TDimension > >, itk::PointBasedSpatialObject< TDimension, LineSpatialObjectPoint< TDimension > >, itk::PointBasedSpatialObject< TDimension, DTITubeSpatialObjectPoint< TDimension > >, itk::PolygonSpatialObject< TDimension >, itk::ArrowSpatialObject< TDimension >, and itk::BoxSpatialObject< TDimension >.
|
virtual |
Compute an axis-aligned bounding box for an object and its selected children, down to a specified depth, in object space.
|
protectedvirtual |
Compute bounding box for the object in object space
Reimplemented in itk::PointBasedSpatialObject< TDimension, TSpatialObjectPointType >, itk::PointBasedSpatialObject< TDimension, ContourSpatialObjectPoint< TDimension > >, itk::PointBasedSpatialObject< TDimension, SurfaceSpatialObjectPoint< TDimension > >, itk::PointBasedSpatialObject< TDimension >, itk::PointBasedSpatialObject< TDimension, SpatialObjectPoint< TDimension > >, itk::PointBasedSpatialObject< TDimension, LineSpatialObjectPoint< TDimension > >, itk::PointBasedSpatialObject< TDimension, DTITubeSpatialObjectPoint< TDimension > >, itk::ImageSpatialObject< TDimension, TPixelType >, itk::ImageSpatialObject< TDimension, TPixel >, itk::TubeSpatialObject< TDimension, TSpatialObjectPointType >, itk::TubeSpatialObject< TDimension, DTITubeSpatialObjectPoint< TDimension > >, itk::GaussianSpatialObject< TDimension >, itk::MeshSpatialObject< TMesh >, itk::ImageMaskSpatialObject< TDimension, TPixel >, itk::EllipseSpatialObject< TDimension >, itk::ArrowSpatialObject< TDimension >, and itk::BoxSpatialObject< TDimension >.
void itk::SpatialObject< VDimension >::ComputeObjectToParentTransform | ( | ) |
Compute the Local transform when the global transform is set
|
overridevirtual |
Copy information from the specified data set. This method is part of the pipeline execution model. By default, a ProcessObject will copy meta-data from the first input to all of its outputs. See ProcessObject::GenerateOutputInformation(). Each subclass of DataObject is responsible for being able to copy whatever meta-data it needs from from another DataObject. ImageBase has more meta-data than its DataObject. Thus, it must provide its own version of CopyInformation() in order to copy the LargestPossibleRegion from the input parameter.
Reimplemented from itk::DataObject.
Reimplemented in itk::TubeSpatialObject< TDimension, DTITubeSpatialObjectPoint< TDimension > >.
|
virtual |
Return the n-th order derivative value at the specified point.
|
virtual |
Return the n-th order derivative value at the specified point.
|
inline |
Returns true if a point is inside the object - provided to make spatial objects compatible with spatial functions and conditional iterators for defining regions of interest.
Definition at line 599 of file itkSpatialObject.h.
void itk::SpatialObject< VDimension >::FixIdValidity | ( | ) |
Give every object inherited from this a unique Id
bool itk::SpatialObject< VDimension >::FixParentChildHierarchyUsingParentIds | ( | ) |
In practice, this is used to transform an imported MetaIO scene hierarchy specified only by Ids into the SpatialObject hierarchy specified by Ids and Child/Parent lists.
|
inlinevirtual |
Get the region object that defines the size and starting index of the region of the image currently loaded in memory.
Definition at line 509 of file itkSpatialObject.h.
|
virtual |
Returns a list of pointer to the children affiliated to this object. A depth of 0 returns the immediate children. A depth of 1 returns the children and those children's children.
|
virtual |
Get the class name with the dimension of the spatial object appended
|
virtual |
|
virtual |
Set/Get the default inside value (ValueAtInWorldSpace()) of the object. Default is 1.0
|
virtual |
Set/Get the default outside value (ValueAtInWorldSpace()) of the object. Default is 0.0
|
virtual |
Get a pointer to the bounding box of the object. The extents and the position of the box are not computed.
|
virtual |
Get a pointer to the bounding box of the object. The extents and the position of the box are not computed.
|
virtual |
Get/Set the ID
|
inlinevirtual |
Get the region object that defines the size and starting index for the largest possible region this image could represent. This is used in determining how much memory would be needed to load an entire dataset. It is also used to determine boundary conditions.
Definition at line 494 of file itkSpatialObject.h.
|
inline |
Return the maximum depth that a tree of spatial objects can have. This provides convenient access to a static constant.
Definition at line 73 of file itkSpatialObject.h.
|
inlineprotected |
Definition at line 648 of file itkSpatialObject.h.
|
virtual |
Transforms points from the object-specific "physical" space to the "physical" space of its parent object.
|
virtual |
This defines the transformation from the global coordinate frame. By setting this transform, the object transform is updated
|
overridevirtual |
Returns the latest modified time of the spatial object, and any of its components.
Reimplemented from itk::Object.
|
virtual |
Get a pointer to the axis-aligned bounding box of the object in world space. This box is computed by ComputeMyBoundingBox which is called by Update().
|
virtual |
Get a pointer to the axis-aligned bounding box of the object in world space. This box is computed by ComputeMyBoundingBox which is called by Update().
|
inline |
Returns the latest modified time of the spatial object, but not the modification time of the children
Definition at line 195 of file itkSpatialObject.h.
|
virtual |
Run-time type information (and related methods).
Reimplemented from itk::DataObject.
Reimplemented in itk::ContourSpatialObject< TDimension >, itk::BlobSpatialObject< TDimension >, itk::ImageMaskSpatialObject< TDimension, TPixel >, itk::LineSpatialObject< TDimension >, itk::TubeSpatialObject< TDimension, TSpatialObjectPointType >, itk::TubeSpatialObject< TDimension, DTITubeSpatialObjectPoint< TDimension > >, itk::DTITubeSpatialObject< TDimension >, itk::SurfaceSpatialObject< TDimension, TSpatialObjectPointType >, itk::ImageSpatialObject< TDimension, TPixelType >, itk::ImageSpatialObject< TDimension, TPixel >, itk::LandmarkSpatialObject< TDimension >, itk::EllipseSpatialObject< TDimension >, itk::MeshSpatialObject< TMesh >, itk::GaussianSpatialObject< TDimension >, itk::PointBasedSpatialObject< TDimension, TSpatialObjectPointType >, itk::PointBasedSpatialObject< TDimension, ContourSpatialObjectPoint< TDimension > >, itk::PointBasedSpatialObject< TDimension, SurfaceSpatialObjectPoint< TDimension > >, itk::PointBasedSpatialObject< TDimension >, itk::PointBasedSpatialObject< TDimension, SpatialObjectPoint< TDimension > >, itk::PointBasedSpatialObject< TDimension, LineSpatialObjectPoint< TDimension > >, itk::PointBasedSpatialObject< TDimension, DTITubeSpatialObjectPoint< TDimension > >, itk::PolygonSpatialObject< TDimension >, itk::ArrowSpatialObject< TDimension >, itk::BoxSpatialObject< TDimension >, itk::GroupSpatialObject< TDimension >, and itk::GroupSpatialObject< 3 >.
int itk::SpatialObject< VDimension >::GetNextAvailableId | ( | ) | const |
Generate a unique Id
unsigned int itk::SpatialObject< VDimension >::GetNumberOfChildren | ( | unsigned int | depth = 0 , |
const std::string & | name = "" |
||
) | const |
Returns the number of children currently assigned to the object.
SpatialObject<VDimension>* itk::SpatialObject< VDimension >::GetObjectById | ( | int | id | ) |
Return a SpatialObject given its ID, if it is a child
|
inline |
Get the dimensionality of the object
Definition at line 127 of file itkSpatialObject.h.
const TransformType* itk::SpatialObject< VDimension >::GetObjectToParentTransformInverse | ( | ) | const |
Transforms points from the object-specific "physical" space to the "physical" space of its parent object.
const TransformType* itk::SpatialObject< VDimension >::GetObjectToWorldTransformInverse | ( | ) | const |
This defines the transformation from the global coordinate frame. By setting this transform, the object transform is updated
|
virtual |
Return a pointer to the parent object in the hierarchy tree
|
virtual |
Return a pointer to the parent object in the hierarchy tree
|
virtual |
Set/Get the parent Identification number
|
inline |
Definition at line 182 of file itkSpatialObject.h.
|
inline |
Returns a pointer to the property object applied to this class.
Definition at line 176 of file itkSpatialObject.h.
|
inlinevirtual |
Get the region object that defines the size and starting index for the region of the image requested (i.e., the region of the image to be operated on by a filter).
Definition at line 533 of file itkSpatialObject.h.
|
inlinevirtual |
Get the typename of the SpatialObject
Definition at line 151 of file itkSpatialObject.h.
|
virtual |
Return true if the object has a parent object. Basically, only the root object , or some isolated objects should return false.
|
overrideprotectedvirtual |
Actual implementation of the clone method. This method should be reimplemented in subclasses to clone the extra required parameters.
Reimplemented from itk::LightObject.
Reimplemented in itk::TubeSpatialObject< TDimension, DTITubeSpatialObjectPoint< TDimension > >.
|
virtual |
|
virtual |
Returns true if the object can provide a "meaningful" value at a point. Often defaults to returning same answer as IsInsideInWorldSpace, but certain objects influence space beyond their spatial extent, e.g., an RFA Needle Spatial Object can cause a burn that extends beyond the tip of the needle.
|
virtual |
World space equivalent to IsEvaluableAtInObjectSpace
|
virtual |
|
virtual |
Returns false by default, but is overridden in order to return true if a point is inside the object.
Reimplemented in itk::PointBasedSpatialObject< TDimension, TSpatialObjectPointType >, itk::PointBasedSpatialObject< TDimension, ContourSpatialObjectPoint< TDimension > >, itk::PointBasedSpatialObject< TDimension, SurfaceSpatialObjectPoint< TDimension > >, itk::PointBasedSpatialObject< TDimension >, itk::PointBasedSpatialObject< TDimension, SpatialObjectPoint< TDimension > >, itk::PointBasedSpatialObject< TDimension, LineSpatialObjectPoint< TDimension > >, itk::PointBasedSpatialObject< TDimension, DTITubeSpatialObjectPoint< TDimension > >, itk::TubeSpatialObject< TDimension, TSpatialObjectPointType >, itk::TubeSpatialObject< TDimension, DTITubeSpatialObjectPoint< TDimension > >, itk::GaussianSpatialObject< TDimension >, itk::PolygonSpatialObject< TDimension >, itk::EllipseSpatialObject< TDimension >, itk::ImageSpatialObject< TDimension, TPixelType >, itk::ImageSpatialObject< TDimension, TPixel >, itk::MeshSpatialObject< TMesh >, itk::ImageMaskSpatialObject< TDimension, TPixel >, itk::BoxSpatialObject< TDimension >, and itk::LineSpatialObject< TDimension >.
bool itk::SpatialObject< VDimension >::IsInsideInObjectSpace | ( | const PointType & | point, |
unsigned int | depth, | ||
const std::string & | name = "" |
||
) | const |
Returns true if a point is inside the object in object space.
|
virtual |
World space equivalent to IsInsideInObjectSpace
|
static |
Method for creation through the object factory.
|
overrideprotectedvirtual |
Methods invoked by Print() to print information about the object including superclasses. Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes.
Reimplemented from itk::DataObject.
Reimplemented in itk::TubeSpatialObject< TDimension, DTITubeSpatialObjectPoint< TDimension > >.
|
protected |
Compute the World transform when the local transform is set This function should be called each time the local transform has been modified
void itk::SpatialObject< VDimension >::RemoveAllChildren | ( | unsigned int | depth = MaximumDepth | ) |
Remove all children to a given depth
bool itk::SpatialObject< VDimension >::RemoveChild | ( | Self * | pointer | ) |
Remove the object passed as arguments from the list of children.
|
overridevirtual |
Determine whether the RequestedRegion is outside of the BufferedRegion. This method returns true if the RequestedRegion is outside the BufferedRegion (true if at least one pixel is outside). This is used by the pipeline mechanism to determine whether a filter needs to re-execute in order to satisfy the current request. If the current RequestedRegion is already inside the BufferedRegion from the previous execution (and the current filter is up to date), then a given filter does not need to re-execute
Reimplemented from itk::DataObject.
|
virtual |
Set the region object that defines the size and starting index of the region of the image currently loaded in memory.
void itk::SpatialObject< VDimension >::SetChildren | ( | ChildrenListType & | children | ) |
Set the list of pointers to children to the list passed as argument.
|
virtual |
Set/Get the default inside value (ValueAtInWorldSpace()) of the object. Default is 1.0
|
virtual |
Set/Get the default outside value (ValueAtInWorldSpace()) of the object. Default is 0.0
void itk::SpatialObject< VDimension >::SetId | ( | int | id | ) |
Get/Set the ID
|
virtual |
Set the region object that defines the size and starting index for the largest possible region this image could represent. This is used in determining how much memory would be needed to load an entire dataset. It is also used to determine boundary conditions.
void itk::SpatialObject< VDimension >::SetObjectToParentTransform | ( | const TransformType * | transform | ) |
Transforms points from the object-specific "physical" space to the "physical" space of its parent object.
void itk::SpatialObject< VDimension >::SetObjectToWorldTransform | ( | const TransformType * | transform | ) |
This defines the transformation from the global coordinate frame. By setting this transform, the object transform is updated
void itk::SpatialObject< VDimension >::SetParent | ( | Self * | parent | ) |
Set the pointer to the parent object in the tree hierarchy. Updates the ObjectToParentTransform to keep the object from moving in space.
|
virtual |
Set/Get the parent Identification number
|
inline |
Set the property applied to the object.
Definition at line 167 of file itkSpatialObject.h.
|
overridevirtual |
Set the requested region from this data object to match the requested region of the data object passed in as a parameter. This method implements the API from DataObject. The data object parameter must be castable to an ImageBase.
Reimplemented from itk::DataObject.
|
virtual |
Set the region object that defines the size and starting index for the region of the image requested (i.e., the region of the image to be operated on by a filter).
|
overridevirtual |
Set the RequestedRegion to the LargestPossibleRegion. This forces a filter to produce all of the output in one execution (i.e. not streaming) on the next call to Update().
Reimplemented from itk::DataObject.
|
virtual |
Set the typename of the SpatialObject. Use cautiously - Conversion, Factory, and IO methods depend on standard naming. Can be used to prepend a subtype to a typename.
|
overridevirtual |
Update - Optionally used to compute a world-coordinate representation of the object. Object-dependent implementation.
Reimplemented from itk::DataObject.
|
overridevirtual |
Update the information for this DataObject so that it can be used as an output of a ProcessObject. This method is used the pipeline mechanism to propagate information and initialize the meta data associated with a DataObject. This method calls its source's ProcessObject::UpdateOutputInformation() which determines modified times, LargestPossibleRegions, and any extra meta data like spacing, origin, etc.
Reimplemented from itk::DataObject.
|
virtual |
|
virtual |
Returns the value at a point. Returns true if that value is valid
Reimplemented in itk::GaussianSpatialObject< TDimension >, itk::ImageSpatialObject< TDimension, TPixelType >, and itk::ImageSpatialObject< TDimension, TPixel >.
|
virtual |
World space equivalent to ValueAtInObjectSpace
|
overridevirtual |
Verify that the RequestedRegion is within the LargestPossibleRegion. If the RequestedRegion is not within the LargestPossibleRegion, then the filter cannot possible satisfy the request. This method returns true if the request can be satisfied and returns fails if the request cannot. This method is used by PropagateRequestedRegion(). PropagateRequestedRegion() throws a InvalidRequestedRegionError exception is the requested region is not within the LargestPossibleRegion.
Reimplemented from itk::DataObject.
|
private |
Definition at line 670 of file itkSpatialObject.h.
|
private |
Definition at line 683 of file itkSpatialObject.h.
|
private |
Default inside value for the ValueAtInWorldSpace()
Definition at line 686 of file itkSpatialObject.h.
|
private |
Default outside value for the ValueAtInWorldSpace()
Definition at line 689 of file itkSpatialObject.h.
|
private |
Definition at line 674 of file itkSpatialObject.h.
|
private |
Definition at line 675 of file itkSpatialObject.h.
|
private |
Object Identification Number
Definition at line 658 of file itkSpatialObject.h.
|
private |
Definition at line 668 of file itkSpatialObject.h.
|
private |
Definition at line 672 of file itkSpatialObject.h.
|
private |
Definition at line 673 of file itkSpatialObject.h.
|
private |
Definition at line 677 of file itkSpatialObject.h.
|
private |
Definition at line 678 of file itkSpatialObject.h.
|
private |
Definition at line 680 of file itkSpatialObject.h.
|
private |
Definition at line 681 of file itkSpatialObject.h.
|
private |
Definition at line 666 of file itkSpatialObject.h.
|
private |
Definition at line 665 of file itkSpatialObject.h.
|
private |
Definition at line 663 of file itkSpatialObject.h.
|
private |
Definition at line 669 of file itkSpatialObject.h.
|
private |
Type of spatial object
Definition at line 661 of file itkSpatialObject.h.
|
staticconstexpr |
Definition at line 68 of file itkSpatialObject.h.
|
staticconstexpr |
Definition at line 66 of file itkSpatialObject.h.