Class uipc::core::SceneIO
ClassList > uipc > core > SceneIO
Public Functions
Type | Name |
---|---|
SceneIO (Scene & scene) |
|
void | commit (const SceneSnapshot & reference, std::string_view filename) Commit the scene's update to a file. |
Json | commit_to_json (const SceneSnapshot & reference) const Commit the scene's update to a json object. |
void | save (std::string_view filename) const Save the scene to a file. |
geometry::SimplicialComplex | simplicial_surface (IndexT dim=-1) const Get the surface of the scene in the form of a simplicial complex allow to specify the dimension of the surface. |
Json | to_json () const Convert the scene to a json object. |
void | update (std::string_view filename) Update the scene from a SnapshotCommit file. |
void | update_from_json (const Json & json) Update the scene from a scene commit json object. |
void | write_surface (std::string_view filename) Write the surface of the scene to a file. Supported formats: |
Public Static Functions
Type | Name |
---|---|
Scene | from_json (const Json & json) Convert a json object to a scene. |
Scene | load (std::string_view filename) Load a scene from a file. |
void | save (const Scene & scene, std::string_view filename) Save the scene to a file. |
Public Functions Documentation
function SceneIO
function commit
Commit the scene's update to a file.
Supported formats: * .json * .bson
Parameters:
reference
filename
function commit_to_json
Commit the scene's update to a json object.
Supported formats: * .json * .bson
Parameters:
reference
filename
function save [1/2]
Save the scene to a file.
Supported formats: * .json * .bson
Parameters:
filename
function simplicial_surface
Get the surface of the scene in the form of a simplicial complex allow to specify the dimension of the surface.
- 0: point cloud
- 1: line mesh
- 2: triangle mesh
- -1: all dimensions
Parameters:
dim
Returns:
function to_json
Convert the scene to a json object.
Returns:
function update
Update the scene from a SnapshotCommit file.
Supported formats: * - .json * .bson
Parameters:
filename
function update_from_json
Update the scene from a scene commit json object.
Supported formats: * - .json * .bson
Parameters:
filename
function write_surface
Write the surface of the scene to a file. Supported formats:
- .obj
Public Static Functions Documentation
function from_json
Convert a json object to a scene.
Parameters:
json
Returns:
function load
Load a scene from a file.
Supported formats: * .json * .bson
Parameters:
filename
Returns:
function save [2/2]
Save the scene to a file.
Supported formats: * .json * .bson
Parameters:
scene
filename
The documentation for this class was generated from the following file include/uipc/io/scene_io.h