VTK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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 =========================================================================*/
33 #ifndef __vtkImageSeedConnectivity_h
34 #define __vtkImageSeedConnectivity_h
35 
36 #include "vtkImagingMorphologicalModule.h" // For export macro
37 #include "vtkImageAlgorithm.h"
38 
39 class vtkImageConnector;
41 
43 {
44 public:
45  static vtkImageSeedConnectivity *New();
47  void PrintSelf(ostream& os, vtkIndent indent);
48 
50 
51  void RemoveAllSeeds();
52  void AddSeed(int num, int *index);
53  void AddSeed(int i0, int i1, int i2);
54  void AddSeed(int i0, int i1);
56 
58 
59  vtkSetMacro(InputConnectValue, int);
60  vtkGetMacro(InputConnectValue, int);
62 
64 
65  vtkSetMacro(OutputConnectedValue, int);
66  vtkGetMacro(OutputConnectedValue, int);
68 
70 
71  vtkSetMacro(OutputUnconnectedValue, int);
72  vtkGetMacro(OutputUnconnectedValue, int);
74 
76 
79 
81 
82  vtkSetMacro(Dimensionality,int);
83  vtkGetMacro(Dimensionality,int);
85 
86 protected:
89 
90  unsigned char InputConnectValue;
91  unsigned char OutputConnectedValue;
92  unsigned char OutputUnconnectedValue;
96 
99 
100 private:
101  vtkImageSeedConnectivity(const vtkImageSeedConnectivity&); // Not implemented.
102  void operator=(const vtkImageSeedConnectivity&); // Not implemented.
103 };
104 
105 
106 
107 #endif
108 
109 
110 
Create a binary image of a sphere.
vtkImageConnectorSeed * Seeds
GLuint index
Definition: vtkgl.h:11983
Store vtkAlgorithm input/output information.
#define VTKIMAGINGMORPHOLOGICAL_EXPORT
#define vtkGetMacro(name, type)
Definition: vtkSetGet.h:83
#define vtkTypeMacro(thisClass, superclass)
Definition: vtkSetGet.h:619
GLuint GLuint num
Definition: vtkgl.h:16907
virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
a simple class to control print indentation
Definition: vtkIndent.h:38
#define vtkGetObjectMacro(name, type)
Definition: vtkSetGet.h:222
SeedConnectivity with user defined seeds.
Generic algorithm superclass for image algs.
Store zero or more vtkInformation instances.
void PrintSelf(ostream &os, vtkIndent indent)
static vtkAlgorithm * New()
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
#define vtkSetMacro(name, type)
Definition: vtkSetGet.h:69