Class WebSceneFileObject#

Inheritance Relationships#

Base Types#

Class Documentation#

class WebSceneFileObject : public Karana::Scene::SceneFileObject, public Karana::Scene::WebSceneNode#

SceneFileObject implementation for WebScene.

See Scene layer for more discussion on the scene layer.

Public Functions

WebSceneFileObject(std::string_view name, const kc::ks_ptr<Scene> &scene, const std::filesystem::path &filepath, layer_t layers, const Karana::Core::ks_ptr<Karana::WebUI::Server> &server, bool *batching)#

WebSceneFileObject constructor. The constructor is not meant to be called directly. Please use the create(…) method instead to create an instance.

Parameters:
  • name – Name of the WebSceneFileObject.

  • scene – The WebScene to add the part to.

  • filepath – Filepath to populate the node from.

  • layers – Layers to use for the WebSceneFileObject.

  • server – Server to communicate with frontends.

  • batching – Whether transform updates should be deferred.

Public Static Functions

static kc::ks_ptr<WebSceneFileObject> create(std::string_view name, const kc::ks_ptr<WebScene> &scene, const std::filesystem::path &filepath, layer_t layers = LAYER_PHYSICAL)#

Create a WebSceneFileObject.

Parameters:
Returns:

The new WebScene file node.