/*
 * Copyright 2024 Free Software Foundation, Inc.
 *
 * This file is part of GNU Radio
 *
 * SPDX-License-Identifier: GPL-3.0-or-later
 *
 */

/***********************************************************************************/
/* This file is automatically generated using bindtool and can be manually
 * edited  */
/* The following lines can be configured to regenerate this file during cmake */
/* If manual edits are made, the following tags should be modified accordingly.
 */
/* BINDTOOL_GEN_AUTOMATIC(0) */
/* BINDTOOL_USE_PYGCCXML(0) */
/* BINDTOOL_HEADER_FILE(matrix_sink.h)                                        */
/* BINDTOOL_HEADER_FILE_HASH(24c24e0f52802e5c34a527f6de1f2ef8) */
/***********************************************************************************/

#include <pybind11/complex.h>
#include <pybind11/pybind11.h>
#include <pybind11/stl.h>

namespace py = pybind11;

#include <gnuradio/qtgui/matrix_sink.h>
// pydoc.h is automatically generated in the build directory
#include <matrix_sink_pydoc.h>

void bind_matrix_sink(py::module& m)
{

    using matrix_sink = ::gr::qtgui::matrix_sink;

    py::class_<matrix_sink,
               gr::sync_block,
               gr::block,
               gr::basic_block,
               std::shared_ptr<matrix_sink>>(m, "matrix_sink", D(matrix_sink))

        .def(py::init(&matrix_sink::make),
             py::arg("name"),
             py::arg("num_cols"),
             py::arg("vlen"),
             py::arg("contour"),
             py::arg("color_map"),
             py::arg("interpolation"),
             py::arg("parent") = nullptr,
             D(matrix_sink, make))

        .def("exec", &matrix_sink::exec, D(matrix_sink, exec))

        .def(
            "qwidget",
            [](matrix_sink& self) { return reinterpret_cast<uintptr_t>(self.qwidget()); },
            D(matrix_sink, qwidget))

        .def("set_x_start",
             &matrix_sink::set_x_start,
             py::arg("x_start"),
             D(matrix_sink, set_x_start))

        .def("set_x_end",
             &matrix_sink::set_x_end,
             py::arg("x_end"),
             D(matrix_sink, set_x_end))

        .def("set_y_start",
             &matrix_sink::set_y_start,
             py::arg("y_start"),
             D(matrix_sink, set_y_start))

        .def("set_y_end",
             &matrix_sink::set_y_end,
             py::arg("y_end"),
             D(matrix_sink, set_y_end))

        .def("set_z_max",
             &matrix_sink::set_z_max,
             py::arg("z_max"),
             D(matrix_sink, set_z_max))

        .def("set_z_min",
             &matrix_sink::set_z_min,
             py::arg("z_min"),
             D(matrix_sink, set_z_min))

        .def("set_x_axis_label",
             &matrix_sink::set_x_axis_label,
             py::arg("x_axis_label"),
             D(matrix_sink, set_x_axis_label))

        .def("set_y_axis_label",
             &matrix_sink::set_y_axis_label,
             py::arg("y_axis_label"),
             D(matrix_sink, set_y_axis_label))

        .def("set_z_axis_label",
             &matrix_sink::set_z_axis_label,
             py::arg("z_axis_label"),
             D(matrix_sink, set_z_axis_label))

        ;
}
