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

itkMeshSource.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Insight Segmentation & Registration Toolkit
00004   Module:    $RCSfile: itkMeshSource.h,v $
00005   Language:  C++
00006   Date:      $Date: 2005/12/03 22:15:26 $
00007   Version:   $Revision: 1.24.2.1 $
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   Portions of this code are covered under the VTK copyright.
00013   See VTKCopyright.txt or http://www.kitware.com/VTKCopyright.htm for details.
00014 
00015      This software is distributed WITHOUT ANY WARRANTY; without even 
00016      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 
00017      PURPOSE.  See the above copyright notices for more information.
00018 
00019 =========================================================================*/
00020 #ifndef __itkMeshSource_h
00021 #define __itkMeshSource_h
00022 
00023 #if defined(_MSC_VER)
00024 #pragma warning ( disable : 4786 )
00025 #endif
00026 #include "itkProcessObject.h"
00027 
00028 namespace itk
00029 {
00030 
00042 template <class TOutputMesh>
00043 class ITK_EXPORT MeshSource : public ProcessObject
00044 {
00045 public:
00047   typedef MeshSource         Self;
00048   typedef ProcessObject  Superclass;
00049   typedef SmartPointer<Self>  Pointer;
00050   typedef SmartPointer<const Self>  ConstPointer;
00051   
00053   itkNewMacro(Self);  
00054 
00056   itkTypeMacro(MeshSource,ProcessObject);
00057 
00059   typedef DataObject::Pointer DataObjectPointer;
00060   typedef TOutputMesh OutputMeshType;
00061   typedef typename OutputMeshType::Pointer OutputMeshPointer;
00062   
00064   OutputMeshType * GetOutput(void);
00065   OutputMeshType * GetOutput(unsigned int idx);
00066   
00070   void SetOutput(TOutputMesh *output);
00071 
00106   virtual void GraftOutput(DataObject *output);
00107   virtual void GraftNthOutput(unsigned int idx, DataObject *output);
00108 
00122   virtual DataObjectPointer MakeOutput(unsigned int idx);
00123 
00124 protected:
00125   MeshSource();
00126   virtual ~MeshSource() {}
00127   void PrintSelf(std::ostream& os, Indent indent) const;
00128   
00132   void GenerateInputRequestedRegion();
00133   
00134 private:
00135   MeshSource(const Self&); //purposely not implemented
00136   void operator=(const Self&); //purposely not implemented
00137 
00140   int m_GenerateDataRegion;
00141   int m_GenerateDataNumberOfRegions;
00142   };
00143 
00144 } // end namespace itk
00145 
00146 #ifndef ITK_MANUAL_INSTANTIATION
00147 #include "itkMeshSource.txx"
00148 #endif
00149 
00150 #endif
00151   

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