VTK  9.2.6
vtkPointSetToLabelHierarchy.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkPointSetToLabelHierarchy.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 =========================================================================*/
15 /*-------------------------------------------------------------------------
16  Copyright 2008 Sandia Corporation.
17  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
18  the U.S. Government retains certain rights in this software.
19 -------------------------------------------------------------------------*/
36 #ifndef vtkPointSetToLabelHierarchy_h
37 #define vtkPointSetToLabelHierarchy_h
38 
40 #include "vtkRenderingLabelModule.h" // For export macro
41 
42 class vtkTextProperty;
43 
44 class VTKRENDERINGLABEL_EXPORT vtkPointSetToLabelHierarchy : public vtkLabelHierarchyAlgorithm
45 {
46 public:
49  void PrintSelf(ostream& os, vtkIndent indent) override;
50 
52 
55  vtkSetMacro(TargetLabelCount, int);
56  vtkGetMacro(TargetLabelCount, int);
58 
60 
63  vtkSetMacro(MaximumDepth, int);
64  vtkGetMacro(MaximumDepth, int);
66 
68 
71  virtual void SetLabelArrayName(const char* name);
72  virtual const char* GetLabelArrayName();
74 
76 
79  virtual void SetSizeArrayName(const char* name);
80  virtual const char* GetSizeArrayName();
82 
84 
87  virtual void SetPriorityArrayName(const char* name);
88  virtual const char* GetPriorityArrayName();
90 
92 
95  virtual void SetIconIndexArrayName(const char* name);
96  virtual const char* GetIconIndexArrayName();
98 
100 
103  virtual void SetOrientationArrayName(const char* name);
104  virtual const char* GetOrientationArrayName();
106 
108 
111  virtual void SetBoundedSizeArrayName(const char* name);
112  virtual const char* GetBoundedSizeArrayName();
114 
116 
119  virtual void SetTextProperty(vtkTextProperty* tprop);
120  vtkGetObjectMacro(TextProperty, vtkTextProperty);
122 
123 protected:
125  ~vtkPointSetToLabelHierarchy() override;
126 
127  int FillInputPortInformation(int port, vtkInformation* info) override;
128 
129  int RequestData(vtkInformation* request, vtkInformationVector** inputVector,
130  vtkInformationVector* outputVector) override;
131 
135 
136 private:
138  void operator=(const vtkPointSetToLabelHierarchy&) = delete;
139 };
140 
141 #endif // vtkPointSetToLabelHierarchy_h
Store vtkAlgorithm input/output information.
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
a simple class to control print indentation
Definition: vtkIndent.h:39
represent text properties.
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.
static vtkLabelHierarchyAlgorithm * New()
Superclass for algorithms that produce only label hierarchies as output.
Store zero or more vtkInformation instances.
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.