VTK  9.0.1
vtkImageOpenClose3D.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkImageOpenClose3D.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 =========================================================================*/
33 #ifndef vtkImageOpenClose3D_h
34 #define vtkImageOpenClose3D_h
35 
36 #include "vtkImageAlgorithm.h"
37 #include "vtkImagingMorphologicalModule.h" // For export macro
38 
40 
41 class VTKIMAGINGMORPHOLOGICAL_EXPORT vtkImageOpenClose3D : public vtkImageAlgorithm
42 {
43 public:
45 
48  static vtkImageOpenClose3D* New();
50  void PrintSelf(ostream& os, vtkIndent indent) override;
52 
57  vtkMTimeType GetMTime() override;
58 
60 
63  void DebugOn() override;
64  void DebugOff() override;
66 
70  void Modified() override;
71 
72  // Forward Source messages to filter1
73 
77  void SetKernelSize(int size0, int size1, int size2);
78 
80 
84  void SetOpenValue(double value);
85  double GetOpenValue();
87 
89 
93  void SetCloseValue(double value);
94  double GetCloseValue();
96 
98 
101  vtkGetObjectMacro(Filter0, vtkImageDilateErode3D);
102  vtkGetObjectMacro(Filter1, vtkImageDilateErode3D);
104 
110 
114  int ComputePipelineMTime(vtkInformation* request, vtkInformationVector** inInfoVec,
115  vtkInformationVector* outInfoVec, int requestFromOutputPort, vtkMTimeType* mtime) override;
116 
117 protected:
119  ~vtkImageOpenClose3D() override;
120 
123 
124  void ReportReferences(vtkGarbageCollector*) override;
125 
126 private:
127  vtkImageOpenClose3D(const vtkImageOpenClose3D&) = delete;
128  void operator=(const vtkImageOpenClose3D&) = delete;
129 };
130 
131 #endif
vtkX3D::value
@ value
Definition: vtkX3D.h:226
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:35
vtkObject::DebugOn
virtual void DebugOn()
Turn debugging output on.
vtkObject::Modified
virtual void Modified()
Update the modification time for this object.
vtkImageAlgorithm.h
vtkImageAlgorithm
Generic algorithm superclass for image algs.
Definition: vtkImageAlgorithm.h:37
vtkObject::GetMTime
virtual vtkMTimeType GetMTime()
Return this object's modified time.
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:33
vtkImageOpenClose3D::Filter1
vtkImageDilateErode3D * Filter1
Definition: vtkImageOpenClose3D.h:122
vtkObject::DebugOff
virtual void DebugOff()
Turn debugging output off.
vtkGarbageCollector
Detect and break reference loops.
Definition: vtkGarbageCollector.h:94
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:73
vtkImageAlgorithm::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkAlgorithm::New
static vtkAlgorithm * New()
vtkAlgorithm::ReportReferences
void ReportReferences(vtkGarbageCollector *) override
vtkImageAlgorithm::ProcessRequest
vtkTypeBool ProcessRequest(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
Process a request from the executive.
vtkAlgorithm::ComputePipelineMTime
virtual int ComputePipelineMTime(vtkInformation *request, vtkInformationVector **inInfoVec, vtkInformationVector *outInfoVec, int requestFromOutputPort, vtkMTimeType *mtime)
A special version of ProcessRequest meant specifically for the pipeline modified time request.
vtkImageDilateErode3D
Dilates one value and erodes another.
Definition: vtkImageDilateErode3D.h:34
vtkImageOpenClose3D
Will perform opening or closing.
Definition: vtkImageOpenClose3D.h:41
vtkImageOpenClose3D::Filter0
vtkImageDilateErode3D * Filter0
Definition: vtkImageOpenClose3D.h:121
vtkTypeBool
int vtkTypeBool
Definition: vtkABI.h:69
vtkMTimeType
vtkTypeUInt32 vtkMTimeType
Definition: vtkType.h:293