 |
ACloudViewer
3.9.4
A Modern Library for 3D Data Processing
|
Go to the documentation of this file.
19 #include <QtCore/QObject>
20 #include <QtCore/QSet>
21 #include <QtCore/QString>
124 vtkPolyData* polyData =
nullptr);
143 bool removeSeed =
false,
144 bool removeIntermediateLayers =
false);
171 vtkPolyData* polyData,
174 bool removeSeed =
false,
175 bool removeIntermediateLayers =
false);
205 vtkPolyData* polyData,
208 bool removeSeed =
false,
209 bool removeIntermediateLayers =
false);
231 void progressChanged(
int percentage);
239 static QSet<vtkIdType> getCellNeighbors(vtkPolyData* polyData,
241 static QSet<vtkIdType> getPointNeighbors(vtkPolyData* polyData,
243 static bool isBoundaryCell(vtkPolyData* polyData,
245 const QSet<vtkIdType>& selectedSet);
246 static bool isBoundaryPoint(vtkPolyData* polyData,
248 const QSet<vtkIdType>& selectedSet);
249 double computeCellArea(vtkPolyData* polyData, vtkIdType cellId);
250 double computeAngleBetweenNormals(
const double n1[3],
const double n2[3]);
251 bool isPointInBounds(
const double point[3],
const double bounds[6]);
252 double computeDistance(
const double p1[3],
const double p2[3]);
253 int countCellNeighbors(vtkPolyData* polyData, vtkIdType cellId);
309 const QString& attributeName,
318 const QString& attributeName,
346 const double bounds[6]);
388 static QStringList getAttributeNames(vtkPolyData* polyData,
389 bool pointData =
true);
395 void progressChanged(
int percentage);
403 double computeCellArea(vtkPolyData* polyData, vtkIdType cellId);
404 double computeAngleBetweenNormals(
const double n1[3],
const double n2[3]);
405 bool isPointInBounds(
const double point[3],
const double bounds[6]);
406 double computeDistance(
const double p1[3],
const double p2[3]);
407 int countCellNeighbors(vtkPolyData* polyData, vtkIdType cellId);
ComparisonOp
Comparison operators.
Definition: cvSelectionAlgebra.h:290
@ ATTRIBUTE_RANGE
Filter by attribute value range.
Definition: cvSelectionAlgebra.h:279
normal_z x
Definition: my_point_types.h:165
bool hasActorInfo() const
Check if actor information is available.
Definition: cvSelectionData.h:253
@ BETWEEN
Definition: cvSelectionAlgebra.h:297
double normal[3]
Definition: FileIOFactory.cpp:53
@ SPATIAL_DISTANCE
Filter by distance from point.
Definition: cvSelectionAlgebra.h:283
cvSelectionData filterByArea(vtkPolyData *polyData, const cvSelectionData &input, double minArea, double maxArea)
Filter cells by area.
Definition: cvSelectionAlgebra.cpp:1175
FieldAssociation fieldAssociation() const
Get field association.
Definition: cvSelectionData.h:193
@ NOT_EQUAL
Definition: cvSelectionAlgebra.h:292
FilterType
Filter types.
Definition: cvSelectionAlgebra.h:278
GraphType data
Definition: graph_cut.cc:138
static cvSelectionData shrinkPointSelection(vtkPolyData *polyData, const cvSelectionData &input, int iterations=1)
Shrink point selection by removing boundary points.
Definition: cvSelectionAlgebra.cpp:831
QSet< T > qSetFromVector(const QVector< T > &vec)
Definition: QtCompat.h:1073
cvSelectionData filterByAttributeRange(vtkPolyData *polyData, const cvSelectionData &input, const QString &attributeName, double minValue, double maxValue)
Filter by attribute value range.
Definition: cvSelectionAlgebra.cpp:1051
static bool PrintVerbose(const char *format,...)
Prints out a verbose formatted message in console.
Definition: CVLog.cpp:103
#define signals
Definition: PythonPlugin.cpp:26
static cvSelectionData combineAND(const cvSelectionData &a, const cvSelectionData &b)
Combine two selections with AND operation.
Definition: cvSelectionAlgebra.cpp:1438
static bool Print(const char *format,...)
Prints out a formatted message in console.
Definition: CVLog.cpp:113
static cvSelectionData differenceOf(const cvSelectionData &a, const cvSelectionData &b)
Compute difference of two selections.
Definition: cvSelectionAlgebra.cpp:92
static cvSelectionData unionOf(const cvSelectionData &a, const cvSelectionData &b)
Compute union of two selections.
Definition: cvSelectionAlgebra.cpp:37
Definition: WidgetMap.h:20
static cvSelectionData shrinkSelection(vtkPolyData *polyData, const cvSelectionData &input, int iterations=1)
Shrink selection by removing boundary elements.
Definition: cvSelectionAlgebra.cpp:320
static QStringList getAttributeNames(vtkPolyData *polyData, bool pointData=true)
Get attribute names available in polyData.
Definition: cvSelectionAlgebra.cpp:1514
Selection algebra operations.
Definition: cvSelectionAlgebra.h:46
static cvSelectionData invert(vtkPolyData *polyData, const cvSelectionData &input)
Invert selection (NOT operation)
Definition: cvSelectionAlgebra.cpp:1487
cvSelectionData filterByNormalAngle(vtkPolyData *polyData, const cvSelectionData &input, double refX, double refY, double refZ, double minAngleDeg, double maxAngleDeg)
Filter by normal angle relative to reference direction.
Definition: cvSelectionAlgebra.cpp:1213
double normals[3]
Definition: TriangleMeshIO.cpp:54
core::Tensor result
Definition: VtkUtils.cpp:76
Advanced selection filtering system.
Definition: cvSelectionAlgebra.h:271
static bool Error(const char *format,...)
Display an error dialog with formatted message.
Definition: CVLog.cpp:143
static cvSelectionData symmetricDifferenceOf(const cvSelectionData &a, const cvSelectionData &b)
Compute symmetric difference of two selections.
Definition: cvSelectionAlgebra.cpp:124
@ LESS_EQUAL
Definition: cvSelectionAlgebra.h:294
static cvSelectionData growPointSelection(vtkPolyData *polyData, const cvSelectionData &input, int layers=1, bool removeSeed=false, bool removeIntermediateLayers=false)
Grow point selection by adding neighbor points.
Definition: cvSelectionAlgebra.cpp:739
normal_z y
Definition: my_point_types.h:168
@ GEOMETRIC_AREA
Filter by cell area.
Definition: cvSelectionAlgebra.h:280
@ LESS_THAN
Definition: cvSelectionAlgebra.h:293
static cvSelectionData combineOR(const cvSelectionData &a, const cvSelectionData &b)
Combine two selections with OR operation.
Definition: cvSelectionAlgebra.cpp:1463
cvSelectionAlgebra(QObject *parent=nullptr)
Definition: cvSelectionAlgebra.cpp:32
bool isEmpty() const
Check if selection is empty.
Definition: cvSelectionData.cpp:114
const double * e
Definition: essential_matrix_poly.h:10
@ SPATIAL_BBOX
Filter by bounding box.
Definition: cvSelectionAlgebra.h:282
cvSelectionFilter(QObject *parent=nullptr)
Definition: cvSelectionAlgebra.cpp:1043
@ CELLS
Selection applies to cells.
Definition: cvSelectionData.h:142
vtkActor * primaryActor() const
Get the primary (front-most) actor.
Definition: cvSelectionData.cpp:181
cvSelectionData filterByAttributeComparison(vtkPolyData *polyData, const cvSelectionData &input, const QString &attributeName, ComparisonOp op, double value)
Filter by attribute comparison.
Definition: cvSelectionAlgebra.cpp:1101
@ GREATER_EQUAL
Definition: cvSelectionAlgebra.h:296
int count() const
Get number of selected items.
Definition: cvSelectionData.cpp:119
a[190]
Definition: essential_matrix_poly.h:19
QVector< qint64 > ids() const
Get selected IDs as a vector (copy)
Definition: cvSelectionData.cpp:124
@ POINTS
Selection applies to points.
Definition: cvSelectionData.h:143
cvSelectionData filterByNeighborCount(vtkPolyData *polyData, const cvSelectionData &input, int minNeighbors, int maxNeighbors)
Filter by neighbor count (topology)
Definition: cvSelectionAlgebra.cpp:1399
static cvSelectionData intersectionOf(const cvSelectionData &a, const cvSelectionData &b)
Compute intersection of two selections.
Definition: cvSelectionAlgebra.cpp:63
static cvSelectionData expandSelection(vtkPolyData *polyData, const cvSelectionData &input, int layers, bool removeSeed=false, bool removeIntermediateLayers=false)
Expand selection (ParaView-compatible)
Definition: cvSelectionAlgebra.cpp:462
Encapsulates selection data without exposing VTK types.
Definition: cvSelectionData.h:136
static bool Warning(const char *format,...)
Prints out a formatted warning message in console.
Definition: CVLog.cpp:133
#define QPCL_ENGINE_LIB_API
Definition: qPCL.h:15
static cvSelectionData extractBoundary(vtkPolyData *polyData, const cvSelectionData &input)
Extract boundary elements of selection.
Definition: cvSelectionAlgebra.cpp:370
QVector< T > qVectorFromSet(const QSet< T > &set)
Definition: QtCompat.h:1078
static cvSelectionData complementOf(vtkPolyData *polyData, const cvSelectionData &input)
Compute complement of a selection.
Definition: cvSelectionAlgebra.cpp:165
@ EQUAL
Definition: cvSelectionAlgebra.h:291
normal_z z
Definition: my_point_types.h:165
@ GEOMETRIC_ANGLE
Filter by normal angle.
Definition: cvSelectionAlgebra.h:281
vtkPolyData * primaryPolyData() const
Get the primary (front-most) polyData.
Definition: cvSelectionData.cpp:186
static cvSelectionData growSelection(vtkPolyData *polyData, const cvSelectionData &input, int layers=1, bool removeSeed=false, bool removeIntermediateLayers=false)
Grow selection by adding neighbors.
Definition: cvSelectionAlgebra.cpp:240
void setActorInfo(vtkActor *actor, vtkPolyData *polyData, double zValue=1.0)
Set actor information (single actor case)
Definition: cvSelectionData.cpp:159
Operation
Algebra operations Using enum class to avoid macro conflicts (e.g., DIFFERENCE may be defined as a ma...
Definition: cvSelectionAlgebra.h:57
static cvSelectionData performOperation(Operation op, const cvSelectionData &a, const cvSelectionData &b, vtkPolyData *polyData=nullptr)
Perform algebra operation on two selections.
Definition: cvSelectionAlgebra.cpp:211
@ GREATER_THAN
Definition: cvSelectionAlgebra.h:295
~cvSelectionFilter() override
Definition: cvSelectionAlgebra.cpp:1048
cvSelectionData filterByDistanceFromPoint(vtkPolyData *polyData, const cvSelectionData &input, double x, double y, double z, double minDistance, double maxDistance)
Filter by distance from point.
Definition: cvSelectionAlgebra.cpp:1329
cvSelectionData filterByBoundingBox(vtkPolyData *polyData, const cvSelectionData &input, const double bounds[6])
Filter by bounding box.
Definition: cvSelectionAlgebra.cpp:1266
static bool areCompatible(const cvSelectionData &a, const cvSelectionData &b)
Validate that two selections are compatible for operations.
Definition: cvSelectionAlgebra.cpp:405