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 "vtkObject.h"
32 
33 class vtkImageData;
34 
35 //
36 // Special classes for manipulating data
37 //
38 //BTX - begin tcl exclude
39 //
40 // For the breadth first search
41 class vtkImageConnectorSeed { //;prevent man page generation
42 public:
44  void *Pointer;
45  int Index[3];
47 };
48 //ETX - end tcl exclude
49 //
50 
51 
53 {
54 public:
55  static vtkImageConnector *New();
56 
58  void PrintSelf(ostream& os, vtkIndent indent);
59 
60  //BTX
61  vtkImageConnectorSeed *NewSeed(int index[3], void *ptr);
62  void AddSeed(vtkImageConnectorSeed *seed);
63  void AddSeedToEnd(vtkImageConnectorSeed *seed);
64  //ETX
65  void RemoveAllSeeds();
66 
68 
69  vtkSetMacro(ConnectedValue, unsigned char);
70  vtkGetMacro(ConnectedValue, unsigned char);
71  vtkSetMacro(UnconnectedValue, unsigned char);
72  vtkGetMacro(UnconnectedValue, unsigned char);
74 
75 
79  void MarkData(vtkImageData *data, int dimensionality, int ext[6]);
80 
81 
82 protected:
85 
86  unsigned char ConnectedValue;
87  unsigned char UnconnectedValue;
88 
89  vtkImageConnectorSeed *PopSeed();
90 
93 private:
94  vtkImageConnector(const vtkImageConnector&); // Not implemented.
95  void operator=(const vtkImageConnector&); // Not implemented.
96 };
97 
98 
99 
100 #endif
101 
102