Tatooine
Public Types | Public Member Functions | Private Attributes | List of all members
tatooine::flowexplorer::nodes::field_from_file< Real, N, is_time_dependent, TensorDims > Struct Template Reference

#include <field_from_file.h>

Inheritance diagram for tatooine::flowexplorer::nodes::field_from_file< Real, N, is_time_dependent, TensorDims >:
[legend]
Collaboration diagram for tatooine::flowexplorer::nodes::field_from_file< Real, N, is_time_dependent, TensorDims >:
[legend]

Public Types

using this_type = field_from_file< Real, N, is_time_dependent, TensorDims... >
 
using node_parent_type = ui::node< this_type >
 
- Public Types inherited from tatooine::flowexplorer::ui::node< field_from_file< Real, N, is_time_dependent, TensorDims... > >
using serializer_t = node_serializer< field_from_file< Real, N, is_time_dependent, TensorDims... > >
 

Public Member Functions

auto path () const -> auto const &
 
auto path () -> auto &
 
 field_from_file (flowexplorer::scene &s)
 
virtual ~field_from_file ()=default
 
auto draw_properties () -> bool override
 
auto on_path_selected (std::string const &path) -> void override
 
auto deserialize (toml::table const &serialized_node) -> void override
 
- Public Member Functions inherited from tatooine::flowexplorer::ui::node< field_from_file< Real, N, is_time_dependent, TensorDims... > >
auto serialize () const -> toml::table override final
 
auto deserialize (toml::table const &serialized_node) -> void override
 
auto draw_properties () -> bool override
 
auto type_name () const -> std::string_view override final
 
- Public Member Functions inherited from tatooine::flowexplorer::ui::base::node
 node (flowexplorer::scene &s)
 
 node (std::string const &title, flowexplorer::scene &s)
 
template<typename T >
 node (flowexplorer::scene &s, T &ref)
 
template<typename T >
 node (std::string const &title, flowexplorer::scene &s, T &ref)
 
virtual ~node ()=default
 
template<typename... Ts>
auto insert_input_pin (std::string const &title, icon_type const t=icon_type::flow) -> auto &
 
template<typename Prop >
auto insert_input_pin_property_link (input_pin &pin, Prop &prop) -> auto &
 
template<typename T >
auto insert_output_pin (std::string const &title, T &ref, icon_type const t=icon_type::flow) -> auto &
 
auto title () const -> auto const &
 
auto title () -> auto &
 
auto scene () const -> auto const &
 
auto scene () -> auto &
 
auto set_title (std::string const &title)
 
auto has_self_pin () const -> bool
 
auto self_pin () const -> auto const &
 
auto self_pin () -> auto &
 
auto input_pins () const -> auto const &
 
auto input_pins () -> auto &
 
auto output_pins () const -> auto const &
 
auto output_pins () -> auto &
 
auto draw_node () -> void
 
auto node_position () const -> ImVec2
 
auto notify_property_changed (bool const notify_self=true) -> void
 
auto update_property_links () -> void
 
virtual auto draw_properties () -> bool=0
 
virtual auto on_property_changed () -> void
 
virtual auto on_title_changed (std::string const &) -> void
 
virtual auto on_pin_connected (input_pin &, output_pin &) -> void
 
virtual auto on_pin_connected (output_pin &, input_pin &) -> void
 
virtual auto on_pin_disconnected (input_pin &) -> void
 
virtual auto on_pin_disconnected (output_pin &) -> void
 
virtual auto type_name () const -> std::string_view=0
 
virtual auto update (std::chrono::duration< double > const &) -> void
 
virtual auto on_path_selected (std::string const &) -> void
 
- Public Member Functions inherited from tatooine::flowexplorer::uuid_holder< ax::NodeEditor::NodeId >
 uuid_holder (size_t const id)
 
 uuid_holder (ax::NodeEditor::NodeId const &id)
 
 uuid_holder ()
 
auto get_id () const -> const auto &
 
auto get_id () -> auto &
 
auto get_id_number () const
 
auto set_id (size_t const new_id)
 
constexpr auto operator== (uuid_holder< ax::NodeEditor::NodeId > const &other) const -> bool
 
constexpr auto operator== (ax::NodeEditor::NodeId const &id) const -> bool
 
constexpr auto operator== (size_t const id) const -> bool
 
constexpr auto equals ()
 
