File: ccEntityAction.h

package info (click to toggle)
cloudcompare 2.10.1-2
  • links: PTS
  • area: main
  • in suites: buster
  • size: 55,916 kB
  • sloc: cpp: 219,837; ansic: 29,944; makefile: 67; sh: 45
file content (95 lines) | stat: -rw-r--r-- 4,396 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
#ifndef CCENTITYACTION_H
#define CCENTITYACTION_H
//##########################################################################
//#                                                                        #
//#                              CLOUDCOMPARE                              #
//#                                                                        #
//#  This program is free software; you can redistribute it and/or modify  #
//#  it under the terms of the GNU General Public License as published by  #
//#  the Free Software Foundation; version 2 or later of the License.      #
//#                                                                        #
//#  This program is distributed in the hope that it will be useful,       #
//#  but WITHOUT ANY WARRANTY; without even the implied warranty of        #
//#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the          #
//#  GNU General Public License for more details.                          #
//#                                                                        #
//#          COPYRIGHT: CloudCompare project                               #
//#                                                                        #
//##########################################################################

#include "ccColorScale.h"
#include "ccMesh.h"

class QWidget;

class ccMainAppInterface;

namespace ccEntityAction
{
	// Colours
	bool	setColor(ccHObject::Container selectedEntities, bool colorize, QWidget *parent);
	bool	rgbToGreyScale(const ccHObject::Container &selectedEntities);
	bool	setColorGradient(const ccHObject::Container &selectedEntities, QWidget *parent);
	bool	changeColorLevels(const ccHObject::Container &selectedEntities, QWidget *parent);
	bool	interpolateColors(const ccHObject::Container &selectedEntities, QWidget *parent);
	bool	convertTextureToColor(const ccHObject::Container& selectedEntities, QWidget *parent);
	bool	enhanceRGBWithIntensities(const ccHObject::Container &selectedEntities, QWidget *parent);
	
	// Scalar Fields
	bool	sfGaussianFilter(const ccHObject::Container &selectedEntities, QWidget *parent);
	bool	sfBilateralFilter(const ccHObject::Container &selectedEntities, QWidget *parent);
	bool	sfConvertToRGB(const ccHObject::Container &selectedEntities, QWidget *parent);
	bool	sfConvertToRandomRGB(const ccHObject::Container &selectedEntities, QWidget *parent);
	bool	sfRename(const ccHObject::Container &selectedEntities, QWidget *parent);
	bool	sfAddIdField(const ccHObject::Container &selectedEntities);
	bool	sfSetAsCoord(const ccHObject::Container &selectedEntities, QWidget *parent);
	bool	exportCoordToSF(const ccHObject::Container &selectedEntities, QWidget *parent);
	bool	sfArithmetic(const ccHObject::Container &selectedEntities, QWidget *parent);
	bool	sfFromColor(const ccHObject::Container &selectedEntities, QWidget *parent);
	bool	interpolateSFs(const ccHObject::Container &selectedEntities, ccMainAppInterface *parent);

	bool	processMeshSF(const ccHObject::Container &selectedEntities, ccMesh::MESH_SCALAR_FIELD_PROCESS process, QWidget *parent);
	
	// Normals
	bool	computeNormals(const ccHObject::Container &selectedEntities, QWidget *parent);
	bool	invertNormals(const ccHObject::Container &selectedEntities);
	bool	orientNormalsFM(const ccHObject::Container &selectedEntities, QWidget *parent);
	bool	orientNormalsMST(const ccHObject::Container &selectedEntities, QWidget *parent);
	
	//! Normals conversion destinations
	enum class NORMAL_CONVERSION_DEST {
		HSV_COLORS,
		DIP_DIR_SFS
	};
	//! Converts a cloud's normals
	bool	convertNormalsTo(const ccHObject::Container &selectedEntities, NORMAL_CONVERSION_DEST dest);
	
	// Octrees
	bool	computeOctree(const ccHObject::Container &selectedEntities, QWidget *parent);
	
	// Properties
	enum class CLEAR_PROPERTY {
		COLORS = 0,
		NORMALS,
		CURRENT_SCALAR_FIELD,
		ALL_SCALAR_FIELDS
	};
	bool	clearProperty(ccHObject::Container selectedEntities, CLEAR_PROPERTY property, QWidget *parent);	
	
	enum class TOGGLE_PROPERTY {
		ACTIVE = 0,
		VISIBLE,
		COLOR,
		NORMALS,
		SCALAR_FIELD,
		MATERIAL,
		NAME
	};
	bool	toggleProperty(const ccHObject::Container &selectedEntities, TOGGLE_PROPERTY property);
	
	// Stats
	bool	statisticalTest(const ccHObject::Container &selectedEntities, QWidget *parent);
	bool	computeStatParams(const ccHObject::Container &selectedEntities, QWidget *parent);
}

#endif