VTK  9.3.20240419
vtkImageToPoints.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2 // SPDX-License-Identifier: BSD-3-Clause
19 #ifndef vtkImageToPoints_h
20 #define vtkImageToPoints_h
21 
22 #include "vtkImagingHybridModule.h" // For export macro
23 #include "vtkPolyDataAlgorithm.h"
24 
25 VTK_ABI_NAMESPACE_BEGIN
27 
28 class VTKIMAGINGHYBRID_EXPORT vtkImageToPoints : public vtkPolyDataAlgorithm
29 {
30 public:
31  static vtkImageToPoints* New();
33  void PrintSelf(ostream& os, vtkIndent indent) override;
34 
36 
43 
45 
50  vtkSetMacro(OutputPointsPrecision, int);
51  vtkGetMacro(OutputPointsPrecision, int);
53 
54 protected:
56  ~vtkImageToPoints() override;
57 
59  vtkInformation* request, vtkInformationVector** inInfo, vtkInformationVector* outInfo) override;
60 
62  vtkInformation* request, vtkInformationVector** inInfo, vtkInformationVector* outInfo) override;
63 
65  vtkInformation* request, vtkInformationVector** inInfo, vtkInformationVector* outInfo) override;
66 
69 
71 
72 private:
73  vtkImageToPoints(const vtkImageToPoints&) = delete;
74  void operator=(const vtkImageToPoints&) = delete;
75 };
76 
77 VTK_ABI_NAMESPACE_END
78 #endif
Proxy object to connect input/output ports.
efficient description of an image stencil
Extract all image voxels as points.
int RequestUpdateExtent(vtkInformation *request, vtkInformationVector **inInfo, vtkInformationVector *outInfo) override
This is called by the superclass.
vtkAlgorithmOutput * GetStencilConnection()
Only extract the points that lie within the stencil.
void SetStencilData(vtkImageStencilData *stencil)
Only extract the points that lie within the stencil.
int RequestData(vtkInformation *request, vtkInformationVector **inInfo, vtkInformationVector *outInfo) override
This is called by the superclass.
int RequestInformation(vtkInformation *request, vtkInformationVector **inInfo, vtkInformationVector *outInfo) override
void SetStencilConnection(vtkAlgorithmOutput *port)
Only extract the points that lie within the stencil.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
~vtkImageToPoints() override
int FillOutputPortInformation(int port, vtkInformation *info) override
Fill the output port information objects for this algorithm.
static vtkImageToPoints * New()
a simple class to control print indentation
Definition: vtkIndent.h:108
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
Superclass for algorithms that produce only polydata as output.
@ info
Definition: vtkX3D.h:376
@ port
Definition: vtkX3D.h:447