Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

Utilities/Xdmf/vtk/vtkXdmfDataSetWriter.h

Go to the documentation of this file.
00001 /*******************************************************************/
00002 /*                               XDMF                              */
00003 /*                   eXtensible Data Model and Format              */
00004 /*                                                                 */
00005 /*  Id : $Id: vtkXdmfDataSetWriter.h,v 1.3 2003/12/19 19:55:23 andy Exp $  */
00006 /*  Date : $Date: 2003/12/19 19:55:23 $ */
00007 /*  Version : $Revision: 1.3 $ */
00008 /*                                                                 */
00009 /*  Author:                                                        */
00010 /*     Jerry A. Clarke                                             */
00011 /*     clarke@arl.army.mil                                         */
00012 /*     US Army Research Laboratory                                 */
00013 /*     Aberdeen Proving Ground, MD                                 */
00014 /*                                                                 */
00015 /*     Copyright @ 2002 US Army Research Laboratory                */
00016 /*     All Rights Reserved                                         */
00017 /*     See Copyright.txt or http://www.arl.hpc.mil/ice for details */
00018 /*                                                                 */
00019 /*     This software is distributed WITHOUT ANY WARRANTY; without  */
00020 /*     even the implied warranty of MERCHANTABILITY or FITNESS     */
00021 /*     FOR A PARTICULAR PURPOSE.  See the above copyright notice   */
00022 /*     for more information.                                       */
00023 /*                                                                 */
00024 /*******************************************************************/
00025 #ifndef _vtkXdmfDataSetWriter_h
00026 #define _vtkXdmfDataSetWriter_h
00027 
00028 #include <vtkUnstructuredGrid.h>
00029 #include <vtkFloatArray.h>
00030 
00031 class vtkXdmfDataSetWriterInternals;
00032 
00033 class VTK_EXPORT vtkXdmfDataSetWriter : public vtkUnstructuredGrid
00034 {
00035 public:
00036   vtkDataSet  *Input;
00037   char    HeavyDataSetName[256];
00038   int    FastWrite;
00039   int    AllLight;
00040   vtkXdmfDataSetWriterInternals *Internals;
00041   
00042 
00043   vtkXdmfDataSetWriter();
00044 
00045   static vtkXdmfDataSetWriter *New();
00046   vtkTypeMacro(vtkXdmfDataSetWriter,vtkObject);
00047   void ResetXML( void );
00048   char *GetXML( void );
00049   void SetFastWrite( int OnOff ) {
00050   this->FastWrite = OnOff;
00051   }
00052   int GetFastWrite( void ) {
00053   return( this->FastWrite );
00054   }
00055   void SetAllLight( int OnOff ) {
00056   this->AllLight = OnOff;
00057   }
00058   int GetAllLight( void ) {
00059   return( this->AllLight );
00060   }
00061   void WriteAttributes( void );
00062   void SetInput(vtkDataSet *input) {
00063     this->Input = input;
00064     }
00065   void SetHeavyDataSetName( char *hd) {
00066     if( hd ) strcpy( this->HeavyDataSetName, hd );
00067     this->AllLight = 0;
00068     }
00069   void StartTopology( int Type, vtkCellArray *Cells);
00070   int WriteScalar( vtkDataArray *Scalars, char *Name, char *Center );
00071   int WriteVector( vtkDataArray *Vectors, char *Name, char *Center );
00072   virtual int WriteHead( void );
00073   virtual int WriteTail( void );
00074   virtual int WriteGrid( void );
00075   virtual int WriteCellArray( vtkCellArray *Cells );
00076   virtual int WritePoints( vtkPoints *Points );
00077 };
00078 #endif /* _vtkXdmfDataSetWriter_h */

Generated on Tue May 30 12:31:49 2006 for ParaView by doxygen 1.3.5