VTK  9.3.0
vtkMaskPointsFilter.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2 // SPDX-License-Identifier: BSD-3-CLAUSE
50 #ifndef vtkMaskPointsFilter_h
51 #define vtkMaskPointsFilter_h
52 
53 #include "vtkFiltersPointsModule.h" // For export macro
54 #include "vtkPointCloudFilter.h"
55 
56 VTK_ABI_NAMESPACE_BEGIN
57 class vtkImageData;
58 class vtkPointSet;
59 
60 class VTKFILTERSPOINTS_EXPORT vtkMaskPointsFilter : public vtkPointCloudFilter
61 {
62 public:
64 
70  void PrintSelf(ostream& os, vtkIndent indent) override;
72 
74 
80 
85 
87 
93  vtkSetMacro(EmptyValue, unsigned char);
94  vtkGetMacro(EmptyValue, unsigned char);
96 
97 protected:
100 
101  unsigned char EmptyValue; // what value indicates a voxel is empty
102 
103  // All derived classes must implement this method. Note that a side effect of
104  // the class is to populate the PointMap. Zero is returned if there is a failure.
105  int FilterPoints(vtkPointSet* input) override;
106 
107  // Support second input
112  vtkImageData* Mask; // just a placeholder during execution
113 
114 private:
115  vtkMaskPointsFilter(const vtkMaskPointsFilter&) = delete;
116  void operator=(const vtkMaskPointsFilter&) = delete;
117 };
118 
119 VTK_ABI_NAMESPACE_END
120 #endif
Proxy object to connect input/output ports.
general representation of visualization data
Definition: vtkDataObject.h:64
topologically and geometrically regular array of data
Definition: vtkImageData.h:52
a simple class to control print indentation
Definition: vtkIndent.h:38
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
extract points within an image/volume mask
int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
int FilterPoints(vtkPointSet *input) override
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
void PrintSelf(ostream &os, vtkIndent indent) override
Standard methods for instantiating, obtaining type information, and printing information.
vtkDataObject * GetMask()
Specify the masking image.
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
static vtkMaskPointsFilter * New()
Standard methods for instantiating, obtaining type information, and printing information.
void SetMaskConnection(vtkAlgorithmOutput *algOutput)
Specify the masking image.
~vtkMaskPointsFilter() override
int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
void SetMaskData(vtkDataObject *source)
Specify the masking image.
abstract class for filtering a point cloud
concrete class for storing a set of points
Definition: vtkPointSet.h:68
@ info
Definition: vtkX3D.h:376
@ port
Definition: vtkX3D.h:447
boost::graph_traits< vtkGraph * >::vertex_descriptor source(boost::graph_traits< vtkGraph * >::edge_descriptor e, vtkGraph *)