1#ifndef TATOOINE_FLOWEXPLORER_RENDERABLE_H
2#define TATOOINE_FLOWEXPLORER_RENDERABLE_H
27 mat4f const& view_matrix) ->
void = 0;
36 -> std::optional<intersection<double, 3>> {
41template <
typename Child>
50 auto deserialize(toml::table
const& serialization) ->
void override {
59 auto type_name() const -> std::string_view
override {
Definition: directories.h:6
Definition: renderable.h:13
auto is_picked() -> bool
Definition: renderable.h:34
virtual auto check_intersection(ray< float, 3 > const &) const -> std::optional< intersection< double, 3 > >
Definition: renderable.h:35
renderable(renderable &&w) noexcept=delete
auto operator=(renderable &&w) noexcept -> renderable &=delete
bool m_picked
Definition: renderable.h:14
auto on_mouse_released() -> void
Definition: renderable.h:33
renderable(std::string const &title, flowexplorer::scene &s, T &ref)
Definition: renderable.h:18
renderable(renderable const &w)=delete
auto operator=(renderable const &w) -> renderable &=delete
virtual ~renderable()=default
virtual auto render(mat4f const &projection_matrix, mat4f const &view_matrix) -> void=0
auto on_mouse_clicked() -> void
Definition: renderable.h:32
virtual auto is_transparent() const -> bool
Definition: renderable.h:28
virtual auto on_mouse_drag(int, int) -> bool
Definition: renderable.h:29
renderable(std::string const &title, flowexplorer::scene &s)
auto draw_properties() -> bool final
Definition: renderable.h:42
auto deserialize(toml::table const &serialization) -> void override
Definition: renderable.h:50
auto draw_properties() -> bool override
Definition: renderable.h:55
auto type_name() const -> std::string_view override
Definition: renderable.h:59
auto serialize() const -> toml::table override
Definition: renderable.h:46
auto title() const -> auto const &
Definition: node.h:69
node(flowexplorer::scene &s)
auto deserialize(Child &t, toml::table const &serialized_node) -> void
Definition: node.h:189
constexpr auto type_name() const -> std::string_view
Definition: node.h:377