ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
ccProgressDialog.cpp
Go to the documentation of this file.
1 // ----------------------------------------------------------------------------
2 // - CloudViewer: www.cloudViewer.org -
3 // ----------------------------------------------------------------------------
4 // Copyright (c) 2018-2024 www.cloudViewer.org
5 // SPDX-License-Identifier: MIT
6 // ----------------------------------------------------------------------------
7 
8 #include <pybind11/pybind11.h>
9 #include <pybind11/stl.h>
10 #include <pybind11/stl_bind.h>
11 
13 #include <ecvProgressDialog.h>
14 
15 #include "../casters.h"
16 
17 namespace py = pybind11;
18 using namespace pybind11::literals;
19 
20 void define_ccProgressDialog(py::module &m)
21 {
22  py::class_<ecvProgressDialog, QProgressDialog, cloudViewer::GenericProgressCallback>(
23  m, "ccProgressDialog")
24  .def(py::init<bool>(), "cancelButton"_a = false)
25  .def("setMethodTitle",
27  "methodTitle"_a)
28  .def("setInfo",
29  (void(ecvProgressDialog::*)(QString)) & ecvProgressDialog::setInfo,
30  "infoStr"_a);
31 }
void define_ccProgressDialog(py::module &m)
Graphical progress indicator (thread-safe)
virtual void setInfo(const char *infoStr) override
Notifies some information about the ongoing process.
virtual void setMethodTitle(const char *methodTitle) override
Notifies the algorithm title.