Tatooine
unary_scalar_operation.h
Go to the documentation of this file.
1#ifndef TATOOINE_FLOWEXPLORER_NODES_UNARY_SCALAR_OPERATION_H
2#define TATOOINE_FLOWEXPLORER_NODES_UNARY_SCALAR_OPERATION_H
3//==============================================================================
5#include <tatooine/real.h>
6//==============================================================================
8//==============================================================================
9struct unary_scalar_operation : ui::node<unary_scalar_operation> {
10 enum class op : int { sin, cos };
12 int m_op = 0;
14
16 virtual ~unary_scalar_operation() = default;
17 auto draw_properties() -> bool override;
18 auto on_property_changed() -> void override;
19};
20//==============================================================================
21} // namespace tatooine::flowexplorer::nodes
22//==============================================================================
25 TATOOINE_REFLECTION_INSERT_METHOD(operation, m_op));
26#endif
Definition: abcflow.h:7
Definition: unary_scalar_operation.h:9
op
Definition: unary_scalar_operation.h:10
ui::input_pin & m_input
Definition: unary_scalar_operation.h:13
real_type m_value
Definition: unary_scalar_operation.h:11
int m_op
Definition: unary_scalar_operation.h:12
Definition: scene.h:17
Definition: node.h:382
TATOOINE_FLOWEXPLORER_REGISTER_NODE(tatooine::flowexplorer::nodes::unary_scalar_operation, TATOOINE_REFLECTION_INSERT_METHOD(operation, m_op))