ITK  4.8.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 >
39 {
40 public:
45 
46  typedef TIteratingFilter IteratingFilterType;
47  typedef TFilterToUpdate FilterToUpdateType;
48 
50  itkTypeMacro( LevelSetIterationUpdateCommand, Command );
51 
52  itkNewMacro( Self );
53 
54  virtual void Execute( const Object* caller, const EventObject& event );
55 
56  virtual void Execute( Object* caller, const EventObject& event );
57 
59  itkSetObjectMacro( FilterToUpdate, FilterToUpdateType );
60  itkGetModifiableObjectMacro(FilterToUpdate, FilterToUpdateType );
62 
65  itkSetMacro( UpdatePeriod, IdentifierType );
66  itkGetConstMacro( UpdatePeriod, IdentifierType );
68 
69 protected:
72 
73 private:
74  LevelSetIterationUpdateCommand( const Self& ); // purposely not implemented
75  void operator= ( const Self& ); // purposely not implemented
76 
79 };
80 
81 } // end namespace itk
82 
83 #ifndef ITK_MANUAL_INSTANTIATION
84 #include "itkLevelSetIterationUpdateCommand.hxx"
85 #endif
86 
87 #endif
WeakPointer< FilterToUpdateType > m_FilterToUpdate
SizeValueType IdentifierType
Definition: itkIntTypes.h:147
virtual void Execute(const Object *caller, const EventObject &event)
Call update on one filter when another filter iterates.
Abstraction of the Events used to communicating among filters and with GUIs.
Base class for most ITK classes.
Definition: itkObject.h:57
Superclass for callback/observer methods.
Definition: itkCommand.h:44