VTK  9.3.0
vtkPointSetToLabelHierarchy.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2// SPDX-FileCopyrightText: Copyright 2008 Sandia Corporation
3// SPDX-License-Identifier: LicenseRef-BSD-3-Clause-Sandia-USGov
29#ifndef vtkPointSetToLabelHierarchy_h
30#define vtkPointSetToLabelHierarchy_h
31
33#include "vtkRenderingLabelModule.h" // For export macro
34
35VTK_ABI_NAMESPACE_BEGIN
36class vtkTextProperty;
37
38class VTKRENDERINGLABEL_EXPORT vtkPointSetToLabelHierarchy : public vtkLabelHierarchyAlgorithm
39{
40public:
43 void PrintSelf(ostream& os, vtkIndent indent) override;
44
46
49 vtkSetMacro(TargetLabelCount, int);
50 vtkGetMacro(TargetLabelCount, int);
52
54
57 vtkSetMacro(MaximumDepth, int);
58 vtkGetMacro(MaximumDepth, int);
60
62
65 virtual void SetLabelArrayName(const char* name);
66 virtual const char* GetLabelArrayName();
68
70
73 virtual void SetSizeArrayName(const char* name);
74 virtual const char* GetSizeArrayName();
76
78
81 virtual void SetPriorityArrayName(const char* name);
82 virtual const char* GetPriorityArrayName();
84
86
89 virtual void SetIconIndexArrayName(const char* name);
90 virtual const char* GetIconIndexArrayName();
92
94
97 virtual void SetOrientationArrayName(const char* name);
98 virtual const char* GetOrientationArrayName();
100
102
105 virtual void SetBoundedSizeArrayName(const char* name);
106 virtual const char* GetBoundedSizeArrayName();
108
110
113 virtual void SetTextProperty(vtkTextProperty* tprop);
114 vtkGetObjectMacro(TextProperty, vtkTextProperty);
116
117protected:
120
121 int FillInputPortInformation(int port, vtkInformation* info) override;
122
124 vtkInformationVector* outputVector) override;
125
129
130private:
132 void operator=(const vtkPointSetToLabelHierarchy&) = delete;
133};
134
135VTK_ABI_NAMESPACE_END
136#endif // vtkPointSetToLabelHierarchy_h
a simple class to control print indentation
Definition vtkIndent.h:38
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
Superclass for algorithms that produce only label hierarchies as output.
build a label hierarchy for a graph or point set.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
virtual void SetPriorityArrayName(const char *name)
Set/get the priority array name.
virtual const char * GetIconIndexArrayName()
Set/get the icon index array name.
virtual void SetOrientationArrayName(const char *name)
Set/get the text orientation array name.
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
virtual const char * GetBoundedSizeArrayName()
Set/get the maximum text width (in world coordinates) array name.
~vtkPointSetToLabelHierarchy() override
virtual void SetSizeArrayName(const char *name)
Set/get the priority array name.
virtual void SetBoundedSizeArrayName(const char *name)
Set/get the maximum text width (in world coordinates) array name.
virtual const char * GetSizeArrayName()
Set/get the priority array name.
static vtkPointSetToLabelHierarchy * New()
virtual void SetLabelArrayName(const char *name)
Set/get the label array name.
virtual const char * GetPriorityArrayName()
Set/get the priority array name.
virtual void SetTextProperty(vtkTextProperty *tprop)
Set/get the text property assigned to the hierarchy.
virtual void SetIconIndexArrayName(const char *name)
Set/get the icon index array name.
virtual const char * GetOrientationArrayName()
Set/get the text orientation array name.
virtual const char * GetLabelArrayName()
Set/get the label array name.
int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector) override
This is called by the superclass.
represent text properties.