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-06-21 16:25:08 $
00007   Version:   $Revision: 1.5 $
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::CellsContainer                 CellsContainer;
00062   typedef typename CellsContainer::Pointer                  CellsContainerPointer;
00063   typedef typename CellsContainer::ConstPointer             CellsContainerConstPointer;
00064   typedef typename CellsContainer::Iterator                 CellsContainerIterator;
00065   typedef typename CellsContainer::ConstIterator            CellsContainerConstIterator;
00066 
00067   typedef typename MeshType::CellDataContainer              CellDataContainer;
00068   typedef typename CellDataContainer::Iterator              CellDataContainerIterator;
00069   typedef typename CellDataContainer::ConstIterator         CellDataContainerConstIterator;
00070   typedef typename CellDataContainer::Pointer               CellDataContainerPointer;
00071   typedef typename CellDataContainer::ConstPointer          CellDataContainerConstPointer;
00072   
00074   itkSetStringMacro(CellDataName);
00075   itkGetStringMacro(CellDataName);
00077 
00079   itkSetStringMacro(PointDataName);
00080   itkGetStringMacro(PointDataName);
00082 
00083 protected:
00084   QuadEdgeMeshScalarDataVTKPolyDataWriter();
00085   ~QuadEdgeMeshScalarDataVTKPolyDataWriter();
00086 
00087   std::string     m_CellDataName;
00088   std::string     m_PointDataName;
00089 
00090   void GenerateData();
00091   void WriteCellData();
00092   void WritePointData();
00093 
00094 private:
00095   QuadEdgeMeshScalarDataVTKPolyDataWriter( const Self& );
00096   void operator = ( const Self& );
00097   
00098 };
00099 
00100 }
00101 
00102 #ifndef ITK_MANUAL_INSTANTIATION
00103 #include "itkQuadEdgeMeshScalarDataVTKPolyDataWriter.txx"
00104 #endif
00105 
00106 #endif
00107 

Generated at Tue Sep 15 04:29:29 2009 for ITK by doxygen 1.5.8 written by Dimitri van Heesch, © 1997-2000