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
41#ifndef vtkMaskPointsFilter_h
42#define vtkMaskPointsFilter_h
43
44#include "vtkFiltersPointsModule.h" // For export macro
45#include "vtkPointCloudFilter.h"
46
47VTK_ABI_NAMESPACE_BEGIN
48class vtkImageData;
49class vtkPointSet;
50
51class VTKFILTERSPOINTS_EXPORT vtkMaskPointsFilter : public vtkPointCloudFilter
52{
53public:
55
61 void PrintSelf(ostream& os, vtkIndent indent) override;
63
65
71
76
78
84 vtkSetMacro(EmptyValue, unsigned char);
85 vtkGetMacro(EmptyValue, unsigned char);
87
88protected:
91
92 unsigned char EmptyValue; // what value indicates a voxel is empty
93
94 // All derived classes must implement this method. Note that a side effect of
95 // the class is to populate the PointMap. Zero is returned if there is a failure.
96 int FilterPoints(vtkPointSet* input) override;
97
98 // Support second input
99 int FillInputPortInformation(int port, vtkInformation* info) override;
103 vtkImageData* Mask; // just a placeholder during execution
104
105private:
107 void operator=(const vtkMaskPointsFilter&) = delete;
108};
109
110VTK_ABI_NAMESPACE_END
111#endif
Proxy object to connect input/output ports.
general representation of visualization data
topologically and geometrically regular array of data
a simple class to control print indentation
Definition vtkIndent.h:29
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
extract points within an image/volume mask
vtkDataObject * GetMask()
Specify the masking image.
int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
static vtkMaskPointsFilter * New()
Standard methods for instantiating, obtaining type information, and printing information.
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.
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
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:59
boost::graph_traits< vtkGraph * >::vertex_descriptor source(boost::graph_traits< vtkGraph * >::edge_descriptor e, vtkGraph *)