VTK  9.3.1
vtkImageSkeleton2D.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
21 #ifndef vtkImageSkeleton2D_h
22 #define vtkImageSkeleton2D_h
23 
24 #include "vtkImageIterateFilter.h"
25 #include "vtkImagingMorphologicalModule.h" // For export macro
26 
27 VTK_ABI_NAMESPACE_BEGIN
28 class VTKIMAGINGMORPHOLOGICAL_EXPORT vtkImageSkeleton2D : public vtkImageIterateFilter
29 {
30 public:
31  static vtkImageSkeleton2D* New();
33  void PrintSelf(ostream& os, vtkIndent indent) override;
34 
36 
39  vtkSetMacro(Prune, vtkTypeBool);
40  vtkGetMacro(Prune, vtkTypeBool);
41  vtkBooleanMacro(Prune, vtkTypeBool);
43 
47  void SetNumberOfIterations(int num) override;
48 
49 protected:
51  ~vtkImageSkeleton2D() override = default;
52 
54 
56  void ThreadedRequestData(vtkInformation* request, vtkInformationVector** inputVector,
57  vtkInformationVector* outputVector, vtkImageData*** inDataV, vtkImageData** outDataV,
58  int outExt[6], int id) override;
59 
60 private:
61  vtkImageSkeleton2D(const vtkImageSkeleton2D&) = delete;
62  void operator=(const vtkImageSkeleton2D&) = delete;
63 };
64 
65 VTK_ABI_NAMESPACE_END
66 #endif
Store vtkAlgorithm input/output information.
virtual void SetNumberOfIterations(int num)
int vtkTypeBool
Definition: vtkABI.h:64
a simple class to control print indentation
Definition: vtkIndent.h:28
Skeleton of 2D images.
topologically and geometrically regular array of data
Definition: vtkImageData.h:42
virtual void ThreadedRequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector, vtkImageData ***inData, vtkImageData **outData, int extent[6], int threadId)
If the subclass does not define an Execute method, then the task will be broken up, multiple threads will be spawned, and each thread will call this method.
Multiple executes per update.
Store zero or more vtkInformation instances.
static vtkAlgorithm * New()
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
virtual int IterativeRequestUpdateExtent(vtkInformation *in, vtkInformation *out)