virtual auto serialize () const -> toml::table=0
 
virtual void deserialize (toml::table const &)=0
 
- Public Member Functions inherited from tatooine::flowexplorer::toggleable
constexpr toggleable (bool active=true)
 
constexpr toggleable (toggleable const &)=default
 
constexpr toggleable (toggleable &&)=default
 
constexpr auto operator= (toggleable const &) -> toggleable &=default
 
constexpr auto operator= (toggleable &&) -> toggleable &=default
 
 ~toggleable ()=default
 
virtual constexpr auto set_active (bool active=true) -> void
 
constexpr auto activate () -> void
 
constexpr auto deactivate () -> void
 
constexpr auto toggle () -> void
 
constexpr auto is_active () const -> bool const &
 
constexpr auto is_active () -> bool &
 
- Public Member Functions inherited from tatooine::flowexplorer::ui::node_serializer< T >
auto serialize (T const &t) const -> toml::table
 
auto deserialize (T &t, toml::table const &serialized_node) -> void
 
auto draw_properties (T &t) -> bool
 
constexpr auto type_name () const -> std::string_view
 

Private Attributes

std::string m_path
 
bool m_picking_file = false
 

Member Typedef Documentation

◆ node_parent_type

template<arithmetic Real, size_t N, bool is_time_dependent, size_t... TensorDims>
using tatooine::flowexplorer::nodes::field_from_file< Real, N, is_time_dependent, TensorDims >::node_parent_type = ui::node<this_type>

◆ this_type

template<arithmetic Real, size_t N, bool is_time_dependent, size_t... TensorDims>
using tatooine::flowexplorer::nodes::field_from_file< Real, N, is_time_dependent, TensorDims >::this_type = field_from_file<Real, N, is_time_dependent, TensorDims...>

Constructor & Destructor Documentation

◆ field_from_file()

template<arithmetic Real, size_t N, bool is_time_dependent, size_t... TensorDims>
tatooine::flowexplorer::nodes::field_from_file< Real, N, is_time_dependent, TensorDims >::field_from_file ( flowexplorer::scene s)
inline

◆ ~field_from_file()

template<arithmetic Real, size_t N, bool is_time_dependent, size_t... TensorDims>
virtual tatooine::flowexplorer::nodes::field_from_file< Real, N, is_time_dependent, TensorDims >::~field_from_file ( )
virtualdefault

Member Function Documentation

◆ deserialize()

template<arithmetic Real, size_t N, bool is_time_dependent, size_t... TensorDims>
auto tatooine::flowexplorer::nodes::field_from_file< Real, N, is_time_dependent, TensorDims >::deserialize ( toml::table const &  serialized_node) -> void
inlineoverridevirtual

◆ draw_properties()

template<arithmetic Real, size_t N, bool is_time_dependent, size_t... TensorDims>
auto tatooine::flowexplorer::nodes::field_from_file< Real, N, is_time_dependent, TensorDims >::draw_properties ( ) -> bool
inlineoverridevirtual

◆ on_path_selected()

template<arithmetic Real, size_t N, bool is_time_dependent, size_t... TensorDims>
auto tatooine::flowexplorer::nodes::field_from_file< Real, N, is_time_dependent, TensorDims >::on_path_selected ( std::string const &  path) -> void
inlineoverridevirtual

◆ path() [1/2]

template<arithmetic Real, size_t N, bool is_time_dependent, size_t... TensorDims>
auto tatooine::flowexplorer::nodes::field_from_file< Real, N, is_time_dependent, TensorDims >::path ( ) -> auto &
inline

◆ path() [2/2]

template<arithmetic Real, size_t N, bool is_time_dependent, size_t... TensorDims>
auto tatooine::flowexplorer::nodes::field_from_file< Real, N, is_time_dependent, TensorDims >::path ( ) const -> auto const&
inline

Member Data Documentation

◆ m_path

template<arithmetic Real, size_t N, bool is_time_dependent, size_t... TensorDims>
std::string tatooine::flowexplorer::nodes::field_from_file< Real, N, is_time_dependent, TensorDims >::m_path
private

◆ m_picking_file

template<arithmetic Real, size_t N, bool is_time_dependent, size_t... TensorDims>
bool tatooine::flowexplorer::nodes::field_from_file< Real, N, is_time_dependent, TensorDims >::m_picking_file = false
private

The documentation for this struct was generated from the following file: