VTK  9.1.0
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=========================================================================*/
29#ifndef vtkImageConnector_h
30#define vtkImageConnector_h
31
32#include "vtkImagingMorphologicalModule.h" // For export macro
33#include "vtkObject.h"
34
35class vtkImageData;
36
37//
38// Special classes for manipulating data
39//
40// For the breadth first search
42{ //;prevent man page generation
43public:
45 void* Pointer;
46 int Index[3];
48};
49
50class VTKIMAGINGMORPHOLOGICAL_EXPORT vtkImageConnector : public vtkObject
51{
52public:
54
56 void PrintSelf(ostream& os, vtkIndent indent) override;
57
58 vtkImageConnectorSeed* NewSeed(int index[3], void* ptr);
61
63
65
68 vtkSetMacro(ConnectedValue, unsigned char);
69 vtkGetMacro(ConnectedValue, unsigned char);
70 vtkSetMacro(UnconnectedValue, unsigned char);
71 vtkGetMacro(UnconnectedValue, unsigned char);
73
79 void MarkData(vtkImageData* data, int dimensionality, int ext[6]);
80
81protected:
84
85 unsigned char ConnectedValue;
86 unsigned char UnconnectedValue;
87
89
92
93private:
94 vtkImageConnector(const vtkImageConnector&) = delete;
95 void operator=(const vtkImageConnector&) = delete;
96};
97
98#endif
vtkImageConnectorSeed * Next
static vtkImageConnectorSeed * New()
Create a binary image of a sphere.
void AddSeed(vtkImageConnectorSeed *seed)
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void MarkData(vtkImageData *data, int dimensionality, int ext[6])
Input a data of 0's and "UnconnectedValue"s.
unsigned char UnconnectedValue
void AddSeedToEnd(vtkImageConnectorSeed *seed)
static vtkImageConnector * New()
vtkImageConnectorSeed * Seeds
unsigned char ConnectedValue
vtkImageConnectorSeed * LastSeed
vtkImageConnectorSeed * PopSeed()
vtkImageConnectorSeed * NewSeed(int index[3], void *ptr)
~vtkImageConnector() override
topologically and geometrically regular array of data
Definition: vtkImageData.h:157
a simple class to control print indentation
Definition: vtkIndent.h:113
abstract base class for most VTK objects
Definition: vtkObject.h:82