Wrapper for glTF scene for file output. More...
#include <foamGltfSceneWriter.H>
Public Member Functions | |
| sceneWriter (const sceneWriter &)=delete | |
| No copy construct. | |
| void | operator= (const sceneWriter &)=delete |
| No copy assignment. | |
| sceneWriter ()=default | |
| Default construct. | |
| sceneWriter (const fileName &outputFile) | |
| Construct and open with given file name. | |
| ~sceneWriter () | |
| Destructor - calls close(). | |
| bool | good () const noexcept |
| True if output file and scene exist. | |
| const fileName & | path () const |
| The json file name. Empty with !good(). | |
| const scene & | getScene () const |
| Const access to the scene. Error if good() is not true! | |
| scene & | getScene () |
| Non-const access to the scene. Error if good() is not true! | |
| void | open (const fileName &outputFile) |
| Flush, output and open a new file for output. | |
| void | close () |
| Write scene and close file. | |
| bool | valid () const noexcept |
| Same as good(). | |
Wrapper for glTF scene for file output.
Definition at line 54 of file foamGltfSceneWriter.H.
|
delete |
No copy construct.
References sceneWriter().
Referenced by operator=(), and sceneWriter().


|
default |
Default construct.
References close(), getScene(), Foam::noexcept, open(), and path().

|
explicit |
Construct and open with given file name.
Definition at line 27 of file foamGltfSceneWriter.C.
References open().

| ~sceneWriter | ( | ) |
Destructor - calls close().
Definition at line 38 of file foamGltfSceneWriter.C.
References close().

|
delete |
|
noexcept |
True if output file and scene exist.
Definition at line 46 of file foamGltfSceneWriter.C.
References Foam::noexcept.
Referenced by valid().

| const Foam::fileName & path | ( | ) | const |
The json file name. Empty with !good().
Definition at line 52 of file foamGltfSceneWriter.C.
References fileName::null.
Referenced by sceneWriter().

| const Foam::glTF::scene & getScene | ( | ) | const |
Const access to the scene. Error if good() is not true!
Definition at line 58 of file foamGltfSceneWriter.C.
Referenced by sceneWriter().

| Foam::glTF::scene & getScene | ( | ) |
Non-const access to the scene. Error if good() is not true!
Definition at line 64 of file foamGltfSceneWriter.C.
| void open | ( | const fileName & | outputFile | ) |
Flush, output and open a new file for output.
Definition at line 70 of file foamGltfSceneWriter.C.
References close(), Foam::isDir(), Foam::mkDir(), fileName::path(), and fileName::replace_ext().
Referenced by sceneWriter(), and sceneWriter().


| void close | ( | ) |
Write scene and close file.
Definition at line 88 of file foamGltfSceneWriter.C.
Referenced by open(), sceneWriter(), and ~sceneWriter().

|
inlinenoexcept |
Same as good().
Definition at line 139 of file foamGltfSceneWriter.H.
References good(), Foam::noexcept, and valid().
Referenced by valid().

