VTK  9.7.1
vtkUSDExporter.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2 // SPDX-License-Identifier: BSD-3-Clause
24 #ifndef vtkUSDExporter_h
25 #define vtkUSDExporter_h
26 
27 #include "vtkExporter.h"
28 #include "vtkIOUSDModule.h" // For export macro
29 
30 #include <string> // for std::string
31 
32 VTK_ABI_NAMESPACE_BEGIN
33 class VTKIOUSD_EXPORT vtkUSDExporter : public vtkExporter
34 {
35 public:
36  static vtkUSDExporter* New();
37  vtkTypeMacro(vtkUSDExporter, vtkExporter);
38  void PrintSelf(ostream& os, vtkIndent indent) override;
39 
41 
44  vtkSetFilePathMacro(FileName);
45  vtkGetFilePathMacro(FileName);
47 
48 protected:
50  ~vtkUSDExporter() override;
51 
52 private:
53  vtkUSDExporter(const vtkUSDExporter&) = delete;
54  void operator=(const vtkUSDExporter&) = delete;
55 
56  void WriteData() override;
57 
61  char* FileName;
62 };
63 
64 VTK_ABI_NAMESPACE_END
65 #endif
abstract class to write a scene to a file
Definition: vtkExporter.h:38
virtual void WriteData()=0
a simple class to control print indentation
Definition: vtkIndent.h:28
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
export a scene into USD format.
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...