Class WebSceneCamera#
Defined in File WebSceneCamera.h
Inheritance Relationships#
Base Types#
public Karana::Scene::WebSceneNode(Class WebSceneNode)public Karana::Scene::GraphicalSceneCamera(Class GraphicalSceneCamera)
Class Documentation#
-
class WebSceneCamera : public Karana::Scene::WebSceneNode, public Karana::Scene::GraphicalSceneCamera#
Specialized node to provide a viewpoint for the WebScene.
See Scene layer for more discussion on the scene layer.
Public Functions
-
WebSceneCamera(std::string_view name, const kc::ks_ptr<Scene> &scene, const Karana::Core::ks_ptr<Karana::WebUI::Server> &server, bool *batching, const VarProjection &proj = PerspectiveProjection{})#
WebSceneCamera constructor. The constructor is not meant to be called directly. Please use the create(…) method instead to create an instance.
- Parameters:
name – Name for the WebSceneCamera
scene – WebScene to add the camera to.
server – Server to communicate with frontends
proj – Camera projection parameters.
batching – Whether transform updates are being batched.
-
virtual void setProjection(const VarProjection &proj) override#
Set the camera projection parameters.
- Parameters:
proj – The camera projection parameters
-
WebSceneCamera(std::string_view name, const kc::ks_ptr<Scene> &scene, const Karana::Core::ks_ptr<Karana::WebUI::Server> &server, bool *batching, const VarProjection &proj = PerspectiveProjection{})#