|
ITK
5.1.0
Insight Toolkit
|
Go to the documentation of this file.
18 #ifndef itkTreeChangeEvent_h
19 #define itkTreeChangeEvent_h
32 template <
typename TTreeType>
42 : m_ChangePosition(nullptr)
55 return "TreeChangeEvent";
62 return (dynamic_cast<const Self *>(
e) !=
nullptr);
69 return new Self(*m_ChangePosition);
76 return *m_ChangePosition;
81 :
itk::ModifiedEvent(s)
89 operator=(
const Self &) =
delete;
97 template <
typename TTreeType>
113 return "TreeNodeChangeEvent";
119 auto eSelf = dynamic_cast<const Self *>(
e);
120 return eSelf !=
nullptr;
142 template <
typename TTreeType>
162 return "TreeAddEvent";
169 return (dynamic_cast<const Self *>(
e) !=
nullptr);
176 return new Self(*this->m_ChangePosition);
185 operator=(
const Self &) =
delete;
192 template <
typename TTreeType>
212 return "TreeRemoveEvent";
219 return (dynamic_cast<const Self *>(
e) !=
nullptr);
226 return new Self(*this->m_ChangePosition);
235 operator=(
const Self &) =
delete;
243 template <
typename TTreeType>
259 return "TreePruneEvent";
265 return (dynamic_cast<const Self *>(
e) !=
nullptr);
271 return new Self(*this->m_ChangePosition);
280 operator=(
const Self &) =
delete;
TreeChangeEvent(const TreeIteratorBase< TTreeType > &position)
const TreeIteratorBase< TTreeType > & GetChangePosition() const
TreeNodeChangeEvent(const TreeIteratorBase< TTreeType > &position)
::itk::EventObject * MakeObject() const override
const char * GetEventName() const override
TreeNodeChangeEvent(const Self &s)
::itk::EventObject * MakeObject() const override
bool CheckEvent(const ::itk::EventObject *e) const override
const TreeIteratorBase< TTreeType > * m_ChangePosition
This class provides the base implementation for tree iterators.
::itk::EventObject * MakeObject() const override
::itk::EventObject * MakeObject() const override
Signals that a node and all its childs will shortly be removed. The position of the top-level removed...
TreeNodeChangeEvent()=default
TreeChangeEvent(const Self &s)
bool CheckEvent(const ::itk::EventObject *e) const override
const char * GetEventName() const override
TreeRemoveEvent(const Self &s)
const char * GetEventName() const override
const char * GetEventName() const override
Checks if a node has been added to the tree.
TreeAddEvent(const Self &s)
bool CheckEvent(const ::itk::EventObject *e) const override
bool CheckEvent(const ::itk::EventObject *e) const override
::itk::EventObject * MakeObject() const override
Checks if a node has been removed from the tree.
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
Checks if the position of a node in the tree has been changed.
TreeRemoveEvent(const TreeIteratorBase< TTreeType > &position)
static constexpr double e
Abstraction of the Events used to communicating among filters and with GUIs.
TreeAddEvent(const TreeIteratorBase< TTreeType > &position)
Signals that a node has been set to another value. The position of the changed node is provided.
void operator=(const Self &)=delete
TreePruneEvent(const TreeIteratorBase< TTreeType > &position)
const char * GetEventName() const override
TreePruneEvent(const Self &s)
bool CheckEvent(const ::itk::EventObject *e) const override