Render data.
More...
#include <vc/core/types/Render.hpp>
|
| Render (filesystem::path path) |
| Load a Render from file.
|
|
| Render (filesystem::path path, Identifier uuid, std::string name) |
| Make a new Render in a directory.
|
|
auto | graph () const -> std::shared_ptr< smgl::Graph > |
| Get the stored render graph. More...
|
|
| DiskBasedObjectBaseClass ()=delete |
|
Identifier | id () const |
| Get the "unique" ID for the object.
|
|
auto | path () const -> filesystem::path |
| Get the path to the object.
|
|
auto | name () const -> std::string |
| Get the human-readable name for the object.
|
|
void | setName (std::string n) |
| Set the human-readable name of the object.
|
|
template<typename T > |
void | setMetadataEntry (const std::string &key, T value) |
| Set a metadata entry. More...
|
|
template<typename T > |
auto | getMetadataEntry (const std::string &key) const -> std::optional< T > |
| Get a metadata entry. More...
|
|
void | saveMetadata () const |
| Update metadata on disk.
|
|
|
std::shared_ptr< smgl::Graph > | graph_ |
|
Render data.
- Author
- Seth Parker
Provides access to Render information stored on disk, usually inside of a VolumePkg.
Definition at line 26 of file Render.hpp.
◆ Pointer
Shared pointer type
Definition at line 30 of file Render.hpp.
◆ graph()
auto volcart::Render::graph |
( |
| ) |
const -> std::shared_ptr< smgl::Graph > |
Get the stored render graph.
If not already loaded, this function loads and returns the computational graph for this render. All nodes used in the graph should be registered with the smgl serialization system before calling this function. Nodes provided by Volume Cartographer can be registered with RegisterNodes().
- Exceptions
-
smgl::unknown_identifier | If an unregistered node is encountered |
◆ New() [1/2]
static auto volcart::Render::New |
( |
filesystem::path |
path | ) |
-> Pointer |
|
static |
◆ New() [2/2]
static auto volcart::Render::New |
( |
filesystem::path |
path, |
|
|
Identifier |
uuid, |
|
|
std::string |
name |
|
) |
| -> Pointer |
|
static |
◆ graph_
std::shared_ptr<smgl::Graph> volcart::Render::graph_ |
|
mutableprivate |
The documentation for this class was generated from the following file: