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