vtkHybridProbeFilter.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Kitware Inc.
2 // SPDX-License-Identifier: BSD-3-Clause
19 #ifndef vtkHybridProbeFilter_h
20 #define vtkHybridProbeFilter_h
21 
22 #include "vtkDataObjectAlgorithm.h"
23 #include "vtkPVVTKExtensionsFiltersGeneralModule.h" //needed for exports
24 
26 
28 {
29 public:
30  static vtkHybridProbeFilter* New();
32  void PrintSelf(ostream& os, vtkIndent indent) override;
33 
34  enum ModeType
35  {
37  EXTRACT_CELL_CONTAINING_LOCATION
38  };
39 
40  vtkSetClampMacro(Mode, int, INTERPOLATE_AT_LOCATION, EXTRACT_CELL_CONTAINING_LOCATION);
41  vtkGetMacro(Mode, int);
42  void SetModeToInterpolateAtLocation() { this->SetMode(INTERPOLATE_AT_LOCATION); }
43  void SetModeToExtractCellContainingLocation() { this->SetMode(EXTRACT_CELL_CONTAINING_LOCATION); }
44 
46 
49  vtkSetVector3Macro(Location, double);
50  vtkGetVector3Macro(Location, double);
52 
53 protected:
55  ~vtkHybridProbeFilter() override;
56 
59  int FillOutputPortInformation(int port, vtkInformation* info) override;
60 
61  bool InterpolateAtLocation(vtkDataObject* input, vtkUnstructuredGrid* output);
62  bool ExtractCellContainingLocation(vtkDataObject* input, vtkUnstructuredGrid* output);
63 
64  double Location[3];
65  int Mode;
66 
67 private:
69  void operator=(const vtkHybridProbeFilter&) = delete;
70 };
71 
72 #endif
static vtkDataObjectAlgorithm * New()
info
vtkHybridProbeFilter is a combination of vtkExtractSelection at a specific location and vtkProbeFilte...
void PrintSelf(ostream &os, vtkIndent indent) VTK_OVERRIDE
virtual int FillInputPortInformation(int port, vtkInformation *info)
#define VTKPVVTKEXTENSIONSFILTERSGENERAL_EXPORT
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
port
void operator=(const vtkObjectBase &)
void SetModeToExtractCellContainingLocation()
virtual int FillOutputPortInformation(int port, vtkInformation *info)