VTK  9.2.6
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=========================================================================*/
72#ifndef vtkMaskPointsFilter_h
73#define vtkMaskPointsFilter_h
74
75#include "vtkFiltersPointsModule.h" // For export macro
76#include "vtkPointCloudFilter.h"
77
78class vtkImageData;
79class vtkPointSet;
80
81class VTKFILTERSPOINTS_EXPORT vtkMaskPointsFilter : public vtkPointCloudFilter
82{
83public:
85
91 void PrintSelf(ostream& os, vtkIndent indent) override;
93
95
101
106
108
114 vtkSetMacro(EmptyValue, unsigned char);
115 vtkGetMacro(EmptyValue, unsigned char);
117
118protected:
121
122 unsigned char EmptyValue; // what value indicates a voxel is empty
123
124 // All derived classes must implement this method. Note that a side effect of
125 // the class is to populate the PointMap. Zero is returned if there is a failure.
126 int FilterPoints(vtkPointSet* input) override;
127
128 // Support second input
133 vtkImageData* Mask; // just a placeholder during execution
134
135private:
137 void operator=(const vtkMaskPointsFilter&) = delete;
138};
139
140#endif
Proxy object to connect input/output ports.
general representation of visualization data
topologically and geometrically regular array of data
Definition: vtkImageData.h:163
a simple class to control print indentation
Definition: vtkIndent.h:119
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:109
@ 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 *)