VTK
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 
66 #include "vtkViewsInfovisModule.h" // For export macro
68 #include "vtkVariant.h" // For variant arguments.
69 
70 class VTKVIEWSINFOVIS_EXPORT vtkApplyIcons : public vtkPassInputTypeAlgorithm
71 {
72 public:
73  static vtkApplyIcons *New();
75  void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
76 
78 
82  void SetIconType(vtkVariant v, int icon);
83  void SetIconType(double v, int icon)
84  { this->SetIconType(vtkVariant(v), icon); }
85  void SetIconType(const char* v, int icon)
86  { this->SetIconType(vtkVariant(v), icon); }
87  void ClearAllIconTypes();
89 
91 
95  vtkSetMacro(UseLookupTable, bool);
96  vtkGetMacro(UseLookupTable, bool);
97  vtkBooleanMacro(UseLookupTable, bool);
99 
101 
105  vtkSetMacro(DefaultIcon, int);
106  vtkGetMacro(DefaultIcon, int);
108 
110 
114  vtkSetMacro(SelectedIcon, int);
115  vtkGetMacro(SelectedIcon, int);
117 
119 
123  vtkSetStringMacro(IconOutputArrayName);
124  vtkGetStringMacro(IconOutputArrayName);
126 
127  enum
128  {
132  IGNORE_SELECTION
133  };
134 
136 
146  vtkSetMacro(SelectionMode, int);
147  vtkGetMacro(SelectionMode, int);
149  { this->SetSelectionMode(SELECTED_ICON); }
151  { this->SetSelectionMode(SELECTED_OFFSET); }
153  { this->SetSelectionMode(ANNOTATION_ICON); }
155  { this->SetSelectionMode(IGNORE_SELECTION); }
157 
159 
165  vtkSetMacro(AttributeType, int);
166  vtkGetMacro(AttributeType, int);
168 
169 protected:
170  vtkApplyIcons();
171  ~vtkApplyIcons() VTK_OVERRIDE;
172 
176  int RequestData(
178 
182  int FillInputPortInformation(int port, vtkInformation* info) VTK_OVERRIDE;
183 
190 
191  class Internals;
192  Internals* Implementation;
193 
194 private:
195  vtkApplyIcons(const vtkApplyIcons&) VTK_DELETE_FUNCTION;
196  void operator=(const vtkApplyIcons&) VTK_DELETE_FUNCTION;
197 };
198 
199 #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:70
virtual void SetSelectionModeToIgnoreSelection()
Changes the behavior of the icon to use for selected items.
a simple class to control print indentation
Definition: vtkIndent.h:39
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:85
vtkGetStringMacro(ExtensionsString)
Returns a string listing all available extensions.
vtkSetMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
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.
vtkBooleanMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
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