VTK  9.0.1
vtkMaskPointsFilter.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkMaskPointsFilter.h
5 
6  Copyright (c) Kitware, Inc.
7  All rights reserved.
8  See LICENSE file 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 =========================================================================*/
50 #ifndef vtkMaskPointsFilter_h
51 #define vtkMaskPointsFilter_h
52 
53 #include "vtkFiltersPointsModule.h" // For export macro
54 #include "vtkPointCloudFilter.h"
55 
56 class vtkImageData;
57 class vtkPointSet;
58 
59 class VTKFILTERSPOINTS_EXPORT vtkMaskPointsFilter : public vtkPointCloudFilter
60 {
61 public:
63 
67  static vtkMaskPointsFilter* New();
69  void PrintSelf(ostream& os, vtkIndent indent) override;
71 
73 
76  void SetMaskData(vtkDataObject* source);
77  vtkDataObject* GetMask();
79 
83  void SetMaskConnection(vtkAlgorithmOutput* algOutput);
84 
86 
92  vtkSetMacro(EmptyValue, unsigned char);
93  vtkGetMacro(EmptyValue, unsigned char);
95 
96 protected:
98  ~vtkMaskPointsFilter() override;
99 
100  unsigned char EmptyValue; // what value indicates a voxel is empty
101 
102  // All derived classes must implement this method. Note that a side effect of
103  // the class is to populate the PointMap. Zero is returned if there is a failure.
104  int FilterPoints(vtkPointSet* input) override;
105 
106  // Support second input
107  int FillInputPortInformation(int port, vtkInformation* info) override;
111  vtkImageData* Mask; // just a placeholder during execution
112 
113 private:
114  vtkMaskPointsFilter(const vtkMaskPointsFilter&) = delete;
115  void operator=(const vtkMaskPointsFilter&) = delete;
116 };
117 
118 #endif
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
Store vtkAlgorithm input/output information.
extract points within an image/volume mask
abstract class for specifying dataset behavior
Definition: vtkPointSet.h:62
virtual int FilterPoints(vtkPointSet *input)=0
boost::graph_traits< vtkGraph * >::vertex_descriptor source(boost::graph_traits< vtkGraph *>::edge_descriptor e, vtkGraph *)
Proxy object to connect input/output ports.
static vtkPolyDataAlgorithm * New()
virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called by the superclass.
a simple class to control print indentation
Definition: vtkIndent.h:33
virtual int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
topologically and geometrically regular array of data
Definition: vtkImageData.h:41
void PrintSelf(ostream &os, vtkIndent indent) override
Standard methods to obtain type information, and print information.
Store zero or more vtkInformation instances.
abstract class for filtering a point cloud
general representation of visualization data
Definition: vtkDataObject.h:59
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.