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
20 #ifndef vtkPointSetToLabelHierarchy_h
21 #define vtkPointSetToLabelHierarchy_h
22 
24 #include "vtkRenderingLabelModule.h" // For export macro
25 
26 VTK_ABI_NAMESPACE_BEGIN
27 class vtkTextProperty;
28 
29 class VTKRENDERINGLABEL_EXPORT vtkPointSetToLabelHierarchy : public vtkLabelHierarchyAlgorithm
30 {
31 public:
34  void PrintSelf(ostream& os, vtkIndent indent) override;
35 
37 
40  vtkSetMacro(TargetLabelCount, int);
41  vtkGetMacro(TargetLabelCount, int);
43 
45 
48  vtkSetMacro(MaximumDepth, int);
49  vtkGetMacro(MaximumDepth, int);
51 
53 
56  virtual void SetLabelArrayName(const char* name);
57  virtual const char* GetLabelArrayName();
59 
61 
64  virtual void SetSizeArrayName(const char* name);
65  virtual const char* GetSizeArrayName();
67 
69 
72  virtual void SetPriorityArrayName(const char* name);
73  virtual const char* GetPriorityArrayName();
75 
77 
80  virtual void SetIconIndexArrayName(const char* name);
81  virtual const char* GetIconIndexArrayName();
83 
85 
88  virtual void SetOrientationArrayName(const char* name);
89  virtual const char* GetOrientationArrayName();
91 
93 
96  virtual void SetBoundedSizeArrayName(const char* name);
97  virtual const char* GetBoundedSizeArrayName();
99 
101 
104  virtual void SetTextProperty(vtkTextProperty* tprop);
105  vtkGetObjectMacro(TextProperty, vtkTextProperty);
107 
108 protected:
111 
113 
114  int RequestData(vtkInformation* request, vtkInformationVector** inputVector,
115  vtkInformationVector* outputVector) override;
116 
120 
121 private:
123  void operator=(const vtkPointSetToLabelHierarchy&) = delete;
124 };
125 
126 VTK_ABI_NAMESPACE_END
127 #endif // vtkPointSetToLabelHierarchy_h
a simple class to control print indentation
Definition: vtkIndent.h:29
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.
virtual const char * GetLabelArrayName()
Set/get the label array name.
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.
static vtkPointSetToLabelHierarchy * New()
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.
~vtkPointSetToLabelHierarchy() override
virtual void SetSizeArrayName(const char *name)
Set/get the priority array name.
virtual const char * GetSizeArrayName()
Set/get the priority array name.
virtual const char * GetBoundedSizeArrayName()
Set/get the maximum text width (in world coordinates) array name.
virtual void SetBoundedSizeArrayName(const char *name)
Set/get the maximum text width (in world coordinates) array name.
virtual const char * GetOrientationArrayName()
Set/get the text orientation array name.
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.
int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector) override
This is called by the superclass.
represent text properties.
@ info
Definition: vtkX3D.h:376
@ port
Definition: vtkX3D.h:447
@ name
Definition: vtkX3D.h:219