VTK
9.0.1
Common
DataModel
vtkClosestNPointsStrategy.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Visualization Toolkit
4
Module: vtkClosestNPointsStrategy.h
5
6
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7
All rights reserved.
8
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9
10
This software is distributed WITHOUT ANY WARRANTY; without even
11
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12
PURPOSE. See the above copyright notice for more information.
13
14
=========================================================================*/
29
#ifndef vtkClosestNPointsStrategy_h
30
#define vtkClosestNPointsStrategy_h
31
32
#include "
vtkClosestPointStrategy.h
"
33
#include "vtkCommonDataModelModule.h"
// For export macro
34
35
class
VTKCOMMONDATAMODEL_EXPORT
vtkClosestNPointsStrategy
:
public
vtkClosestPointStrategy
36
{
37
public
:
41
static
vtkClosestNPointsStrategy
*
New
();
42
44
47
vtkTypeMacro(
vtkClosestNPointsStrategy
,
vtkClosestPointStrategy
);
48
void
PrintSelf
(ostream& os,
vtkIndent
indent)
override
;
50
51
// Re-use any superclass signatures that we don't override.
52
using
vtkClosestPointStrategy::Initialize
;
53
57
vtkIdType
FindCell
(
double
x[3],
vtkCell
* cell,
vtkGenericCell
* gencell,
vtkIdType
cellId,
58
double
tol2,
int
& subId,
double
pcoords[3],
double
* weights)
override
;
59
61
64
vtkSetClampMacro(ClosestNPoints,
int
, 1, 100);
65
vtkGetMacro(ClosestNPoints,
int
);
67
68
protected
:
69
vtkClosestNPointsStrategy
();
70
~
vtkClosestNPointsStrategy
()
override
;
71
72
int
ClosestNPoints
;
73
74
private
:
75
vtkClosestNPointsStrategy
(
const
vtkClosestNPointsStrategy
&) =
delete
;
76
void
operator=(
const
vtkClosestNPointsStrategy
&) =
delete
;
77
};
78
79
#endif
vtkClosestPointStrategy.h
vtkClosestNPointsStrategy
implement a specific vtkPointSet::FindCell() strategy based on the N closest points
Definition:
vtkClosestNPointsStrategy.h:35
vtkIdType
int vtkIdType
Definition:
vtkType.h:338
vtkClosestPointStrategy::FindCell
vtkIdType FindCell(double x[3], vtkCell *cell, vtkGenericCell *gencell, vtkIdType cellId, double tol2, int &subId, double pcoords[3], double *weights) override
Implement the specific strategy.
vtkClosestPointStrategy::New
static vtkClosestPointStrategy * New()
Construct a vtkFindCellStrategy subclass.
vtkClosestPointStrategy::Initialize
int Initialize(vtkPointSet *ps) override
Provide the necessary initialization method (see superclass for more information).
vtkCell
abstract class to specify cell behavior
Definition:
vtkCell.h:56
vtkIndent
a simple class to control print indentation
Definition:
vtkIndent.h:33
vtkClosestPointStrategy
implement a specific vtkPointSet::FindCell() strategy based on closest point
Definition:
vtkClosestPointStrategy.h:46
vtkClosestNPointsStrategy::ClosestNPoints
int ClosestNPoints
Definition:
vtkClosestNPointsStrategy.h:72
vtkGenericCell
provides thread-safe access to cells
Definition:
vtkGenericCell.h:36
vtkClosestPointStrategy::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
Generated on Thu Jun 25 2020 08:30:30 for VTK by
1.8.17