ITK  4.1.0
Insight Segmentation and Registration Toolkit
itkPhysicalPointImageSource.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 #ifndef __itkPhysicalPointImageSource_h
00020 #define __itkPhysicalPointImageSource_h
00021 
00022 #include "itkGenerateImageSource.h"
00023 
00024 namespace itk
00025 {
00026 
00037 template< typename TOutputImage >
00038 class PhysicalPointImageSource
00039   : public GenerateImageSource< TOutputImage >
00040 {
00041 public:
00042   typedef PhysicalPointImageSource Self;
00043   typedef GenerateImageSource< TOutputImage > Superclass;
00044   typedef SmartPointer< Self > Pointer;
00045   typedef SmartPointer< const Self> ConstPointer;
00046 
00048   typedef TOutputImage                            OutputImageType;
00049   typedef typename OutputImageType::PixelType     PixelType;
00050   typedef typename OutputImageType::RegionType    RegionType;
00051   typedef typename OutputImageType::SpacingType   SpacingType;
00052   typedef typename OutputImageType::PointType     PointType;
00053   typedef typename OutputImageType::DirectionType DirectionType;
00054 
00055 
00056   typedef typename RegionType::SizeType SizeType;
00057 
00059   itkTypeMacro(PhysicalPointmageSource, GenerateImageSource);
00060 
00062   itkNewMacro(Self);
00063 
00064 protected:
00065   PhysicalPointImageSource( ) {};
00066   // virtual ~PhysicalPointImageSource() default implementation ok
00067 
00068   virtual void GenerateOutputInformation();
00069 
00070   virtual void ThreadedGenerateData (const RegionType &outputRegionForThread, ThreadIdType threadId);
00071 
00072 private:
00073   PhysicalPointImageSource( const PhysicalPointImageSource &); //purposely not implemented
00074   void operator=( const PhysicalPointImageSource &);  //purposely not implemented
00075 };
00076 
00077 }
00078 
00079 
00080 #ifndef ITK_MANUAL_INSTANTIATION
00081 #include "itkPhysicalPointImageSource.hxx"
00082 #endif
00083 
00084 
00085 #endif //__itkPhysicalPointImageSource_h
00086