Main Page   Groups   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Concepts

itkEllipsoidInteriorExteriorSpatialFunction.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Insight Segmentation & Registration Toolkit
00004   Module:    $RCSfile: itkEllipsoidInteriorExteriorSpatialFunction.h,v $
00005   Language:  C++
00006   Date:      $Date: 2003/09/10 14:29:06 $
00007   Version:   $Revision: 1.16 $
00008 
00009   Copyright (c) Insight Software Consortium. All rights reserved.
00010   See ITKCopyright.txt or http://www.itk.org/HTML/Copyright.htm for details.
00011 
00012      This software is distributed WITHOUT ANY WARRANTY; without even 
00013      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 
00014      PURPOSE.  See the above copyright notices for more information.
00015 
00016 =========================================================================*/
00017 #ifndef __itkEllipsoidInteriorExteriorSpatialFunction_h
00018 #define __itkEllipsoidInteriorExteriorSpatialFunction_h
00019 
00020 #include "itkInteriorExteriorSpatialFunction.h"
00021 #include "vnl/vnl_matrix_fixed.h"
00022 
00023 namespace itk
00024 {
00025 
00037 template <unsigned int VDimension = 3,
00038           typename TInput = Point<double, VDimension> >
00039 class ITK_EXPORT EllipsoidInteriorExteriorSpatialFunction
00040 : public InteriorExteriorSpatialFunction<VDimension, TInput>
00041 {
00042 public:
00044   typedef EllipsoidInteriorExteriorSpatialFunction Self;
00045   typedef InteriorExteriorSpatialFunction<VDimension, TInput> Superclass;
00046   typedef SmartPointer<Self>  Pointer;
00047   typedef SmartPointer<const Self>  ConstPointer; 
00048       
00050   itkTypeMacro(EllipsoidInteriorExteriorSpatialFunction,InteriorExteriorSpatialFunction);
00051 
00053   itkNewMacro(Self);
00054   
00056   typedef typename Superclass::InputType InputType;
00057 
00059   typedef typename Superclass::OutputType OutputType;
00060 
00062   typedef vnl_matrix_fixed<double, VDimension, VDimension> OrientationType;
00063    
00065   itkGetMacro(Center, InputType);
00066   itkSetMacro(Center, InputType);
00067   
00069   itkGetMacro(Axes, InputType);
00070   itkSetMacro(Axes, InputType);
00071   
00074   void SetOrientations(const OrientationType &);
00075 
00077   OutputType Evaluate(const InputType& position) const;
00078      
00079 protected:
00080   EllipsoidInteriorExteriorSpatialFunction();
00081   virtual ~EllipsoidInteriorExteriorSpatialFunction();
00082 
00083   void PrintSelf(std::ostream& os, Indent indent) const;
00084 
00085 private:
00086   EllipsoidInteriorExteriorSpatialFunction(const Self&); //purposely not implemented
00087   void operator=(const Self&); //purposely not implemented
00088 
00090   InputType m_Center;
00091 
00093   InputType m_Axes;
00094 
00096   double ** m_Orientations;
00097 };
00098 
00099 } // end namespace itk
00100 
00101 #ifndef ITK_MANUAL_INSTANTIATION
00102 #include "itkEllipsoidInteriorExteriorSpatialFunction.txx"
00103 #endif
00104 
00105 #endif

Generated at Wed May 24 23:04:31 2006 for ITK by doxygen 1.3.5 written by Dimitri van Heesch, © 1997-2000