VTK  9.0.2
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 
69  void PrintSelf(ostream& os, vtkIndent indent) override;
71 
73 
79 
84 
86 
92  vtkSetMacro(EmptyValue, unsigned char);
93  vtkGetMacro(EmptyValue, unsigned char);
95 
96 protected:
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
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
Proxy object to connect input/output ports.
general representation of visualization data
Definition: vtkDataObject.h:60
topologically and geometrically regular array of data
Definition: vtkImageData.h:42
a simple class to control print indentation
Definition: vtkIndent.h:34
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
Methods invoked by print to print information about the object including superclasses.
vtkDataObject * GetMask()
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
abstract class for specifying dataset behavior
Definition: vtkPointSet.h:63
@ info
Definition: vtkX3D.h:382
@ port
Definition: vtkX3D.h:453
boost::graph_traits< vtkGraph * >::vertex_descriptor source(boost::graph_traits< vtkGraph * >::edge_descriptor e, vtkGraph *)