VTK
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 -------------------------------------------------------------------------*/
33 #ifndef vtkPointSetToLabelHierarchy_h
34 #define vtkPointSetToLabelHierarchy_h
35 
37 #include "vtkRenderingLabelModule.h" // For export macro
38 
39 class vtkTextProperty;
40 
41 class VTKRENDERINGLABEL_EXPORT vtkPointSetToLabelHierarchy : public vtkLabelHierarchyAlgorithm
42 {
43 public:
46  void PrintSelf(ostream& os, vtkIndent indent) override;
47 
49 
52  vtkSetMacro(TargetLabelCount, int);
53  vtkGetMacro(TargetLabelCount, int);
55 
57 
60  vtkSetMacro(MaximumDepth, int);
61  vtkGetMacro(MaximumDepth, int);
63 
65 
68  vtkSetMacro(UseUnicodeStrings, bool);
69  vtkGetMacro(UseUnicodeStrings, bool);
70  vtkBooleanMacro(UseUnicodeStrings, bool);
72 
74 
77  virtual void SetLabelArrayName(const char* name);
78  virtual const char* GetLabelArrayName();
80 
82 
85  virtual void SetSizeArrayName(const char* name);
86  virtual const char* GetSizeArrayName();
88 
90 
93  virtual void SetPriorityArrayName(const char* name);
94  virtual const char* GetPriorityArrayName();
96 
98 
101  virtual void SetIconIndexArrayName(const char* name);
102  virtual const char* GetIconIndexArrayName();
104 
106 
109  virtual void SetOrientationArrayName(const char* name);
110  virtual const char* GetOrientationArrayName();
112 
114 
117  virtual void SetBoundedSizeArrayName(const char* name);
118  virtual const char* GetBoundedSizeArrayName();
120 
122 
125  virtual void SetTextProperty(vtkTextProperty* tprop);
126  vtkGetObjectMacro(TextProperty, vtkTextProperty);
128 
129 protected:
131  ~vtkPointSetToLabelHierarchy() override;
132 
133  int FillInputPortInformation(int port, vtkInformation* info) override;
134 
135  int RequestData(vtkInformation* request, vtkInformationVector** inputVector,
136  vtkInformationVector* outputVector) override;
137 
142 
143 private:
145  void operator=(const vtkPointSetToLabelHierarchy&) = delete;
146 };
147 
148 #endif // vtkPointSetToLabelHierarchy_h
vtkLabelHierarchyAlgorithm::New
static vtkLabelHierarchyAlgorithm * New()
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:35
vtkPointSetToLabelHierarchy::UseUnicodeStrings
bool UseUnicodeStrings
Definition: vtkPointSetToLabelHierarchy.h:140
vtkLabelHierarchyAlgorithm
Superclass for algorithms that produce only label hierarchies as output.
Definition: vtkLabelHierarchyAlgorithm.h:43
vtkX3D::port
Definition: vtkX3D.h:453
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:33
vtkPointSetToLabelHierarchy::TargetLabelCount
int TargetLabelCount
Definition: vtkPointSetToLabelHierarchy.h:138
vtkPointSetToLabelHierarchy::MaximumDepth
int MaximumDepth
Definition: vtkPointSetToLabelHierarchy.h:139
vtkPointSetToLabelHierarchy
build a label hierarchy for a graph or point set.
Definition: vtkPointSetToLabelHierarchy.h:41
vtkX3D::name
Definition: vtkX3D.h:225
vtkTextProperty
represent text properties.
Definition: vtkTextProperty.h:33
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:64
vtkX3D::info
Definition: vtkX3D.h:382
vtkLabelHierarchyAlgorithm::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkLabelHierarchyAlgorithm.h
vtkLabelHierarchyAlgorithm::FillInputPortInformation
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
vtkLabelHierarchyAlgorithm::RequestData
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
vtkPointSetToLabelHierarchy::TextProperty
vtkTextProperty * TextProperty
Definition: vtkPointSetToLabelHierarchy.h:141