VTK  9.1.0
vtkOBJWriter.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkOBJWriter.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm 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 =========================================================================*/
30 #ifndef vtkOBJWriter_h
31 #define vtkOBJWriter_h
32 
33 #include "vtkIOGeometryModule.h" // For export macro
34 #include "vtkWriter.h"
35 
36 class vtkDataSet;
37 class vtkImageData;
38 class vtkPolyData;
39 
40 class VTKIOGEOMETRY_EXPORT vtkOBJWriter : public vtkWriter
41 {
42 public:
43  static vtkOBJWriter* New();
44  vtkTypeMacro(vtkOBJWriter, vtkWriter);
45  void PrintSelf(ostream& os, vtkIndent indent) override;
46 
48 
55 
57 
62  vtkSetFilePathMacro(TextureFileName);
63  vtkGetFilePathMacro(TextureFileName);
65 
67 
73 
74 protected:
76  ~vtkOBJWriter() override;
77 
78  void WriteData() override;
80 
81  char* FileName;
83 
84 private:
85  vtkOBJWriter(const vtkOBJWriter&) = delete;
86  void operator=(const vtkOBJWriter&) = delete;
87 };
88 
89 #endif
vtkOBJWriter::TextureFileName
char * TextureFileName
Definition: vtkOBJWriter.h:82
vtkOBJWriter::~vtkOBJWriter
~vtkOBJWriter() override
vtkOBJWriter
write wavefront obj file
Definition: vtkOBJWriter.h:41
vtkOBJWriter::vtkSetFilePathMacro
vtkSetFilePathMacro(TextureFileName)
Get/Set the path to an existing texture file for the OBJ.
vtkX3D::port
@ port
Definition: vtkX3D.h:453
vtkOBJWriter::vtkOBJWriter
vtkOBJWriter()
vtkOBJWriter::GetInput
vtkDataSet * GetInput(int port)
Get the inputs to this writer.
vtkImageData
topologically and geometrically regular array of data
Definition: vtkImageData.h:157
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:113
vtkWriter
abstract class to write data to file(s)
Definition: vtkWriter.h:46
vtkOBJWriter::vtkGetFilePathMacro
vtkGetFilePathMacro(TextureFileName)
Get/Set the path to an existing texture file for the OBJ.
vtkOBJWriter::New
static vtkOBJWriter * New()
vtkOBJWriter::WriteData
void WriteData() override
vtkOBJWriter::vtkSetFilePathMacro
vtkSetFilePathMacro(FileName)
Get/Set the file name of the OBJ file.
vtkOBJWriter::GetInputGeometry
vtkPolyData * GetInputGeometry()
Get the inputs to this writer.
vtkOBJWriter::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkOBJWriter::FileName
char * FileName
Definition: vtkOBJWriter.h:81
vtkDataSet
abstract class to specify dataset behavior
Definition: vtkDataSet.h:166
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:183
vtkX3D::info
@ info
Definition: vtkX3D.h:382
vtkWriter.h
vtkPolyData
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:195
vtkOBJWriter::GetInputTexture
vtkImageData * GetInputTexture()
Get the inputs to this writer.
vtkOBJWriter::FillInputPortInformation
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
vtkOBJWriter::vtkGetFilePathMacro
vtkGetFilePathMacro(FileName)
Get/Set the path to an existing texture file for the OBJ.