VTK  9.4.20241014
vtkImageConnector.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2// SPDX-License-Identifier: BSD-3-Clause
17#ifndef vtkImageConnector_h
18#define vtkImageConnector_h
19
20#include "vtkImagingMorphologicalModule.h" // For export macro
21#include "vtkObject.h"
22
23VTK_ABI_NAMESPACE_BEGIN
24class vtkImageData;
25
26//
27// Special classes for manipulating data
28//
29// For the breadth first search
31{ //;prevent man page generation
32public:
34 void* Pointer;
35 int Index[3];
37};
38
39class VTKIMAGINGMORPHOLOGICAL_EXPORT vtkImageConnector : public vtkObject
40{
41public:
43
45 void PrintSelf(ostream& os, vtkIndent indent) override;
46
47 vtkImageConnectorSeed* NewSeed(int index[3], void* ptr);
50
52
54
57 vtkSetMacro(ConnectedValue, unsigned char);
58 vtkGetMacro(ConnectedValue, unsigned char);
59 vtkSetMacro(UnconnectedValue, unsigned char);
60 vtkGetMacro(UnconnectedValue, unsigned char);
62
68 void MarkData(vtkImageData* data, int dimensionality, int ext[6]);
69
70protected:
73
74 unsigned char ConnectedValue;
75 unsigned char UnconnectedValue;
76
78
81
82private:
83 vtkImageConnector(const vtkImageConnector&) = delete;
84 void operator=(const vtkImageConnector&) = delete;
85};
86
87VTK_ABI_NAMESPACE_END
88#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
a simple class to control print indentation
Definition vtkIndent.h:108
abstract base class for most VTK objects
Definition vtkObject.h:162