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

itkQuadEdgeMeshScalarDataVTKPolyDataWriter.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Insight Segmentation & Registration Toolkit
00004   Module:    $RCSfile: itkQuadEdgeMeshScalarDataVTKPolyDataWriter.h,v $
00005   Language:  C++
00006   Date:      $Date: 2009-01-02 18:43:05 $
00007   Version:   $Revision: 1.4 $
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 
00018 #ifndef __itkQuadEdgeMeshScalarDataVTKPolyDataWriter_h
00019 #define __itkQuadEdgeMeshScalarDataVTKPolyDataWriter_h
00020 
00021 #include "itkVTKPolyDataWriter.h"
00022 #include <fstream>
00023 
00024 namespace itk
00025 {
00035 template< class TMesh >
00036 class QuadEdgeMeshScalarDataVTKPolyDataWriter : public VTKPolyDataWriter< TMesh >
00037 {
00038 public:
00039   typedef QuadEdgeMeshScalarDataVTKPolyDataWriter         Self;
00040   typedef SmartPointer< Self >                            Pointer;
00041   typedef SmartPointer< const Self >                      ConstPointer;
00042   typedef VTKPolyDataWriter< TMesh >                      Superclass;
00043 
00045   itkTypeMacro( QuadEdgeMeshScalarDataVTKPolyDataWriter, VTKPolyDataWriter );
00046 
00048   itkNewMacro( Self );
00049 
00050   typedef TMesh                                           MeshType;
00051   typedef typename MeshType::Pointer                      MeshPointer;
00052   typedef typename MeshType::CellType                     CellType;
00053 
00054   typedef typename MeshType::PointsContainerPointer       PointsContainerPointer;
00055   typedef typename MeshType::PointsContainerIterator      PointsContainerIterator;
00056 
00057   typedef typename MeshType::PointDataContainerPointer          PointDataContainerPointer;
00058   typedef typename MeshType::PointDataContainerConstPointer     PointDataContainerConstPointer;
00059   typedef typename MeshType::PointDataContainerIterator         PointDataContainerIterator;
00060 
00061   typedef typename MeshType::CellsContainerPointer        CellsContainerPointer;
00062   typedef typename MeshType::CellsContainerIterator       CellsContainerIterator;
00063 
00064   typedef typename MeshType::CellDataContainerPointer     CellDataContainerPointer;
00065   typedef typename MeshType::CellDataContainerIterator    CellDataContainerIterator;
00066   
00068   itkSetStringMacro(CellDataName);
00069   itkGetStringMacro(CellDataName);
00071 
00073   itkSetStringMacro(PointDataName);
00074   itkGetStringMacro(PointDataName);
00076 
00077 protected:
00078   QuadEdgeMeshScalarDataVTKPolyDataWriter();
00079   ~QuadEdgeMeshScalarDataVTKPolyDataWriter();
00080 
00081   std::string     m_CellDataName;
00082   std::string     m_PointDataName;
00083 
00084   void GenerateData();
00085   void WriteCellData();
00086   void WritePointData();
00087 
00088 private:
00089   QuadEdgeMeshScalarDataVTKPolyDataWriter( const Self& );
00090   void operator = ( const Self& );
00091   
00092 };
00093 
00094 }
00095 
00096 #ifndef ITK_MANUAL_INSTANTIATION
00097 #include "itkQuadEdgeMeshScalarDataVTKPolyDataWriter.txx"
00098 #endif
00099 
00100 #endif
00101 

Generated at Sat Feb 28 13:21:35 2009 for ITK by doxygen 1.5.6 written by Dimitri van Heesch, © 1997-2000