ark::gui::RendererInterface

Defined in header “ark/gui/renderer_interface.hh”.


The public interface that is passed into plugins to allow them register 3D data to render.

Methods

  • RendererInterface()
    Creates a default interface, which ignores requests to add layers.

  • RendererInterface(RendererWidget * widget)
    Creates an interface that writes out to a renderer widget.

  • void add_listener(RendererMousePositionListener listener)
    Adds a new listener for mouse position events.

  • void add_listener(RendererMouseButtonListener listener)
    Adds a new listener for mouse button events.

  • void add_listener(RendererMouseWheelListener listener)
    Adds a new listener for mouse wheel events.

  • void add_layer(RendererLayer layer)
    Adds (or updates) a layer for the renderer. This object will be painted during the next paint cycle.

  • void add_layer(std::shared_ptr< const RendererLayer > layer)
    Adds (or updates) a layer for the renderer. This object will be painted during the next paint cycle.

  • void set_render_frame(std::string render_frame)
    Set the render frame.

  • void set_follow_frame(std::string follow_frame)
    Set the follow frame.

  • std::string selected_render_frame()
    Returns the selected render frame.

  • std::string selected_follow_frame()
    Returns the selected follow frame.

  • std::set< std::string > get_all_frames()
    Get the list of all known frames.

  • void look_at(const CameraLookAt & camera_target)
    Set the pose of the camera.

  • void set_time(std::chrono::steady_clock::time_point current_time)
    Set the current time (used to reset transform network on time jumps).