ITK
4.1.0
Insight Segmentation and Registration Toolkit
|
#include <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 |
Public Member Functions | |
void | AddSpatialObject (SpatialObject< TSpaceDimension > *pointer) |
bool | CheckIdValidity (void) |
void | Clear () |
bool | FixHierarchy (void) |
void | FixIdValidity (void) |
unsigned long | GetMTime (void) const |
int | GetNextAvailableId () |
unsigned int | GetNumberOfObjects (unsigned int depth=MaximumDepth, char *name=NULL) |
SpatialObject< TSpaceDimension > * | GetObjectById (int Id) |
ObjectListType * | GetObjects (unsigned int depth=MaximumDepth, char *name=NULL) |
void | RemoveSpatialObject (SpatialObject< TSpaceDimension > *object) |
void | SetObjects (ObjectListType &children) |
void | SetParentId (int parentid) |
int | GetParentId (void) |
Static Public Attributes | |
static const unsigned int | MaximumDepth = 9999999 |
Protected Member Functions | |
void | operator= (const Self &) |
virtual void | PrintSelf (std::ostream &os, Indent indent) const |
SceneSpatialObject (const Self &) | |
SceneSpatialObject () | |
virtual | ~SceneSpatialObject () |
Protected Attributes | |
ObjectListType | m_Objects |
int | m_ParentId |
static Pointer | New () |
virtual ::itk::LightObject::Pointer | CreateAnother (void) const |
virtual const char * | GetNameOfClass () const |
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.
typedef SmartPointer< const Self > itk::SceneSpatialObject< TSpaceDimension >::ConstPointer |
Reimplemented from itk::Object.
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 |
Reimplemented from itk::Object.
Definition at line 46 of file itkSceneSpatialObject.h.
typedef SceneSpatialObject< TSpaceDimension > itk::SceneSpatialObject< TSpaceDimension >::Self |
Smart pointer typedef support.
Reimplemented from itk::Object.
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 |
Reimplemented from itk::Object.
Definition at line 44 of file itkSceneSpatialObject.h.
typedef Superclass::Pointer itk::SceneSpatialObject< TSpaceDimension >::SuperclassPointer |
Definition at line 45 of file itkSceneSpatialObject.h.
itk::SceneSpatialObject< TSpaceDimension >::SceneSpatialObject | ( | const Self & | ) | [protected] |
itk::SceneSpatialObject< TSpaceDimension >::SceneSpatialObject | ( | ) | [protected] |
constructor
virtual itk::SceneSpatialObject< TSpaceDimension >::~SceneSpatialObject | ( | ) | [protected, virtual] |
destructor
void itk::SceneSpatialObject< TSpaceDimension >::AddSpatialObject | ( | SpatialObject< TSpaceDimension > * | pointer | ) |
Add an object to the list of children.
bool itk::SceneSpatialObject< TSpaceDimension >::CheckIdValidity | ( | void | ) |
void itk::SceneSpatialObject< TSpaceDimension >::Clear | ( | ) |
Clear function : Remove all the objects in the scene
virtual::itk::LightObject::Pointer itk::SceneSpatialObject< TSpaceDimension >::CreateAnother | ( | void | ) | const [virtual] |
Method for creation through the object factory
Reimplemented from itk::Object.
bool itk::SceneSpatialObject< TSpaceDimension >::FixHierarchy | ( | void | ) |
void itk::SceneSpatialObject< TSpaceDimension >::FixIdValidity | ( | void | ) |
unsigned long itk::SceneSpatialObject< TSpaceDimension >::GetMTime | ( | void | ) | const [virtual] |
Returns the latest modified time of all the objects contained in this SceneSpatialObject object.
Reimplemented from itk::Object.
virtual const char* itk::SceneSpatialObject< TSpaceDimension >::GetNameOfClass | ( | ) | const [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 = NULL |
||
) |
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 = NULL |
||
) |
Returns a list of pointer to the objects in the scene.
int itk::SceneSpatialObject< TSpaceDimension >::GetParentId | ( | void | ) | [inline] |
Get/Set the ParentID
Definition at line 92 of file itkSceneSpatialObject.h.
static Pointer itk::SceneSpatialObject< TSpaceDimension >::New | ( | ) | [static] |
Method for creation through the object factory
Reimplemented from itk::Object.
void itk::SceneSpatialObject< TSpaceDimension >::operator= | ( | const Self & | ) | [protected] |
Mutex lock to protect modification to the reference count
Reimplemented from itk::Object.
virtual void itk::SceneSpatialObject< TSpaceDimension >::PrintSelf | ( | std::ostream & | os, |
Indent | indent | ||
) | const [protected, virtual] |
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.
void itk::SceneSpatialObject< TSpaceDimension >::SetParentId | ( | int | parentid | ) | [inline] |
Get/Set the ParentID
Definition at line 91 of file itkSceneSpatialObject.h.
ObjectListType itk::SceneSpatialObject< TSpaceDimension >::m_Objects [protected] |
List of the children object plug to the SceneSpatialObject spatial object.
Definition at line 115 of file itkSceneSpatialObject.h.
int itk::SceneSpatialObject< TSpaceDimension >::m_ParentId [protected] |
Parent ID : default = -1
Definition at line 127 of file itkSceneSpatialObject.h.
const unsigned int itk::SceneSpatialObject< TSpaceDimension >::MaximumDepth = 9999999 [static] |
Definition at line 55 of file itkSceneSpatialObject.h.