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 =========================================================================*/
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 
60 class VTKFILTERSPOINTS_EXPORT vtkMaskPointsFilter : public vtkPointCloudFilter
61 {
62 public:
64 
68  static vtkMaskPointsFilter *New();
70  void PrintSelf(ostream& os, vtkIndent indent) override;
72 
74 
77  void SetMaskData(vtkDataObject *source);
78  vtkDataObject *GetMask();
80 
84  void SetMaskConnection(vtkAlgorithmOutput* algOutput);
85 
87 
93  vtkSetMacro(EmptyValue,unsigned char);
94  vtkGetMacro(EmptyValue,unsigned char);
96 
97 protected:
99  ~vtkMaskPointsFilter() override;
100 
101  unsigned char EmptyValue; // what value indicates a voxel is empty
102 
103  // All derived classes must implement this method. Note that a side effect of
104  // the class is to populate the PointMap. Zero is returned if there is a failure.
105  int FilterPoints(vtkPointSet *input) override;
106 
107  // Support second input
108  int FillInputPortInformation(int port, vtkInformation *info) override;
110  vtkInformationVector *) override;
112  vtkInformationVector *) override;
114  vtkInformationVector *) override;
115  vtkImageData *Mask; //just a placeholder during execution
116 
117 private:
118  vtkMaskPointsFilter(const vtkMaskPointsFilter&) = delete;
119  void operator=(const vtkMaskPointsFilter&) = delete;
120 
121 };
122 
123 #endif
vtkPointCloudFilter.h
vtkMaskPointsFilter::EmptyValue
unsigned char EmptyValue
Definition: vtkMaskPointsFilter.h:101
vtkPointCloudFilter
abstract class for filtering a point cloud
Definition: vtkPointCloudFilter.h:66
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:35
vtkMaskPointsFilter::Mask
vtkImageData * Mask
Definition: vtkMaskPointsFilter.h:115
vtkPolyDataAlgorithm::RequestUpdateExtent
virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called by the superclass.
vtkPointCloudFilter::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkMaskPointsFilter
extract points within an image/volume mask
Definition: vtkMaskPointsFilter.h:60
source
boost::graph_traits< vtkGraph * >::vertex_descriptor source(boost::graph_traits< vtkGraph * >::edge_descriptor e, vtkGraph *)
Definition: vtkBoostGraphAdapter.h:825
vtkX3D::port
Definition: vtkX3D.h:447
vtkImageData
topologically and geometrically regular array of data
Definition: vtkImageData.h:39
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:33
vtkPointCloudFilter::FilterPoints
virtual int FilterPoints(vtkPointSet *input)=0
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:80
vtkX3D::info
Definition: vtkX3D.h:376
vtkAlgorithmOutput
Proxy object to connect input/output ports.
Definition: vtkAlgorithmOutput.h:36
vtkPointSet
abstract class for specifying dataset behavior
Definition: vtkPointSet.h:39
vtkPointCloudFilter::FillInputPortInformation
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
vtkDataObject
general representation of visualization data
Definition: vtkDataObject.h:58
vtkPolyDataAlgorithm::New
static vtkPolyDataAlgorithm * New()
vtkPolyDataAlgorithm::RequestInformation
virtual int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
vtkPointCloudFilter::RequestData
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.