VTK
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 :
38 {
39 public:
40  static vtkImageToPoints *New();
42  void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
43 
45 
48  void SetStencilConnection(vtkAlgorithmOutput *port);
49  vtkAlgorithmOutput *GetStencilConnection();
50  void SetStencilData(vtkImageStencilData *stencil);
52 
54 
59  vtkSetMacro(OutputPointsPrecision, int);
60  vtkGetMacro(OutputPointsPrecision, int);
62 
63 protected:
65  ~vtkImageToPoints() VTK_OVERRIDE;
66 
67  int RequestInformation(vtkInformation *request,
68  vtkInformationVector **inInfo,
69  vtkInformationVector *outInfo) VTK_OVERRIDE;
70 
71  int RequestUpdateExtent(vtkInformation *request,
72  vtkInformationVector **inInfo,
73  vtkInformationVector *outInfo) VTK_OVERRIDE;
74 
75  int RequestData(vtkInformation *request,
76  vtkInformationVector **inInfo,
77  vtkInformationVector *outInfo) VTK_OVERRIDE;
78 
79  int FillInputPortInformation(int port, vtkInformation *info) VTK_OVERRIDE;
80  int FillOutputPortInformation(int port, vtkInformation *info) VTK_OVERRIDE;
81 
82  int OutputPointsPrecision;
83 
84 private:
85  vtkImageToPoints(const vtkImageToPoints&) VTK_DELETE_FUNCTION;
86  void operator=(const vtkImageToPoints&) VTK_DELETE_FUNCTION;
87 };
88 
89 #endif
Extract all image voxels as points.
Store vtkAlgorithm input/output information.
Proxy object to connect input/output ports.
static vtkPolyDataAlgorithm * New()
Superclass for algorithms that produce only polydata as output.
a simple class to control print indentation
Definition: vtkIndent.h:33
efficient description of an image stencil
vtkSetMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
Store zero or more vtkInformation instances.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.