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 "vtkPVVTKExtensionsIOGeneralModule.h" //needed for exports
28 #include "vtkSmartPointer.h" // needed for vtkSmartPointer
29 #include "vtkWriter.h"
30 
31 class vtkPLYWriter;
32 class vtkScalarsToColors;
33 
35 {
36 public:
37  static vtkPVPLYWriter* New();
38  vtkTypeMacro(vtkPVPLYWriter, vtkWriter);
39  void PrintSelf(ostream& os, vtkIndent indent) override;
40 
42 
45  vtkSetMacro(EnableColoring, bool);
46  vtkGetMacro(EnableColoring, bool);
48 
50 
53  vtkSetMacro(EnableAlpha, bool);
54  vtkGetMacro(EnableAlpha, bool);
56 
61  void SetDataByteOrder(int dbo);
62 
66  void SetFileType(int ftype);
67 
71  void SetFileName(const char* fname);
72 
77  void SetLookupTable(vtkScalarsToColors* lut);
78 
79 protected:
81  ~vtkPVPLYWriter() override;
82 
83  int FillInputPortInformation(int port, vtkInformation* info) override;
84  void WriteData() override;
85 
90 
91 private:
92  vtkPVPLYWriter(const vtkPVPLYWriter&) = delete;
93  void operator=(const vtkPVPLYWriter&) = delete;
94 };
95 
96 #endif
provides a ParaView friendly API for vtkPLYWriter.
#define VTKPVVTKEXTENSIONSIOGENERAL_EXPORT
virtual int FillInputPortInformation(int port, vtkInformation *info)
vtkNew< vtkPLYWriter > Writer
static vtkAlgorithm * New()
virtual void WriteData()=0
vtkSmartPointer< vtkScalarsToColors > LookupTable
void operator=(const vtkObjectBase &)
void PrintSelf(ostream &os, vtkIndent indent)