ITK  5.0.0
Insight Segmentation and Registration Toolkit
itkLevelSetIterationUpdateCommand.h
Go to the documentation of this file.
1 /*=========================================================================
2  *
3  * Copyright Insight Software Consortium
4  *
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  * http://www.apache.org/licenses/LICENSE-2.0.txt
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  *
17  *=========================================================================*/
18 #ifndef itkLevelSetIterationUpdateCommand_h
19 #define itkLevelSetIterationUpdateCommand_h
20 
21 #include "itkCommand.h"
22 #include "itkWeakPointer.h"
23 #include "itkIntTypes.h"
24 
25 namespace itk
26 {
27 
37 template< typename TIteratingFilter, typename TFilterToUpdate >
38 class ITK_TEMPLATE_EXPORT LevelSetIterationUpdateCommand : public Command
39 {
40 public:
41  ITK_DISALLOW_COPY_AND_ASSIGN(LevelSetIterationUpdateCommand);
42 
47 
48  using IteratingFilterType = TIteratingFilter;
49  using FilterToUpdateType = TFilterToUpdate;
50 
52  itkTypeMacro( LevelSetIterationUpdateCommand, Command );
53 
54  itkNewMacro( Self );
55 
56  void Execute( const Object* caller, const EventObject& event ) override;
57 
58  void Execute( Object* caller, const EventObject& event ) override;
59 
61  itkSetObjectMacro( FilterToUpdate, FilterToUpdateType );
62  itkGetModifiableObjectMacro(FilterToUpdate, FilterToUpdateType );
64 
67  itkSetMacro( UpdatePeriod, IdentifierType );
68  itkGetConstMacro( UpdatePeriod, IdentifierType );
70 
71 protected:
74 
75 private:
78 };
79 
80 } // end namespace itk
81 
82 #ifndef ITK_MANUAL_INSTANTIATION
83 #include "itkLevelSetIterationUpdateCommand.hxx"
84 #endif
85 
86 #endif
WeakPointer< FilterToUpdateType > m_FilterToUpdate
SizeValueType IdentifierType
Definition: itkIntTypes.h:87
Call update on one filter when another filter iterates.
Abstraction of the Events used to communicating among filters and with GUIs.
class ITK_FORWARD_EXPORT Command
Definition: itkObject.h:41
Base class for most ITK classes.
Definition: itkObject.h:60
Superclass for callback/observer methods.
Definition: itkCommand.h:44