VTK
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 =========================================================================*/
53 #ifndef vtkMaskPointsFilter_h
54 #define vtkMaskPointsFilter_h
55 
56 #include "vtkFiltersPointsModule.h" // For export macro
57 #include "vtkPointCloudFilter.h"
58 
59 class vtkImageData;
60 class vtkPointSet;
61 
62 
63 class VTKFILTERSPOINTS_EXPORT vtkMaskPointsFilter : public vtkPointCloudFilter
64 {
65 public:
67 
73  void PrintSelf(ostream& os, vtkIndent indent) override;
75 
77 
83 
88 
90 
96  vtkSetMacro(EmptyValue,unsigned char);
97  vtkGetMacro(EmptyValue,unsigned char);
99 
100 protected:
103 
104  unsigned char EmptyValue; // what value indicates a voxel is empty
105 
106  // All derived classes must implement this method. Note that a side effect of
107  // the class is to populate the PointMap. Zero is returned if there is a failure.
108  int FilterPoints(vtkPointSet *input) override;
109 
110  // Support second input
113  vtkInformationVector *) override;
115  vtkInformationVector *) override;
117  vtkInformationVector *) override;
118  vtkImageData *Mask; //just a placeholder during execution
119 
120 private:
121  vtkMaskPointsFilter(const vtkMaskPointsFilter&) = delete;
122  void operator=(const vtkMaskPointsFilter&) = delete;
123 
124 };
125 
126 #endif
vtkPointCloudFilter.h
vtkMaskPointsFilter::EmptyValue
unsigned char EmptyValue
Definition: vtkMaskPointsFilter.h:104
vtkPointCloudFilter
abstract class for filtering a point cloud
Definition: vtkPointCloudFilter.h:67
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:42
vtkMaskPointsFilter::Mask
vtkImageData * Mask
Definition: vtkMaskPointsFilter.h:118
vtkMaskPointsFilter::vtkMaskPointsFilter
vtkMaskPointsFilter()
vtkMaskPointsFilter::FilterPoints
int FilterPoints(vtkPointSet *input) override
vtkMaskPointsFilter
extract points within an image/volume mask
Definition: vtkMaskPointsFilter.h:64
vtkMaskPointsFilter::RequestData
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
vtkMaskPointsFilter::SetMaskConnection
void SetMaskConnection(vtkAlgorithmOutput *algOutput)
Specify the masking image.
vtkMaskPointsFilter::SetMaskData
void SetMaskData(vtkDataObject *source)
Specify the masking image.
source
boost::graph_traits< vtkGraph * >::vertex_descriptor source(boost::graph_traits< vtkGraph * >::edge_descriptor e, vtkGraph *)
Definition: vtkBoostGraphAdapter.h:825
vtkX3D::port
@ port
Definition: vtkX3D.h:447
vtkMaskPointsFilter::RequestInformation
int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
vtkMaskPointsFilter::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkImageData
topologically and geometrically regular array of data
Definition: vtkImageData.h:46
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:40
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:87
vtkX3D::info
@ info
Definition: vtkX3D.h:376
vtkMaskPointsFilter::~vtkMaskPointsFilter
~vtkMaskPointsFilter() override
vtkAlgorithmOutput
Proxy object to connect input/output ports.
Definition: vtkAlgorithmOutput.h:40
vtkPointSet
abstract class for specifying dataset behavior
Definition: vtkPointSet.h:43
vtkMaskPointsFilter::FillInputPortInformation
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
vtkMaskPointsFilter::RequestUpdateExtent
int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
vtkMaskPointsFilter::GetMask
vtkDataObject * GetMask()
vtkDataObject
general representation of visualization data
Definition: vtkDataObject.h:65
vtkMaskPointsFilter::New
static vtkMaskPointsFilter * New()
Standard methods for instantiating, obtaining type information, and printing information.