VTK  9.0.1
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 
70 class VTKVIEWSINFOVIS_EXPORT vtkApplyIcons : public vtkPassInputTypeAlgorithm
71 {
72 public:
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); }
85  void ClearAllIconTypes();
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 
163 protected:
164  vtkApplyIcons();
165  ~vtkApplyIcons() override;
166 
171 
175  int FillInputPortInformation(int port, vtkInformation* info) override;
176 
183 
184  class Internals;
185  Internals* Implementation;
186 
187 private:
188  vtkApplyIcons(const vtkApplyIcons&) = delete;
189  void operator=(const vtkApplyIcons&) = delete;
190 };
191 
192 #endif
Superclass for algorithms that produce output of the same type as input.
Store vtkAlgorithm input/output information.
virtual void SetSelectionModeToSelectedIcon()
Changes the behavior of the icon to use for selected items.
void SetIconType(double v, int icon)
Edits the lookup table to use for point icons.
Definition: vtkApplyIcons.h:83
A atomic type representing the union of many types.
Definition: vtkVariant.h:65
virtual void SetSelectionModeToIgnoreSelection()
Changes the behavior of the icon to use for selected items.
a simple class to control print indentation
Definition: vtkIndent.h:33
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
void SetIconType(const char *v, int icon)
Edits the lookup table to use for point icons.
Definition: vtkApplyIcons.h:84
Internals * Implementation
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
virtual void SetSelectionModeToAnnotationIcon()
Changes the behavior of the icon to use for selected items.
Store zero or more vtkInformation instances.
virtual void SetSelectionModeToSelectedOffset()
Changes the behavior of the icon to use for selected items.
apply icons to a data set.
Definition: vtkApplyIcons.h:70
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called within ProcessRequest when a request asks the algorithm to do its work.
static vtkPassInputTypeAlgorithm * New()
char * IconOutputArrayName