VTK  9.1.0
vtkFindCellStrategy.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: Visualization Toolkit
4 Module: vtkFindCellStrategy.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=========================================================================*/
41#ifndef vtkFindCellStrategy_h
42#define vtkFindCellStrategy_h
43
44#include "vtkCommonDataModelModule.h" // For export macro
45#include "vtkObject.h"
46
47class vtkCell;
48class vtkGenericCell;
49class vtkPointSet;
50
51class VTKCOMMONDATAMODEL_EXPORT vtkFindCellStrategy : public vtkObject
52{
53public:
55
59 void PrintSelf(ostream& os, vtkIndent indent) override;
61
68 virtual int Initialize(vtkPointSet* ps);
69
74 virtual vtkIdType FindCell(double x[3], vtkCell* cell, vtkGenericCell* gencell, vtkIdType cellId,
75 double tol2, int& subId, double pcoords[3], double* weights) = 0;
76
77protected:
80
81 vtkPointSet* PointSet; // vtkPointSet which this strategy is associated with
82 double Bounds[6]; // bounding box of vtkPointSet
83
84 vtkTimeStamp InitializeTime; // time at which strategy was initialized
85
86private:
88 void operator=(const vtkFindCellStrategy&) = delete;
89};
90
91#endif
abstract class to specify cell behavior
Definition: vtkCell.h:147
helper class to manage the vtkPointSet::FindCell() METHOD
void PrintSelf(ostream &os, vtkIndent indent) override
Standard methdos for type information and printing.
virtual vtkIdType FindCell(double x[3], vtkCell *cell, vtkGenericCell *gencell, vtkIdType cellId, double tol2, int &subId, double pcoords[3], double *weights)=0
Virtual method for finding a cell.
virtual int Initialize(vtkPointSet *ps)
All subclasses of this class must provide an initialize method.
~vtkFindCellStrategy() override
provides thread-safe access to cells
a simple class to control print indentation
Definition: vtkIndent.h:113
abstract base class for most VTK objects
Definition: vtkObject.h:73
concrete class for storing a set of points
Definition: vtkPointSet.h:106
record modification and/or execution time
Definition: vtkTimeStamp.h:52
int vtkIdType
Definition: vtkType.h:332