Class GraphicalSceneCamera#

Inheritance Relationships#

Base Type#

Derived Type#

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

virtual void setMask(layer_t mask)#

Set the bitmask for which layers should be visible.

Parameters:

mask – - The layers bitmask

virtual void pointCameraAt(const Karana::Math::Vec3 &offset, const Karana::Math::Vec3 &target, const Karana::Math::Vec3 &up) = 0#

Set the pose of the camera.

Parameters:
  • offset – The position of the camera.

  • target – The position the camera will point at.

  • up – The up vector of the camera.

Protected Functions

GraphicalSceneCamera(std::string_view name, const kc::ks_ptr<Scene> &scene, const VarProjection &proj = PerspectiveProjection{})#

GraphicalSceneCamera constructor.

Parameters: