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) 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() override;
172 
176  int RequestData(
178 
182  int FillInputPortInformation(int port, vtkInformation* info) override;
183 
190 
191  class Internals;
192  Internals* Implementation;
193 
194 private:
195  vtkApplyIcons(const vtkApplyIcons&) = delete;
196  void operator=(const vtkApplyIcons&) = delete;
197 };
198 
199 #endif
vtkVariant.h
vtkPassInputTypeAlgorithm.h
vtkApplyIcons::ANNOTATION_ICON
Definition: vtkApplyIcons.h:131
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:41
vtkPassInputTypeAlgorithm::FillInputPortInformation
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
vtkApplyIcons::SELECTED_OFFSET
Definition: vtkApplyIcons.h:130
vtkApplyIcons::SetSelectionModeToAnnotationIcon
virtual void SetSelectionModeToAnnotationIcon()
Definition: vtkApplyIcons.h:152
vtkApplyIcons::IconOutputArrayName
char * IconOutputArrayName
Definition: vtkApplyIcons.h:187
vtkApplyIcons::UseLookupTable
bool UseLookupTable
Definition: vtkApplyIcons.h:186
vtkX3D::port
Definition: vtkX3D.h:447
vtkApplyIcons::SetSelectionModeToSelectedIcon
virtual void SetSelectionModeToSelectedIcon()
Definition: vtkApplyIcons.h:148
vtkApplyIcons::SelectedIcon
int SelectedIcon
Definition: vtkApplyIcons.h:185
vtkPassInputTypeAlgorithm::RequestData
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called within ProcessRequest when a request asks the algorithm to do its work.
Definition: vtkPassInputTypeAlgorithm.h:178
vtkApplyIcons::SetIconType
void SetIconType(const char *v, int icon)
Definition: vtkApplyIcons.h:85
vtkApplyIcons::SelectionMode
int SelectionMode
Definition: vtkApplyIcons.h:188
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkVariant
A atomic type representing the union of many types.
Definition: vtkVariant.h:71
vtkApplyIcons::DefaultIcon
int DefaultIcon
Definition: vtkApplyIcons.h:184
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:86
vtkApplyIcons::AttributeType
int AttributeType
Definition: vtkApplyIcons.h:189
vtkX3D::info
Definition: vtkX3D.h:376
vtkApplyIcons::SetIconType
void SetIconType(double v, int icon)
Definition: vtkApplyIcons.h:83
vtkApplyIcons::SELECTED_ICON
Definition: vtkApplyIcons.h:129
vtkApplyIcons::SetSelectionModeToSelectedOffset
virtual void SetSelectionModeToSelectedOffset()
Definition: vtkApplyIcons.h:150
vtkApplyIcons::Implementation
Internals * Implementation
Definition: vtkApplyIcons.h:191
vtkPassInputTypeAlgorithm::New
static vtkPassInputTypeAlgorithm * New()
vtkPassInputTypeAlgorithm::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkApplyIcons::SetSelectionModeToIgnoreSelection
virtual void SetSelectionModeToIgnoreSelection()
Definition: vtkApplyIcons.h:154
vtkPassInputTypeAlgorithm
Superclass for algorithms that produce output of the same type as input.
Definition: vtkPassInputTypeAlgorithm.h:54
vtkApplyIcons
apply icons to a data set.
Definition: vtkApplyIcons.h:70