vtkPVPLYWriter.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Kitware Inc.
2 // SPDX-License-Identifier: BSD-3-Clause
11 #ifndef vtkPVPLYWriter_h
12 #define vtkPVPLYWriter_h
13 
14 #include "vtkNew.h" // needed for vtkNew
15 #include "vtkPVVTKExtensionsIOGeneralModule.h" //needed for exports
16 #include "vtkSmartPointer.h" // needed for vtkSmartPointer
17 #include "vtkWriter.h"
18 
19 class vtkPLYWriter;
20 class vtkScalarsToColors;
21 
23 {
24 public:
25  static vtkPVPLYWriter* New();
26  vtkTypeMacro(vtkPVPLYWriter, vtkWriter);
27  void PrintSelf(ostream& os, vtkIndent indent) override;
28 
30 
33  vtkSetMacro(EnableColoring, bool);
34  vtkGetMacro(EnableColoring, bool);
36 
38 
41  vtkSetMacro(EnableAlpha, bool);
42  vtkGetMacro(EnableAlpha, bool);
44 
49  void SetDataByteOrder(int dbo);
50 
54  void SetFileType(int ftype);
55 
59  void SetFileName(const char* fname);
60 
65  void SetLookupTable(vtkScalarsToColors* lut);
66 
67 protected:
69  ~vtkPVPLYWriter() override;
70 
71  int FillInputPortInformation(int port, vtkInformation* info) override;
72  void WriteData() override;
73 
78 
79 private:
80  vtkPVPLYWriter(const vtkPVPLYWriter&) = delete;
81  void operator=(const vtkPVPLYWriter&) = delete;
82 };
83 
84 #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)