ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
ccPinchNodeTool.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 <qinputdialog.h>
11 #include <qmainwindow.h>
12 
13 #include "ccGeoObject.h"
14 #include "ccPinchNode.h"
15 #include "ccTool.h"
16 
17 /*
18 Tool used to create PinchNodes.
19 */
20 class ccPinchNodeTool : public ccTool {
21 public:
23  virtual ~ccPinchNodeTool();
24 
25  // called when the tool is set to active (for initialization)
26  virtual void toolActivated() override;
27 
28  // called when the tool is set to disactive (for cleanup)
29  virtual void toolDisactivated() override;
30 
31  // called when a point in a point cloud gets picked while this tool is
32  // active
33  void pointPicked(ccHObject* insertPoint,
34  unsigned itemIdx,
35  ccPointCloud* cloud,
36  const CCVector3& P) override;
37 };
Hierarchical CLOUDVIEWER Object.
Definition: ecvHObject.h:25
virtual void toolActivated() override
void pointPicked(ccHObject *insertPoint, unsigned itemIdx, ccPointCloud *cloud, const CCVector3 &P) override
virtual ~ccPinchNodeTool()
virtual void toolDisactivated() override
A 3D cloud and its associated features (color, normals, scalar fields, etc.)
Definition: ccTool.h:18