VTK
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 =========================================================================*/
34 #ifndef vtkImageSeedConnectivity_h
35 #define vtkImageSeedConnectivity_h
36 
37 #include "vtkImagingMorphologicalModule.h" // For export macro
38 #include "vtkImageAlgorithm.h"
39 
40 class vtkImageConnector;
42 
43 class VTKIMAGINGMORPHOLOGICAL_EXPORT vtkImageSeedConnectivity : public vtkImageAlgorithm
44 {
45 public:
48  void PrintSelf(ostream& os, vtkIndent indent);
49 
51 
55  void AddSeed(int num, int *index);
56  void AddSeed(int i0, int i1, int i2);
57  void AddSeed(int i0, int i1);
59 
61 
64  vtkSetMacro(InputConnectValue, unsigned char);
65  vtkGetMacro(InputConnectValue, unsigned char);
67 
69 
72  vtkSetMacro(OutputConnectedValue, unsigned char);
73  vtkGetMacro(OutputConnectedValue, unsigned char);
75 
77 
80  vtkSetMacro(OutputUnconnectedValue, unsigned char);
81  vtkGetMacro(OutputUnconnectedValue, unsigned char);
83 
85 
88  vtkGetObjectMacro(Connector,vtkImageConnector);
90 
92 
95  vtkSetMacro(Dimensionality,int);
96  vtkGetMacro(Dimensionality,int);
98 
99 protected:
102 
103  unsigned char InputConnectValue;
104  unsigned char OutputConnectedValue;
105  unsigned char OutputUnconnectedValue;
109 
112 
113 private:
114  vtkImageSeedConnectivity(const vtkImageSeedConnectivity&) VTK_DELETE_FUNCTION;
115  void operator=(const vtkImageSeedConnectivity&) VTK_DELETE_FUNCTION;
116 };
117 
118 
119 
120 #endif
121 
122 
123 
vtkImageSeedConnectivity::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
vtkImageSeedConnectivity::New
static vtkImageSeedConnectivity * New()
vtkImageSeedConnectivity::AddSeed
void AddSeed(int num, int *index)
vtkImageSeedConnectivity::RequestData
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called in response to a REQUEST_DATA request from the executive.
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:42
vtkImageSeedConnectivity::OutputUnconnectedValue
unsigned char OutputUnconnectedValue
Definition: vtkImageSeedConnectivity.h:105
vtkImageAlgorithm.h
vtkImageSeedConnectivity::RequestUpdateExtent
virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
Subclasses can reimplement this method to translate the update extent requests from each output port ...
vtkImageSeedConnectivity::AddSeed
void AddSeed(int i0, int i1)
vtkImageAlgorithm
Generic algorithm superclass for image algs.
Definition: vtkImageAlgorithm.h:41
vtkImageConnector
Create a binary image of a sphere.
Definition: vtkImageConnector.h:51
vtkImageSeedConnectivity::OutputConnectedValue
unsigned char OutputConnectedValue
Definition: vtkImageSeedConnectivity.h:104
vtkImageSeedConnectivity::RemoveAllSeeds
void RemoveAllSeeds()
Methods for manipulating the seed pixels.
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:40
vtkImageSeedConnectivity::Connector
vtkImageConnector * Connector
Definition: vtkImageSeedConnectivity.h:107
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:87
vtkSetMacro
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkImageSeedConnectivity::~vtkImageSeedConnectivity
~vtkImageSeedConnectivity()
vtkImageSeedConnectivity::Dimensionality
int Dimensionality
Definition: vtkImageSeedConnectivity.h:108
vtkImageSeedConnectivity::vtkImageSeedConnectivity
vtkImageSeedConnectivity()
vtkImageSeedConnectivity
SeedConnectivity with user defined seeds.
Definition: vtkImageSeedConnectivity.h:44
vtkImageSeedConnectivity::AddSeed
void AddSeed(int i0, int i1, int i2)
vtkImageSeedConnectivity::InputConnectValue
unsigned char InputConnectValue
Definition: vtkImageSeedConnectivity.h:103
vtkX3D::index
@ index
Definition: vtkX3D.h:246
vtkImageSeedConnectivity::Seeds
vtkImageConnectorSeed * Seeds
Definition: vtkImageSeedConnectivity.h:106
vtkImageConnectorSeed
Definition: vtkImageConnector.h:41