VTK  9.1.0
vtkImageSeedConnectivity.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkImageSeedConnectivity.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 =========================================================================*/
60 #ifndef vtkImageSeedConnectivity_h
61 #define vtkImageSeedConnectivity_h
62 
63 #include "vtkImageAlgorithm.h"
64 #include "vtkImagingMorphologicalModule.h" // For export macro
65 
66 class vtkImageConnector;
68 
69 class VTKIMAGINGMORPHOLOGICAL_EXPORT vtkImageSeedConnectivity : public vtkImageAlgorithm
70 {
71 public:
74  void PrintSelf(ostream& os, vtkIndent indent) override;
75 
77 
81  void AddSeed(int num, int* index);
82  void AddSeed(int i0, int i1, int i2);
83  void AddSeed(int i0, int i1);
85 
87 
90  vtkSetMacro(InputConnectValue, unsigned char);
91  vtkGetMacro(InputConnectValue, unsigned char);
93 
95 
98  vtkSetMacro(OutputConnectedValue, unsigned char);
99  vtkGetMacro(OutputConnectedValue, unsigned char);
101 
103 
106  vtkSetMacro(OutputUnconnectedValue, unsigned char);
107  vtkGetMacro(OutputUnconnectedValue, unsigned char);
109 
111 
114  vtkGetObjectMacro(Connector, vtkImageConnector);
116 
118 
121  vtkSetMacro(Dimensionality, int);
122  vtkGetMacro(Dimensionality, int);
124 
125 protected:
128 
129  unsigned char InputConnectValue;
130  unsigned char OutputConnectedValue;
131  unsigned char OutputUnconnectedValue;
135 
138 
139 private:
141  void operator=(const vtkImageSeedConnectivity&) = delete;
142 };
143 
144 #endif
vtkImageSeedConnectivity::New
static vtkImageSeedConnectivity * New()
vtkImageSeedConnectivity::AddSeed
void AddSeed(int num, int *index)
Methods for manipulating the seed pixels.
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:145
vtkImageSeedConnectivity::OutputUnconnectedValue
unsigned char OutputUnconnectedValue
Definition: vtkImageSeedConnectivity.h:131
vtkImageAlgorithm.h
vtkImageSeedConnectivity::RequestData
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called in response to a REQUEST_DATA request from the executive.
vtkImageSeedConnectivity::AddSeed
void AddSeed(int i0, int i1)
Methods for manipulating the seed pixels.
vtkImageAlgorithm
Generic algorithm superclass for image algs.
Definition: vtkImageAlgorithm.h:57
vtkImageConnector
Create a binary image of a sphere.
Definition: vtkImageConnector.h:51
vtkImageSeedConnectivity::OutputConnectedValue
unsigned char OutputConnectedValue
Definition: vtkImageSeedConnectivity.h:130
vtkImageSeedConnectivity::~vtkImageSeedConnectivity
~vtkImageSeedConnectivity() override
vtkImageSeedConnectivity::RemoveAllSeeds
void RemoveAllSeeds()
Methods for manipulating the seed pixels.
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:113
vtkImageSeedConnectivity::RequestUpdateExtent
int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
Subclasses can reimplement this method to translate the update extent requests from each output port ...
vtkImageSeedConnectivity::Connector
vtkImageConnector * Connector
Definition: vtkImageSeedConnectivity.h:133
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:183
vtkImageSeedConnectivity::Dimensionality
int Dimensionality
Definition: vtkImageSeedConnectivity.h:134
vtkImageSeedConnectivity::vtkImageSeedConnectivity
vtkImageSeedConnectivity()
vtkImageSeedConnectivity::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkImageSeedConnectivity
SeedConnectivity with user defined seeds.
Definition: vtkImageSeedConnectivity.h:70
vtkImageSeedConnectivity::AddSeed
void AddSeed(int i0, int i1, int i2)
Methods for manipulating the seed pixels.
vtkImageSeedConnectivity::InputConnectValue
unsigned char InputConnectValue
Definition: vtkImageSeedConnectivity.h:129
vtkX3D::index
@ index
Definition: vtkX3D.h:252
vtkImageSeedConnectivity::Seeds
vtkImageConnectorSeed * Seeds
Definition: vtkImageSeedConnectivity.h:132
vtkImageConnectorSeed
Definition: vtkImageConnector.h:42