VTK
vtkImageConnector.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkImageConnector.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 =========================================================================*/
28 #ifndef vtkImageConnector_h
29 #define vtkImageConnector_h
30 
31 #include "vtkImagingMorphologicalModule.h" // For export macro
32 #include "vtkObject.h"
33 
34 class vtkImageData;
35 
36 //
37 // Special classes for manipulating data
38 //
39 //BTX - begin tcl exclude
40 //
41 // For the breadth first search
42 class vtkImageConnectorSeed { //;prevent man page generation
43 public:
45  void *Pointer;
46  int Index[3];
48 };
49 //ETX - end tcl exclude
50 //
51 
52 
54 {
55 public:
56  static vtkImageConnector *New();
57 
59  void PrintSelf(ostream& os, vtkIndent indent);
60 
61  //BTX
62  vtkImageConnectorSeed *NewSeed(int index[3], void *ptr);
63  void AddSeed(vtkImageConnectorSeed *seed);
64  void AddSeedToEnd(vtkImageConnectorSeed *seed);
65  //ETX
66  void RemoveAllSeeds();
67 
69 
70  vtkSetMacro(ConnectedValue, unsigned char);
71  vtkGetMacro(ConnectedValue, unsigned char);
72  vtkSetMacro(UnconnectedValue, unsigned char);
73  vtkGetMacro(UnconnectedValue, unsigned char);
75 
76 
80  void MarkData(vtkImageData *data, int dimensionality, int ext[6]);
81 
82 
83 protected:
86 
87  unsigned char ConnectedValue;
88  unsigned char UnconnectedValue;
89 
90  vtkImageConnectorSeed *PopSeed();
91 
94 private:
95  vtkImageConnector(const vtkImageConnector&); // Not implemented.
96  void operator=(const vtkImageConnector&); // Not implemented.
97 };
98 
99 
100 
101 #endif
102 
103 
Create a binary image of a sphere.
abstract base class for most VTK objects
Definition: vtkObject.h:61
#define VTKIMAGINGMORPHOLOGICAL_EXPORT
unsigned char ConnectedValue
static vtkImageConnectorSeed * New()
virtual void PrintSelf(ostream &os, vtkIndent indent)
a simple class to control print indentation
Definition: vtkIndent.h:38
topologically and geometrically regular array of data
Definition: vtkImageData.h:44
vtkImageConnectorSeed * LastSeed
vtkImageConnectorSeed * Next
unsigned char UnconnectedValue
vtkImageConnectorSeed * Seeds
static vtkObject * New()