ITK  4.1.0
Insight Segmentation and Registration Toolkit
itkDeformableSimplexMesh3DBalloonForceFilter.h
Go to the documentation of this file.
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 /*=========================================================================
00019  *
00020  *  Portions of this file are subject to the VTK Toolkit Version 3 copyright.
00021  *
00022  *  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
00023  *
00024  *  For complete copyright, license and disclaimer of warranty information
00025  *  please refer to the NOTICE file at the top of the ITK source tree.
00026  *
00027  *=========================================================================*/
00028 #ifndef __itkDeformableSimplexMesh3DBalloonForceFilter_h
00029 #define __itkDeformableSimplexMesh3DBalloonForceFilter_h
00030 
00031 #include "itkDeformableSimplexMesh3DFilter.h"
00032 #include "itkMesh.h"
00033 #include "itkConstNeighborhoodIterator.h"
00034 #include "itkCovariantVector.h"
00035 
00036 #include <set>
00037 
00038 namespace itk
00039 {
00051 template< class TInputMesh, class TOutputMesh >
00052 class ITK_EXPORT DeformableSimplexMesh3DBalloonForceFilter:public DeformableSimplexMesh3DFilter< TInputMesh,
00053                                                                                                  TOutputMesh >
00054 {
00055 public:
00057   typedef DeformableSimplexMesh3DBalloonForceFilter Self;
00058 
00060   typedef DeformableSimplexMesh3DFilter< TInputMesh, TOutputMesh > Superclass;
00061 
00063   typedef SmartPointer< Self >       Pointer;
00064   typedef SmartPointer< const Self > ConstPointer;
00065 
00067   itkNewMacro(Self);
00068 
00070   itkTypeMacro(DeformableSimplexMesh3DBalloonForceFilter, DeformableSimplexMesh3DFilter);
00071 
00073   typedef TInputMesh                                  InputMeshType;
00074   typedef TOutputMesh                                 OutputMeshType;
00075   typedef typename Superclass::PointType              PointType;
00076   typedef typename Superclass::GradientIndexType      GradientIndexType;
00077   typedef typename Superclass::GradientIndexValueType GradientIndexValueType;
00078 
00079   /* Mesh pointer definition. */
00080   typedef typename InputMeshType::Pointer  InputMeshPointer;
00081   typedef typename OutputMeshType::Pointer OutputMeshPointer;
00082 
00083   typedef typename InputMeshType::PixelType PixelType;
00084 
00085   typedef Image< PixelType, 3 >                        GradientIntensityImageType;
00086   typedef typename GradientIntensityImageType::Pointer GradientIntensityImagePointer;
00087 
00088   itkSetMacro(Kappa, double);
00089   itkGetConstMacro(Kappa, double);
00090 protected:
00091   DeformableSimplexMesh3DBalloonForceFilter();
00092   ~DeformableSimplexMesh3DBalloonForceFilter();
00093   DeformableSimplexMesh3DBalloonForceFilter(const Self &)
00094   {}
00095 
00096   void operator=(const Self &)
00097   {}
00098 
00099   void PrintSelf(std::ostream & os, Indent indent) const;
00100 
00104   virtual void ComputeExternalForce(SimplexMeshGeometry *data);
00105 
00111   double m_Kappa;
00112 }; // end of class
00113 } // end namespace itk
00114 
00115 #ifndef ITK_MANUAL_INSTANTIATION
00116 #include "itkDeformableSimplexMesh3DBalloonForceFilter.hxx"
00117 #endif
00118 
00119 #endif //__itkDeformableSimplexMesh3DBalloonForceFilter_H
00120