VTK  9.0.1
vtkImageToPoints.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkImageToPoints.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm 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 =========================================================================*/
28 #ifndef vtkImageToPoints_h
29 #define vtkImageToPoints_h
30 
31 #include "vtkImagingHybridModule.h" // For export macro
32 #include "vtkPolyDataAlgorithm.h"
33 
35 
36 class VTKIMAGINGHYBRID_EXPORT vtkImageToPoints : public vtkPolyDataAlgorithm
37 {
38 public:
39  static vtkImageToPoints* New();
41  void PrintSelf(ostream& os, vtkIndent indent) override;
42 
44 
47  void SetStencilConnection(vtkAlgorithmOutput* port);
48  vtkAlgorithmOutput* GetStencilConnection();
49  void SetStencilData(vtkImageStencilData* stencil);
51 
53 
58  vtkSetMacro(OutputPointsPrecision, int);
59  vtkGetMacro(OutputPointsPrecision, int);
61 
62 protected:
64  ~vtkImageToPoints() override;
65 
67  vtkInformation* request, vtkInformationVector** inInfo, vtkInformationVector* outInfo) override;
68 
70  vtkInformation* request, vtkInformationVector** inInfo, vtkInformationVector* outInfo) override;
71 
72  int RequestData(
73  vtkInformation* request, vtkInformationVector** inInfo, vtkInformationVector* outInfo) override;
74 
77 
79 
80 private:
81  vtkImageToPoints(const vtkImageToPoints&) = delete;
82  void operator=(const vtkImageToPoints&) = delete;
83 };
84 
85 #endif
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:35
vtkPolyDataAlgorithm::RequestUpdateExtent
virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called by the superclass.
vtkPolyDataAlgorithm::FillOutputPortInformation
int FillOutputPortInformation(int port, vtkInformation *info) override
Fill the output port information objects for this algorithm.
vtkPolyDataAlgorithm::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkImageToPoints::OutputPointsPrecision
int OutputPointsPrecision
Definition: vtkImageToPoints.h:78
vtkPolyDataAlgorithm.h
vtkX3D::port
@ port
Definition: vtkX3D.h:453
vtkPolyDataAlgorithm::RequestData
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:33
vtkPolyDataAlgorithm::FillInputPortInformation
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
vtkImageToPoints
Extract all image voxels as points.
Definition: vtkImageToPoints.h:36
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:73
vtkX3D::info
@ info
Definition: vtkX3D.h:382
vtkAlgorithmOutput
Proxy object to connect input/output ports.
Definition: vtkAlgorithmOutput.h:36
vtkImageStencilData
efficient description of an image stencil
Definition: vtkImageStencilData.h:33
vtkPolyDataAlgorithm::New
static vtkPolyDataAlgorithm * New()
vtkPolyDataAlgorithm::RequestInformation
virtual int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
vtkPolyDataAlgorithm
Superclass for algorithms that produce only polydata as output.
Definition: vtkPolyDataAlgorithm.h:41