VTK  9.1.0
vtkApplyIcons.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: Visualization Toolkit
4 Module: vtkApplyIcons.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-------------------------------------------------------------------------*/
63#ifndef vtkApplyIcons_h
64#define vtkApplyIcons_h
65
67#include "vtkVariant.h" // For variant arguments.
68#include "vtkViewsInfovisModule.h" // For export macro
69
70class VTKVIEWSINFOVIS_EXPORT vtkApplyIcons : public vtkPassInputTypeAlgorithm
71{
72public:
73 static vtkApplyIcons* New();
75 void PrintSelf(ostream& os, vtkIndent indent) override;
76
78
82 void SetIconType(vtkVariant v, int icon);
83 void SetIconType(double v, int icon) { this->SetIconType(vtkVariant(v), icon); }
84 void SetIconType(const char* v, int icon) { this->SetIconType(vtkVariant(v), icon); }
87
89
93 vtkSetMacro(UseLookupTable, bool);
94 vtkGetMacro(UseLookupTable, bool);
95 vtkBooleanMacro(UseLookupTable, bool);
97
99
103 vtkSetMacro(DefaultIcon, int);
104 vtkGetMacro(DefaultIcon, int);
106
108
112 vtkSetMacro(SelectedIcon, int);
113 vtkGetMacro(SelectedIcon, int);
115
117
121 vtkSetStringMacro(IconOutputArrayName);
122 vtkGetStringMacro(IconOutputArrayName);
124
125 enum
126 {
130 IGNORE_SELECTION
131 };
132
134
144 vtkSetMacro(SelectionMode, int);
145 vtkGetMacro(SelectionMode, int);
146 virtual void SetSelectionModeToSelectedIcon() { this->SetSelectionMode(SELECTED_ICON); }
147 virtual void SetSelectionModeToSelectedOffset() { this->SetSelectionMode(SELECTED_OFFSET); }
148 virtual void SetSelectionModeToAnnotationIcon() { this->SetSelectionMode(ANNOTATION_ICON); }
149 virtual void SetSelectionModeToIgnoreSelection() { this->SetSelectionMode(IGNORE_SELECTION); }
151
153
159 vtkSetMacro(AttributeType, int);
160 vtkGetMacro(AttributeType, int);
162
163protected:
165 ~vtkApplyIcons() override;
166
171
175 int FillInputPortInformation(int port, vtkInformation* info) override;
176
183
184 class Internals;
185 Internals* Implementation;
186
187private:
188 vtkApplyIcons(const vtkApplyIcons&) = delete;
189 void operator=(const vtkApplyIcons&) = delete;
190};
191
192#endif
apply icons to a data set.
Definition: vtkApplyIcons.h:71
void SetIconType(vtkVariant v, int icon)
Edits the lookup table to use for point icons.
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
Convert the vtkGraph into vtkPolyData.
Internals * Implementation
virtual void SetSelectionModeToAnnotationIcon()
Changes the behavior of the icon to use for selected items.
int FillInputPortInformation(int port, vtkInformation *info) override
Set the input type of the algorithm to vtkGraph.
virtual void SetSelectionModeToIgnoreSelection()
Changes the behavior of the icon to use for selected items.
char * IconOutputArrayName
~vtkApplyIcons() override
void ClearAllIconTypes()
Edits the lookup table to use for point icons.
virtual void SetSelectionModeToSelectedIcon()
Changes the behavior of the icon to use for selected items.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void SetIconType(double v, int icon)
Edits the lookup table to use for point icons.
Definition: vtkApplyIcons.h:83
virtual void SetSelectionModeToSelectedOffset()
Changes the behavior of the icon to use for selected items.
static vtkApplyIcons * New()
void SetIconType(const char *v, int icon)
Edits the lookup table to use for point icons.
Definition: vtkApplyIcons.h:84
a simple class to control print indentation
Definition: vtkIndent.h:113
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
Superclass for algorithms that produce output of the same type as input.
A atomic type representing the union of many types.
Definition: vtkVariant.h:145