VTK  9.4.20250130
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
39#ifndef vtkPointSetToLabelHierarchy_h
40#define vtkPointSetToLabelHierarchy_h
41
43#include "vtkRenderingLabelModule.h" // For export macro
44
45VTK_ABI_NAMESPACE_BEGIN
46class vtkTextProperty;
47
48class VTKRENDERINGLABEL_EXPORT vtkPointSetToLabelHierarchy : public vtkLabelHierarchyAlgorithm
49{
50public:
53 void PrintSelf(ostream& os, vtkIndent indent) override;
54
56
59 vtkSetMacro(TargetLabelCount, int);
60 vtkGetMacro(TargetLabelCount, int);
62
64
67 vtkSetMacro(MaximumDepth, int);
68 vtkGetMacro(MaximumDepth, int);
70
72
75 virtual void SetLabelArrayName(const char* name);
76 virtual const char* GetLabelArrayName();
78
80
83 virtual void SetSizeArrayName(const char* name);
84 virtual const char* GetSizeArrayName();
86
88
91 virtual void SetPriorityArrayName(const char* name);
92 virtual const char* GetPriorityArrayName();
94
96
99 virtual void SetIconIndexArrayName(const char* name);
100 virtual const char* GetIconIndexArrayName();
102
104
107 virtual void SetOrientationArrayName(const char* name);
108 virtual const char* GetOrientationArrayName();
110
112
115 virtual void SetBoundedSizeArrayName(const char* name);
116 virtual const char* GetBoundedSizeArrayName();
118
120
123 virtual void SetTextProperty(vtkTextProperty* tprop);
124 vtkGetObjectMacro(TextProperty, vtkTextProperty);
126
127protected:
130
131 int FillInputPortInformation(int port, vtkInformation* info) override;
132
134 vtkInformationVector* outputVector) override;
135
139
140private:
142 void operator=(const vtkPointSetToLabelHierarchy&) = delete;
143};
144
145VTK_ABI_NAMESPACE_END
146#endif // vtkPointSetToLabelHierarchy_h
a simple class to control print indentation
Definition vtkIndent.h:108
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.