Class GraphicalSceneCamera#
Defined in File GraphicalSceneCamera.h
Inheritance Relationships#
Base Type#
public Karana::Scene::GraphicalSceneNode(Class GraphicalSceneNode)
Derived Type#
public Karana::Scene::WebSceneCamera(Class WebSceneCamera)
Class Documentation#
-
class GraphicalSceneCamera : public virtual Karana::Scene::GraphicalSceneNode#
Specialized node to provide a viewpoint for the GraphicalScene.
See Scene layer for more discussion on the scene layer.
Subclassed by Karana::Scene::WebSceneCamera
Public Functions
-
const VarProjection &getProjection() const#
Get the camera projection parameters.
- Returns:
The camera projection parameters
-
virtual void setProjection(const VarProjection &proj)#
Set the camera projection parameters.
- Parameters:
proj – The camera projection parameters
-
layer_t getMask() const#
Get the bitmask for which layers should be visible.
- Returns:
The layers bitmask
Protected Functions
-
GraphicalSceneCamera(std::string_view name, const kc::ks_ptr<Scene> &scene, const VarProjection &proj = PerspectiveProjection{})#
GraphicalSceneCamera constructor.
- Parameters:
name – - Name for the GraphicalSceneCamera
scene – - GraphicalScene to add the camera to.
proj – - Camera projection parameters.
-
const VarProjection &getProjection() const#