37 #ifndef Foam_gltf_sceneWriter_H 38 #define Foam_gltf_sceneWriter_H ~sceneWriter()
Destructor - calls close()
const scene & getScene() const
Const access to the scene. Error if valid() is not true!
A class for handling file names.
void close()
Write scene and close file.
Wrapper for glTF scene for file output.
Main class to assemble glTF components into a scene.
void operator=(const sceneWriter &)=delete
No copy assignment.
const fileName & path() const
The json file name. Empty with !valid()
sceneWriter()=default
Default construct.
Pointer management similar to std::unique_ptr, with some additional methods and type checking...
bool valid() const noexcept
True if output file and scene exist.
void open(const fileName &outputFile)
Flush, output and open a new file for output.