18 #ifndef itkTreeChangeEvent_h
19 #define itkTreeChangeEvent_h
32 template<
typename TTreeType >
43 m_ChangePosition( nullptr )
53 const char *
GetEventName()
const override {
return "TreeChangeEvent"; }
56 bool CheckEvent(const::itk::EventObject *
e)
const override {
return (dynamic_cast< const Self * >( e ) !=
nullptr); }
72 void operator=(
const Self &) =
delete;
80 template<
typename TTreeType >
92 const char *
GetEventName()
const override {
return "TreeNodeChangeEvent"; }
96 auto eSelf =
dynamic_cast< const Self*
>(
e );
97 return eSelf !=
nullptr;
112 template<
typename TTreeType >
132 bool CheckEvent(const::itk::EventObject *
e)
const override {
return (dynamic_cast< const Self * >( e ) !=
nullptr); }
140 void operator=(
const Self &) =
delete;
147 template<
typename TTreeType >
164 const char *
GetEventName()
const override {
return "TreeRemoveEvent"; }
167 bool CheckEvent(const::itk::EventObject *
e)
const override {
return (dynamic_cast< const Self * >( e ) !=
nullptr); }
175 void operator=(
const Self &) =
delete;
183 template<
typename TTreeType >
195 const char *
GetEventName()
const override {
return "TreePruneEvent"; }
197 bool CheckEvent(const::itk::EventObject *
e)
const override {
return (dynamic_cast< const Self * >( e ) !=
nullptr); }
204 void operator=(
const Self &) =
delete;
TreeChangeEvent(const Self &s)
bool CheckEvent(const ::itk::EventObject *e) const override
::itk::EventObject * MakeObject() const override
const TreeIteratorBase< TTreeType > * m_ChangePosition
const char * GetEventName() const override
const char * GetEventName() const override
const TreeIteratorBase< TTreeType > & GetChangePosition() const
bool CheckEvent(const ::itk::EventObject *e) const override
TreeNodeChangeEvent(const TreeIteratorBase< TTreeType > &position)
::itk::EventObject * MakeObject() const override
TreePruneEvent(const TreeIteratorBase< TTreeType > &position)
Signals that a node and all its childs will shortly be removed. The position of the top-level removed...
const char * GetEventName() const override
const char * GetEventName() const override
const char * GetEventName() const override
TreeRemoveEvent(const TreeIteratorBase< TTreeType > &position)
TreeAddEvent(const TreeIteratorBase< TTreeType > &position)
::itk::EventObject * MakeObject() const override
bool CheckEvent(const ::itk::EventObject *e) const override
Checks if the position of a node in the tree has been changed.
Abstraction of the Events used to communicating among filters and with GUIs.
Signals that a node has been set to another value. The position of the changed node is provided...
This class provides the base implementation for tree iterators.
void operator=(const Self &)=delete
bool CheckEvent(const ::itk::EventObject *e) const override
TreePruneEvent(const Self &s)
TreeNodeChangeEvent()=default
TreeNodeChangeEvent(const Self &s)
bool CheckEvent(const ::itk::EventObject *e) const override
static constexpr double e
The base of the natural logarithm or Euler's number
TreeChangeEvent(const TreeIteratorBase< TTreeType > &position)
TreeAddEvent(const Self &s)
TreeRemoveEvent(const Self &s)
::itk::EventObject * MakeObject() const override
Checks if a node has been removed from the tree.
Checks if a node has been added to the tree.
::itk::EventObject * MakeObject() const override