OSDN Git Service

FIRST REPOSITORY
[eos/hostdependOTHERS.git] / I386LINUX / util / I386LINUX / include / vtk / vtkPolyDataWriter.h
1 /*=========================================================================
2
3   Program:   Visualization Toolkit
4   Module:    $RCSfile: vtkPolyDataWriter.h,v $
5   Language:  C++
6   Date:      $Date: 2002/05/31 23:12:41 $
7   Version:   $Revision: 1.23 $
8
9   Copyright (c) 1993-2002 Ken Martin, Will Schroeder, Bill Lorensen 
10   All rights reserved.
11   See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
12
13      This software is distributed WITHOUT ANY WARRANTY; without even 
14      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 
15      PURPOSE.  See the above copyright notice for more information.
16
17 =========================================================================*/
18 // .NAME vtkPolyDataWriter - write vtk polygonal data
19 // .SECTION Description
20 // vtkPolyDataWriter is a source object that writes ASCII or binary 
21 // polygonal data files in vtk format. See text for format details.
22 // .SECTION Caveats
23 // Binary files written on one system may not be readable on other systems.
24
25 #ifndef __vtkPolyDataWriter_h
26 #define __vtkPolyDataWriter_h
27
28 #include "vtkDataWriter.h"
29
30 class vtkPolyData;
31
32 class VTK_IO_EXPORT vtkPolyDataWriter : public vtkDataWriter
33 {
34 public:
35   static vtkPolyDataWriter *New();
36   vtkTypeRevisionMacro(vtkPolyDataWriter,vtkDataWriter);
37   void PrintSelf(ostream& os, vtkIndent indent);
38
39   // Description:
40   // Set / get the input data or filter.
41   void SetInput(vtkPolyData *input);
42   vtkPolyData *GetInput();
43                                
44 protected:
45   vtkPolyDataWriter() {};
46   ~vtkPolyDataWriter() {};
47
48   void WriteData();
49
50 private:
51   vtkPolyDataWriter(const vtkPolyDataWriter&);  // Not implemented.
52   void operator=(const vtkPolyDataWriter&);  // Not implemented.
53 };
54
55 #endif
56
57