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

itkFrustumSpatialFunction.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Insight Segmentation & Registration Toolkit
00004   Module:    $RCSfile: itkFrustumSpatialFunction.h,v $
00005   Language:  C++
00006   Date:      $Date: 2007-01-30 23:39:52 $
00007   Version:   $Revision: 1.10 $
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 __itkFrustumSpatialFunction_h
00018 #define __itkFrustumSpatialFunction_h
00019 
00020 #include "itkInteriorExteriorSpatialFunction.h"
00021 
00022 namespace itk
00023 {
00024 
00036 template <unsigned int VImageDimension=3,typename TInput=Point<double,3> >
00037 class ITK_EXPORT FrustumSpatialFunction : 
00038             public InteriorExteriorSpatialFunction<VImageDimension,TInput>
00039 {
00040 public:
00041 
00043   typedef FrustumSpatialFunction<VImageDimension,TInput> Self;
00044   typedef InteriorExteriorSpatialFunction<VImageDimension,TInput> Superclass;
00045   typedef SmartPointer<Self>  Pointer;
00046   typedef SmartPointer<const Self>  ConstPointer;
00047 
00049   itkTypeMacro(FrustumSpatialFunction,InteriorExteriorSpatialFunction);
00050 
00052   itkNewMacro(Self);
00053 
00055   typedef typename Superclass::InputType InputType;
00056 
00058   typedef typename Superclass::OutputType OutputType;
00059 
00061   typedef enum{ 
00062     RotateInXZPlane=1,
00063     RotateInYZPlane
00064   } FrustumRotationPlaneType;
00065 
00067   OutputType Evaluate(const InputType& position) const;
00068 
00070   itkGetMacro( Apex, InputType);
00071   itkSetMacro( Apex, InputType);
00073 
00076   itkGetMacro( AngleZ, double);
00077   itkSetMacro( AngleZ, double);
00079 
00081   itkGetMacro( ApertureAngleX, double);
00082   itkSetMacro( ApertureAngleX, double);
00084 
00086   itkGetMacro( ApertureAngleY, double);
00087   itkSetMacro( ApertureAngleY, double);
00089 
00091   itkGetMacro( TopPlane, double);
00092   itkSetMacro( TopPlane, double);
00094 
00096   itkGetMacro( BottomPlane, double);
00097   itkSetMacro( BottomPlane, double);
00099 
00101   itkSetMacro( RotationPlane, FrustumRotationPlaneType );
00102 
00103 protected:
00104   FrustumSpatialFunction();
00105   virtual ~FrustumSpatialFunction();
00106   void PrintSelf(std::ostream& os, Indent indent) const;
00107 
00108 private:
00109   FrustumSpatialFunction(const Self&); //purposely not implemented
00110   void operator=(const Self&); //purposely not implemented
00111 
00113   InputType m_Apex;
00114 
00116   double m_AngleZ;
00117 
00119   double m_ApertureAngleX;
00120 
00122   double m_ApertureAngleY;
00123 
00125   double m_TopPlane;
00126 
00128   double m_BottomPlane;
00129 
00131   FrustumRotationPlaneType m_RotationPlane;
00132 
00133 };
00134 
00135 } // end namespace itk
00136 
00137 // Define instantiation macro for this template.
00138 #define ITK_TEMPLATE_FrustumSpatialFunction(_, EXPORT, x, y) namespace itk { \
00139   _(2(class EXPORT FrustumSpatialFunction< ITK_TEMPLATE_2 x >)) \
00140   namespace Templates { typedef FrustumSpatialFunction< ITK_TEMPLATE_2 x > \
00141                                                   FrustumSpatialFunction##y; } \
00142   }
00143 
00144 #if ITK_TEMPLATE_EXPLICIT
00145 # include "Templates/itkFrustumSpatialFunction+-.h"
00146 #endif
00147 
00148 #if ITK_TEMPLATE_TXX
00149 # include "itkFrustumSpatialFunction.txx"
00150 #endif
00151 
00152 #endif
00153 
00154 
00155 
00156 
00157 

Generated at Mon Apr 14 12:30:32 2008 for ITK by doxygen 1.5.1 written by Dimitri van Heesch, © 1997-2000