ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
ccFitPlaneTool.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 
11 
12 #include "ccFitPlane.h"
13 #include "ccMouseCircle.h"
14 #include "ccTool.h"
15 
16 /*
17 Tool that is activated during "Plane Mode", generating fit planes from
18 point-picks
19 */
20 class ccFitPlaneTool : public ccTool {
21 public:
23  virtual ~ccFitPlaneTool();
24 
25  // called when the tool is set to active (for initialization)
26  void toolActivated() override;
27 
28  // called when the tool is set to disactive (for cleanup)
29  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 
38  // mouse circle element used for the selection
40 };
virtual ~ccFitPlaneTool()
void toolActivated() override
void toolDisactivated() override
ccMouseCircle * m_mouseCircle
void pointPicked(ccHObject *insertPoint, unsigned itemIdx, ccPointCloud *cloud, const CCVector3 &P) override
Hierarchical CLOUDVIEWER Object.
Definition: ecvHObject.h:25
A 3D cloud and its associated features (color, normals, scalar fields, etc.)
Definition: ccTool.h:18