ParaView
vtkPVPLYWriter.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: ParaView
4  Module: vtkPVPLYWriter.h
5 
6  Copyright (c) Kitware, Inc.
7  All rights reserved.
8  See Copyright.txt or http://www.paraview.org/HTML/Copyright.html for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
23 #ifndef vtkPVPLYWriter_h
24 #define vtkPVPLYWriter_h
25 
26 #include "vtkNew.h" // needed for vtkNew
27 #include "vtkPVVTKExtensionsDefaultModule.h" //needed for exports
28 #include "vtkSmartPointer.h" // needed for vtkSmartPointer
29 #include "vtkWriter.h"
30 
31 class vtkPLYWriter;
32 class vtkScalarsToColors;
33 
34 class VTKPVVTKEXTENSIONSDEFAULT_EXPORT vtkPVPLYWriter : public vtkWriter
35 {
36 public:
37  static vtkPVPLYWriter* New();
38  vtkTypeMacro(vtkPVPLYWriter, vtkWriter);
39  void PrintSelf(ostream& os, vtkIndent indent);
40 
42 
45  vtkSetMacro(EnableColoring, bool);
46  vtkGetMacro(EnableColoring, bool);
48 
53  void SetDataByteOrder(int dbo);
54 
58  void SetFileType(int ftype);
59 
63  void SetFileName(const char* fname);
64 
69  void SetLookupTable(vtkScalarsToColors* lut);
70 
71 protected:
73  ~vtkPVPLYWriter();
74 
75  virtual int FillInputPortInformation(int port, vtkInformation* info);
76  virtual void WriteData();
77 
79  vtkNew<vtkPLYWriter> Writer;
80  vtkSmartPointer<vtkScalarsToColors> LookupTable;
81 
82 private:
83  vtkPVPLYWriter(const vtkPVPLYWriter&) VTK_DELETE_FUNCTION;
84  void operator=(const vtkPVPLYWriter&) VTK_DELETE_FUNCTION;
85 };
86 
87 #endif
provides a ParaView friendly API for vtkPLYWriter.
vtkNew< vtkPLYWriter > Writer
vtkSmartPointer< vtkScalarsToColors > LookupTable