18 #ifndef itkTreeChangeEvent_h
19 #define itkTreeChangeEvent_h
32 template<
typename TTreeType >
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); }
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); }
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); }
179 template<
typename TTreeType >
193 virtual bool CheckEvent(const::itk::EventObject *
e)
const {
return (dynamic_cast< const Self * >( e ) != ITK_NULLPTR); }
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
void operator=(const Self &)
virtual const char * GetEventName() const
void operator=(const Self &)
void operator=(const Self &)
static const double e
The base of the natural logarithm or Euler's number
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 ::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)
virtual ~TreeChangeEvent()
TreeRemoveEvent< TTreeType > Superclass
Checks if a node has been removed from the tree.
void operator=(const Self &)
Checks if a node has been added to the tree.
void operator=(const Self &)
virtual bool CheckEvent(const ::itk::EventObject *e) const
virtual const char * GetEventName() const