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: 2002/02/07 22:45:57 $
00007   Version:   $Revision: 1.13 $
00008 
00009   Copyright (c) 2002 Insight 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 
00022 namespace itk
00023 {
00024 
00036 template <unsigned int VDimension = 3,
00037           typename TInput = Point<double, VDimension> >
00038 class ITK_EXPORT EllipsoidInteriorExteriorSpatialFunction
00039 : public InteriorExteriorSpatialFunction<VDimension, TInput>
00040 {
00041 public:
00043   typedef EllipsoidInteriorExteriorSpatialFunction Self;
00044   typedef InteriorExteriorSpatialFunction<VDimension, TInput> Superclass;
00045   typedef SmartPointer<Self>  Pointer;
00046   typedef SmartPointer<const Self>  ConstPointer; 
00047       
00049   itkTypeMacro(EllipsoidInteriorExteriorSpatialFunction,InteriorExteriorSpatialFunction);
00050 
00052   itkNewMacro(Self);
00053   
00055   typedef typename Superclass::InputType InputType;
00056 
00058   typedef typename Superclass::OutputType OutputType;
00059    
00061   itkGetMacro(Center, InputType);
00062   itkSetMacro(Center, InputType);
00063   
00065   itkGetMacro(Axes, InputType);
00066   itkSetMacro(Axes, InputType);
00067   
00070   void SetOrientations(vnl_matrix<double>);
00071 
00073   OutputType Evaluate(const InputType& position) const;
00074      
00075 protected:
00076   EllipsoidInteriorExteriorSpatialFunction();
00077   virtual ~EllipsoidInteriorExteriorSpatialFunction();
00078 
00079   void PrintSelf(std::ostream& os, Indent indent) const;
00080 
00081 private:
00082   EllipsoidInteriorExteriorSpatialFunction(const Self&); //purposely not implemented
00083   void operator=(const Self&); //purposely not implemented
00084 
00086   InputType m_Center;
00087 
00089   InputType m_Axes;
00090 
00092   double ** m_Orientations;
00093 };
00094 
00095 } // end namespace itk
00096 
00097 #ifndef ITK_MANUAL_INSTANTIATION
00098 #include "itkEllipsoidInteriorExteriorSpatialFunction.txx"
00099 #endif
00100 
00101 #endif

Generated at Fri May 21 01:14:40 2004 for ITK by doxygen 1.2.15 written by Dimitri van Heesch, © 1997-2000