ITK
4.1.0
Insight Segmentation and Registration Toolkit
|
00001 /*========================================================================= 00002 * 00003 * Copyright Insight Software Consortium 00004 * 00005 * Licensed under the Apache License, Version 2.0 (the "License"); 00006 * you may not use this file except in compliance with the License. 00007 * You may obtain a copy of the License at 00008 * 00009 * http://www.apache.org/licenses/LICENSE-2.0.txt 00010 * 00011 * Unless required by applicable law or agreed to in writing, software 00012 * distributed under the License is distributed on an "AS IS" BASIS, 00013 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 00014 * See the License for the specific language governing permissions and 00015 * limitations under the License. 00016 * 00017 *=========================================================================*/ 00018 #ifndef __itkInteriorExteriorSpatialFunction_h 00019 #define __itkInteriorExteriorSpatialFunction_h 00020 00021 #include "itkSpatialFunction.h" 00022 00023 namespace itk 00024 { 00048 template< unsigned int VDimension = 3, typename TInput = Point< double, VDimension > > 00049 class ITK_EXPORT InteriorExteriorSpatialFunction:public 00050 SpatialFunction< bool, VDimension, TInput > 00051 { 00052 public: 00054 typedef InteriorExteriorSpatialFunction Self; 00055 typedef SpatialFunction< bool, VDimension, TInput > Superclass; 00056 typedef SmartPointer< Self > Pointer; 00057 typedef SmartPointer< const Self > ConstPointer; 00058 00060 itkTypeMacro(InteriorExteriorSpatialFunction, SpatialFunction); 00061 00063 typedef typename Superclass::InputType InputType; 00064 00066 typedef typename Superclass::OutputType OutputType; 00067 00072 virtual OutputType Evaluate(const InputType & input) const = 0; 00073 00074 protected: 00075 InteriorExteriorSpatialFunction(); 00076 virtual ~InteriorExteriorSpatialFunction(); 00077 void PrintSelf(std::ostream & os, Indent indent) const; 00078 00079 private: 00080 InteriorExteriorSpatialFunction(const Self &); //purposely not implemented 00081 void operator=(const Self &); //purposely not implemented 00082 }; 00083 } // end namespace itk 00084 00085 // Define instantiation macro for this template. 00086 #define ITK_TEMPLATE_InteriorExteriorSpatialFunction(_, EXPORT, TypeX, TypeY) \ 00087 namespace itk \ 00088 { \ 00089 _( 2 ( class EXPORT InteriorExteriorSpatialFunction< ITK_TEMPLATE_2 TypeX > ) ) \ 00090 namespace Templates \ 00091 { \ 00092 typedef InteriorExteriorSpatialFunction< ITK_TEMPLATE_2 TypeX > \ 00093 InteriorExteriorSpatialFunction##TypeY; \ 00094 } \ 00095 } 00096 00097 #if ITK_TEMPLATE_EXPLICIT 00098 #include "Templates/itkInteriorExteriorSpatialFunction+-.h" 00099 #endif 00100 00101 #if ITK_TEMPLATE_TXX 00102 #include "itkInteriorExteriorSpatialFunction.hxx" 00103 #endif 00104 00105 #endif 00106