ACloudViewer
3.9.4
A Modern Library for 3D Data Processing
ccLineationTool.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 "
ccLineation.h
"
11
#include "
ccTool.h
"
12
13
/*
14
Tool used to create/measure lineations
15
*/
16
class
ccLineationTool
:
public
ccTool
{
17
public
:
18
ccLineationTool
();
19
virtual
~ccLineationTool
();
20
21
// called when the tool is set to disactive (for cleanup)
22
void
toolDisactivated
()
override
;
23
24
// called when a point in a point cloud gets picked while this tool is
25
// active
26
void
pointPicked
(
ccHObject
* insertPoint,
27
unsigned
itemIdx,
28
ccPointCloud
* cloud,
29
const
CCVector3
& P)
override
;
30
31
// called when "Return" or "Space" is pressed, or the "Accept Button" is
32
// clicked
33
void
accept
()
override
;
// do nothing
34
35
// called when the "Escape" is pressed, or the "Cancel" button is clicked
36
void
cancel
()
override
;
// do nothing
37
protected
:
38
int
m_lineation_id
= -1;
// ID of the lineation object being written to
39
};
ccLineation.h
ccTool.h
Vector3Tpl< PointCoordinateType >
ccHObject
Hierarchical CLOUDVIEWER Object.
Definition:
ecvHObject.h:25
ccLineationTool
Definition:
ccLineationTool.h:16
ccLineationTool::pointPicked
void pointPicked(ccHObject *insertPoint, unsigned itemIdx, ccPointCloud *cloud, const CCVector3 &P) override
Definition:
ccLineationTool.cpp:20
ccLineationTool::cancel
void cancel() override
Definition:
ccLineationTool.cpp:68
ccLineationTool::toolDisactivated
void toolDisactivated() override
Definition:
ccLineationTool.cpp:17
ccLineationTool::~ccLineationTool
virtual ~ccLineationTool()
Definition:
ccLineationTool.cpp:14
ccLineationTool::ccLineationTool
ccLineationTool()
Definition:
ccLineationTool.cpp:12
ccLineationTool::accept
void accept() override
Definition:
ccLineationTool.cpp:63
ccLineationTool::m_lineation_id
int m_lineation_id
Definition:
ccLineationTool.h:38
ccPointCloud
A 3D cloud and its associated features (color, normals, scalar fields, etc.)
Definition:
ecvPointCloud.h:147
ccTool
Definition:
ccTool.h:18
plugins
core
Standard
qCompass
include
ccLineationTool.h
Generated on Wed Jan 28 2026 09:01:07 for ACloudViewer by
1.9.1