ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
signalblocker.h
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 #pragma once
9 
10 #include <QObject>
11 
12 #include "../qPCL.h"
13 
14 namespace VtkUtils {
15 
17 public:
18  explicit SignalBlocker(QObject* object = nullptr);
19  ~SignalBlocker();
20 
21  void addObject(QObject* object);
22 
23 private:
24  QObjectList m_objectList;
25 };
26 
27 } // namespace VtkUtils
#define QPCL_ENGINE_LIB_API
Definition: qPCL.h:15