VTK  9.0.1
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 
47 class vtkCell;
48 class vtkGenericCell;
49 class vtkPointSet;
50 
51 class VTKCOMMONDATAMODEL_EXPORT vtkFindCellStrategy : public vtkObject
52 {
53 public:
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 
77 protected:
79  ~vtkFindCellStrategy() override;
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 
86 private:
88  void operator=(const vtkFindCellStrategy&) = delete;
89 };
90 
91 #endif
abstract base class for most VTK objects
Definition: vtkObject.h:62
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
record modification and/or execution time
Definition: vtkTimeStamp.h:32
abstract class for specifying dataset behavior
Definition: vtkPointSet.h:62
int vtkIdType
Definition: vtkType.h:338
provides thread-safe access to cells
helper class to manage the vtkPointSet::FindCell() METHOD
abstract class to specify cell behavior
Definition: vtkCell.h:56
a simple class to control print indentation
Definition: vtkIndent.h:33