VTK  9.0.1
vtkImageSkeleton2D.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkImageSkeleton2D.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 =========================================================================*/
30 #ifndef vtkImageSkeleton2D_h
31 #define vtkImageSkeleton2D_h
32 
33 #include "vtkImageIterateFilter.h"
34 #include "vtkImagingMorphologicalModule.h" // For export macro
35 
36 class VTKIMAGINGMORPHOLOGICAL_EXPORT vtkImageSkeleton2D : public vtkImageIterateFilter
37 {
38 public:
39  static vtkImageSkeleton2D* New();
41  void PrintSelf(ostream& os, vtkIndent indent) override;
42 
44 
47  vtkSetMacro(Prune, vtkTypeBool);
48  vtkGetMacro(Prune, vtkTypeBool);
49  vtkBooleanMacro(Prune, vtkTypeBool);
51 
55  void SetNumberOfIterations(int num) override;
56 
57 protected:
59  ~vtkImageSkeleton2D() override {}
60 
62 
64  void ThreadedRequestData(vtkInformation* request, vtkInformationVector** inputVector,
65  vtkInformationVector* outputVector, vtkImageData*** inDataV, vtkImageData** outDataV,
66  int outExt[6], int id) override;
67 
68 private:
69  vtkImageSkeleton2D(const vtkImageSkeleton2D&) = delete;
70  void operator=(const vtkImageSkeleton2D&) = delete;
71 };
72 
73 #endif
vtkThreadedImageAlgorithm::ThreadedRequestData
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,...
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:35
vtkImageSkeleton2D::Prune
vtkTypeBool Prune
Definition: vtkImageSkeleton2D.h:61
vtkImageSkeleton2D
Skeleton of 2D images.
Definition: vtkImageSkeleton2D.h:36
vtkImageIterateFilter::SetNumberOfIterations
virtual void SetNumberOfIterations(int num)
vtkImageIterateFilter::IterativeRequestUpdateExtent
virtual int IterativeRequestUpdateExtent(vtkInformation *in, vtkInformation *out)
vtkImageIterateFilter::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkImageData
topologically and geometrically regular array of data
Definition: vtkImageData.h:41
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:33
vtkImageSkeleton2D::~vtkImageSkeleton2D
~vtkImageSkeleton2D() override
Definition: vtkImageSkeleton2D.h:59
vtkImageIterateFilter
Multiple executes per update.
Definition: vtkImageIterateFilter.h:33
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:73
vtkAlgorithm::New
static vtkAlgorithm * New()
vtkImageIterateFilter.h
vtkTypeBool
int vtkTypeBool
Definition: vtkABI.h:69