Tatooine
parallel_vectors.h
Go to the documentation of this file.
1#ifndef TATOOINE_FLOWEXPLORER_NODES_PARALLEL_VECTORS_H
2#define TATOOINE_FLOWEXPLORER_NODES_PARALLEL_VECTORS_H
3//==============================================================================
5#include <tatooine/line.h>
7//==============================================================================
9//==============================================================================
10struct parallel_vectors : renderable<parallel_vectors> {
11 std::array<GLfloat, 4> m_line_color;
16 std::vector<line<real_type, 3>> m_lines;
18 //============================================================================
20 ~parallel_vectors() = default;
21 //============================================================================
22 auto calculate() -> void;
23 auto render(mat4f const& P, mat4f const& V) -> void override;
25 auto draw_properties() -> bool override;
26 auto is_transparent() const -> bool override { return m_line_color[3] < 255; }
27};
28//==============================================================================
29} // namespace tatooine::flowexplorer::nodes
30//==============================================================================
33 TATOOINE_REFLECTION_INSERT_METHOD(line_width, m_line_width),
34 TATOOINE_REFLECTION_INSERT_METHOD(line_color, m_line_color))
35#endif
Definition: indexeddata.h:13
TATOOINE_FLOWEXPLORER_REGISTER_RENDERABLE(tatooine::flowexplorer::nodes::aabb2d, TATOOINE_REFLECTION_INSERT_GETTER(min), TATOOINE_REFLECTION_INSERT_GETTER(max), TATOOINE_REFLECTION_INSERT_GETTER(line_width), TATOOINE_REFLECTION_INSERT_GETTER(line_color))
Definition: abcflow.h:7
Definition: parallel_vectors.h:10
std::array< GLfloat, 4 > m_line_color
Definition: parallel_vectors.h:11
ui::input_pin & v_pin
Definition: parallel_vectors.h:13
gl::indexeddata< vec3f > m_geometry
Definition: parallel_vectors.h:17
auto render(mat4f const &P, mat4f const &V) -> void override
int m_line_width
Definition: parallel_vectors.h:12
std::vector< line< real_type, 3 > > m_lines
Definition: parallel_vectors.h:16
ui::input_pin & w_pin
Definition: parallel_vectors.h:14
auto is_transparent() const -> bool override
Definition: parallel_vectors.h:26
auto on_pin_connected(ui::input_pin &, ui::output_pin &) -> void override
ui::input_pin & grid_pin
Definition: parallel_vectors.h:15
Definition: renderable.h:42
Definition: scene.h:17
Definition: mat.h:14