![]() |
ITK
4.13.0
Insight Segmentation and Registration Toolkit
|
#include <itkSceneSpatialObject.h>
a SceneSpatialObject has a list of SpatialObjects
This class represent a SceneSpatialObject object into which one can plug any kind of spatial object.
Definition at line 38 of file itkSceneSpatialObject.h.
Public Types | |
typedef SmartPointer< const Self > | ConstPointer |
typedef std::list < SpatialObjectPointer > | ObjectListType |
typedef SpatialObject < TSpaceDimension > | ObjectType |
typedef SmartPointer< Self > | Pointer |
typedef SceneSpatialObject < TSpaceDimension > | Self |
typedef SpatialObjectType::Pointer | SpatialObjectPointer |
typedef SpatialObject < TSpaceDimension > | SpatialObjectType |
typedef Object | Superclass |
typedef Superclass::Pointer | SuperclassPointer |
![]() | |
typedef SmartPointer< const Self > | ConstPointer |
typedef SmartPointer< Self > | Pointer |
typedef Object | Self |
typedef LightObject | Superclass |
![]() | |
typedef SmartPointer< const Self > | ConstPointer |
typedef SmartPointer< Self > | Pointer |
typedef LightObject | Self |
Public Member Functions | |
void | AddSpatialObject (SpatialObject< TSpaceDimension > *pointer) |
bool | CheckIdValidity () |
void | Clear () |
bool | FixHierarchy () |
void | FixIdValidity () |
virtual ModifiedTimeType | GetMTime (void) const override |
int | GetNextAvailableId () |
unsigned int | GetNumberOfObjects (unsigned int depth=MaximumDepth, char *name=nullptr) |
SpatialObject< TSpaceDimension > * | GetObjectById (int Id) |
ObjectListType * | GetObjects (unsigned int depth=MaximumDepth, char *name=nullptr) |
void | RemoveSpatialObject (SpatialObject< TSpaceDimension > *object) |
void | SetObjects (ObjectListType &children) |
void | SetParentId (int parentid) |
int | GetParentId (void) |
![]() | |
unsigned long | AddObserver (const EventObject &event, Command *) |
unsigned long | AddObserver (const EventObject &event, Command *) const |
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 |
virtual void | Register () const override |
void | RemoveAllObservers () |
void | RemoveObserver (unsigned long tag) |
void | SetDebug (bool debugFlag) const |
void | SetMetaDataDictionary (const MetaDataDictionary &rhs) |
virtual void | SetReferenceCount (int) override |
virtual void | UnRegister () const noexceptoverride |
virtual void | SetObjectName (std::string _arg) |
virtual const std::string & | GetObjectName () const |
![]() | |
virtual void | Delete () |
virtual int | GetReferenceCount () const |
itkCloneMacro (Self) | |
void | Print (std::ostream &os, Indent indent=0) const |
Static Public Attributes | |
static const unsigned int | MaximumDepth = 9999999 |
Protected Member Functions | |
virtual void | PrintSelf (std::ostream &os, Indent indent) const override |
SceneSpatialObject () | |
virtual | ~SceneSpatialObject () override |
![]() | |
Object () | |
bool | PrintObservers (std::ostream &os, Indent indent) const |
virtual void | SetTimeStamp (const TimeStamp &time) |
virtual | ~Object () override |
![]() | |
virtual LightObject::Pointer | InternalClone () const |
LightObject () | |
virtual void | PrintHeader (std::ostream &os, Indent indent) const |
virtual void | PrintTrailer (std::ostream &os, Indent indent) const |
virtual | ~LightObject () |
Protected Attributes | |
ObjectListType | m_Objects |
int | m_ParentId |
![]() | |
AtomicInt< int > | m_ReferenceCount |
static Pointer | New () |
virtual ::itk::LightObject::Pointer | CreateAnother () const |
virtual const char * | GetNameOfClass () const |
Additional Inherited Members | |
![]() | |
static bool | GetGlobalWarningDisplay () |
static void | GlobalWarningDisplayOff () |
static void | GlobalWarningDisplayOn () |
static Pointer | New () |
static void | SetGlobalWarningDisplay (bool flag) |
![]() | |
static void | BreakOnError () |
static Pointer | New () |
typedef SmartPointer< const Self > itk::SceneSpatialObject< TSpaceDimension >::ConstPointer |
Definition at line 47 of file itkSceneSpatialObject.h.
typedef std::list< SpatialObjectPointer > itk::SceneSpatialObject< TSpaceDimension >::ObjectListType |
Definition at line 53 of file itkSceneSpatialObject.h.
typedef SpatialObject< TSpaceDimension > itk::SceneSpatialObject< TSpaceDimension >::ObjectType |
Definition at line 49 of file itkSceneSpatialObject.h.
typedef SmartPointer< Self > itk::SceneSpatialObject< TSpaceDimension >::Pointer |
Definition at line 46 of file itkSceneSpatialObject.h.
typedef SceneSpatialObject< TSpaceDimension > itk::SceneSpatialObject< TSpaceDimension >::Self |
Definition at line 43 of file itkSceneSpatialObject.h.
typedef SpatialObjectType::Pointer itk::SceneSpatialObject< TSpaceDimension >::SpatialObjectPointer |
Definition at line 51 of file itkSceneSpatialObject.h.
typedef SpatialObject< TSpaceDimension > itk::SceneSpatialObject< TSpaceDimension >::SpatialObjectType |
Definition at line 50 of file itkSceneSpatialObject.h.
typedef Object itk::SceneSpatialObject< TSpaceDimension >::Superclass |
Definition at line 44 of file itkSceneSpatialObject.h.
typedef Superclass::Pointer itk::SceneSpatialObject< TSpaceDimension >::SuperclassPointer |
Definition at line 45 of file itkSceneSpatialObject.h.
|
protected |
constructor
|
overrideprotectedvirtual |
destructor
void itk::SceneSpatialObject< TSpaceDimension >::AddSpatialObject | ( | SpatialObject< TSpaceDimension > * | pointer | ) |
Add an object to the list of children.
bool itk::SceneSpatialObject< TSpaceDimension >::CheckIdValidity | ( | ) |
void itk::SceneSpatialObject< TSpaceDimension >::Clear | ( | ) |
Clear function : Remove all the objects in the scene
|
virtual |
Method for creation through the object factory
Reimplemented from itk::Object.
bool itk::SceneSpatialObject< TSpaceDimension >::FixHierarchy | ( | ) |
In practice, this is used to transform an imported MetaIO scene hierarchy specified only by Ids into the SceneSpatialObject hierarchy specified by Ids and Child/Parent lists.
void itk::SceneSpatialObject< TSpaceDimension >::FixIdValidity | ( | ) |
|
overridevirtual |
Returns the latest modified time of all the objects contained in this SceneSpatialObject object.
Reimplemented from itk::Object.
|
virtual |
Method for creation through the object factory
Reimplemented from itk::Object.
int itk::SceneSpatialObject< TSpaceDimension >::GetNextAvailableId | ( | ) |
unsigned int itk::SceneSpatialObject< TSpaceDimension >::GetNumberOfObjects | ( | unsigned int | depth = MaximumDepth , |
char * | name = nullptr |
||
) |
Returns the number of children currently assigned to the SceneSpatialObject object.
SpatialObject< TSpaceDimension >* itk::SceneSpatialObject< TSpaceDimension >::GetObjectById | ( | int | Id | ) |
Return a SpatialObject in the SceneSpatialObject given its ID
ObjectListType* itk::SceneSpatialObject< TSpaceDimension >::GetObjects | ( | unsigned int | depth = MaximumDepth , |
char * | name = nullptr |
||
) |
Returns a list of pointer to the objects in the scene.
|
inline |
Get/Set the ParentID
Definition at line 92 of file itkSceneSpatialObject.h.
|
static |
Method for creation through the object factory
|
overrideprotectedvirtual |
Print the object informations in a stream.
Reimplemented from itk::Object.
void itk::SceneSpatialObject< TSpaceDimension >::RemoveSpatialObject | ( | SpatialObject< TSpaceDimension > * | object | ) |
Remove the object passed as arguments from the list of children. May this function should return a false value if the object to remove is not found in the list.
void itk::SceneSpatialObject< TSpaceDimension >::SetObjects | ( | ObjectListType & | children | ) |
Set the list of pointers to children to the list passed as argument.
|
inline |
Get/Set the ParentID
Definition at line 91 of file itkSceneSpatialObject.h.
|
protected |
List of the children object plug to the SceneSpatialObject spatial object.
Definition at line 113 of file itkSceneSpatialObject.h.
|
protected |
Parent ID : default = -1
Definition at line 129 of file itkSceneSpatialObject.h.
|
static |
Definition at line 55 of file itkSceneSpatialObject.h.