VTK  9.7.20260915
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
23
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
32VTK_ABI_NAMESPACE_BEGIN
33
34class VTKIOUSD_EXPORT vtkUSDExporter : public vtkExporter
35{
36public:
39 void PrintSelf(ostream& os, vtkIndent indent) override;
40
42
48
56 void Start();
57
59
63 vtkSetMacro(TimeValue, double);
64 vtkGetMacro(TimeValue, double);
66
71 void Finish();
72
73protected:
75 ~vtkUSDExporter() override;
76
77private:
78 vtkUSDExporter(const vtkUSDExporter&) = delete;
79 void operator=(const vtkUSDExporter&) = delete;
80
81 void WriteData() override;
82
86 char* FileName;
87
88 double TimeValue = 0.0;
89 bool Started = false;
90
91 class vtkUSDExporterInternals;
92 vtkUSDExporterInternals* Internal;
93};
94
95VTK_ABI_NAMESPACE_END
96#endif
virtual void WriteData()=0
a simple class to control print indentation
Definition vtkIndent.h:108
void Start()
Begin a multi-frame export.
vtkGetFilePathMacro(FileName)
Specify the name of the file to write.
void Finish()
Save and close the stage accumulated since Start().
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkSetFilePathMacro(FileName)
Specify the name of the file to write.
~vtkUSDExporter() override
static vtkUSDExporter * New()