18 #ifndef itkTreeChangeEvent_h
19 #define itkTreeChangeEvent_h
32 template<
typename TTreeType >
43 m_ChangePosition( ITK_NULLPTR )
53 virtual const char *
GetEventName() const ITK_OVERRIDE {
return "TreeChangeEvent"; }
56 virtual bool CheckEvent(const::itk::EventObject *
e)
const ITK_OVERRIDE {
return (dynamic_cast< const Self * >(
e ) != ITK_NULLPTR); }
59 virtual::itk::EventObject *
MakeObject() const ITK_OVERRIDE {
return new Self(*m_ChangePosition); }
72 void operator=(
const Self &);
80 template<
typename TTreeType >
92 virtual const char *
GetEventName()
const {
return "TreeNodeChangeEvent"; }
94 virtual bool CheckEvent(const::itk::EventObject *
e)
const {
return dynamic_cast< const Self *
>(
e ); }
108 template<
typename TTreeType >
128 virtual bool CheckEvent(const::itk::EventObject *
e)
const {
return (dynamic_cast< const Self * >( e ) != ITK_NULLPTR); }
131 virtual::itk::EventObject *
MakeObject()
const {
return new Self(*this->m_ChangePosition); }
136 void operator=(
const Self &);
143 template<
typename TTreeType >
160 virtual const char *
GetEventName()
const {
return "TreeRemoveEvent"; }
163 virtual bool CheckEvent(const::itk::EventObject *
e)
const {
return (dynamic_cast< const Self * >( e ) != ITK_NULLPTR); }
166 virtual::itk::EventObject *
MakeObject()
const {
return new Self(*this->m_ChangePosition); }
171 void operator=(
const Self &);
179 template<
typename TTreeType >
193 virtual bool CheckEvent(const::itk::EventObject *
e)
const {
return (dynamic_cast< const Self * >( e ) != ITK_NULLPTR); }
195 virtual::itk::EventObject *
MakeObject()
const {
return new Self(*this->m_ChangePosition); }
200 void operator=(
const Self &);
TreeChangeEvent(const Self &s)
virtual ::itk::EventObject * MakeObject() const
TreeChangeEvent< TTreeType > Superclass
const TreeIteratorBase< TTreeType > * m_ChangePosition
virtual bool CheckEvent(const ::itk::EventObject *e) const
virtual const char * GetEventName() const
const TreeIteratorBase< TTreeType > & GetChangePosition() const
virtual ::itk::EventObject * MakeObject() const
virtual const char * GetEventName() const
void operator=(const Self &)
TreeNodeChangeEvent(const TreeIteratorBase< TTreeType > &position)
TreePruneEvent(const TreeIteratorBase< TTreeType > &position)
Signals that a node and all its childs will shortly be removed. The position of the top-level removed...
TreeChangeEvent< TTreeType > Superclass
virtual const char * GetEventName() const override
TreeRemoveEvent(const TreeIteratorBase< TTreeType > &position)
TreeAddEvent(const TreeIteratorBase< TTreeType > &position)
virtual bool CheckEvent(const ::itk::EventObject *e) const
virtual ~TreeChangeEvent() override
virtual ::itk::EventObject * MakeObject() const override
virtual bool CheckEvent(const ::itk::EventObject *e) const
Checks if the position of a node in the tree has been changed.
virtual const char * GetEventName() const
virtual bool CheckEvent(const ::itk::EventObject *e) const override
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.
TreeChangeEvent< TTreeType > Superclass
TreePruneEvent(const Self &s)
TreeNodeChangeEvent(const Self &s)
virtual ::itk::EventObject * MakeObject() const
TreeChangeEvent(const TreeIteratorBase< TTreeType > &position)
TreeAddEvent(const Self &s)
virtual ::itk::EventObject * MakeObject() const
TreeRemoveEvent(const Self &s)
TreeRemoveEvent< TTreeType > Superclass
Checks if a node has been removed from the tree.
Checks if a node has been added to the tree.
static ITK_CONSTEXPR_VAR double e
The base of the natural logarithm or Euler's number
virtual bool CheckEvent(const ::itk::EventObject *e) const
virtual const char * GetEventName() const