Class GraphicalSceneNode#

Inheritance Relationships#

Base Type#

Derived Types#

Class Documentation#

class GraphicalSceneNode : public virtual Karana::Scene::SceneNode#

SceneNode with an added graphics-specific interface.

Subclassed by Karana::Scene::GraphicalSceneCamera, Karana::Scene::GraphicalScenePart, Karana::Scene::WebSceneNode

Public Functions

virtual ~GraphicalSceneNode()#
virtual void showAxes(float size = 1) = 0#

Show axes to visualize the node’s position and orientation.

Parameters:

size – - Lengths of the axes (zero to remove the axes)

virtual void trail(const Karana::Core::ks_ptr<GraphicalSceneNode> &relative_to = nullptr, const Color &color = Color::WHITE) = 0#

Display a trail tracking the node’s motion over time.

Parameters:
  • relative_to – - Another node to draw the trail relative to.

  • color – - The color of the Trail.

virtual void removeTrail() = 0#

Remove a trail previously created by calling trail.

Protected Functions

GraphicalSceneNode(std::string_view name, const kc::ks_ptr<Scene> &scene)#

GraphicalSceneNode constructor.

Parameters:

Protected Static Functions

static Karana::Core::ks_ptr<GraphicalSceneNode> create(std::string_view name, const kc::ks_ptr<GraphicalScene> &scene)#

Factory for a GraphicalSceneNode.

Parameters:
Returns:

The create GraphicalSceneNode.