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 -------------------------------------------------------------------------*/
62 #ifndef __vtkApplyIcons_h
63 #define __vtkApplyIcons_h
64 
66 #include "vtkVariant.h" // For variant arguments.
67 
69 {
70 public:
71  static vtkApplyIcons *New();
73  void PrintSelf(ostream& os, vtkIndent indent);
74 
76 
78  void SetIconType(vtkVariant v, int icon);
79  void SetIconType(double v, int icon)
80  { this->SetIconType(vtkVariant(v), icon); }
81  void SetIconType(const char* v, int icon)
82  { this->SetIconType(vtkVariant(v), icon); }
83  void ClearAllIconTypes();
85 
87 
89  vtkSetMacro(UseLookupTable, bool);
90  vtkGetMacro(UseLookupTable, bool);
91  vtkBooleanMacro(UseLookupTable, bool);
93 
95 
97  vtkSetMacro(DefaultIcon, int);
98  vtkGetMacro(DefaultIcon, int);
100 
102 
104  vtkSetMacro(SelectedIcon, int);
105  vtkGetMacro(SelectedIcon, int);
107 
109 
111  vtkSetStringMacro(IconOutputArrayName);
112  vtkGetStringMacro(IconOutputArrayName);
114 
115  //BTX
116  enum
117  {
121  IGNORE_SELECTION
122  };
123  //ETX
124 
126 
133  vtkSetMacro(SelectionMode, int);
134  vtkGetMacro(SelectionMode, int);
136  { this->SetSelectionMode(SELECTED_ICON); }
138  { this->SetSelectionMode(SELECTED_OFFSET); }
140  { this->SetSelectionMode(ANNOTATION_ICON); }
142  { this->SetSelectionMode(IGNORE_SELECTION); }
144 
146 
150  vtkSetMacro(AttributeType, int);
151  vtkGetMacro(AttributeType, int);
153 
154 protected:
155  vtkApplyIcons();
156  ~vtkApplyIcons();
157 
159 
160  int RequestData(
163 
166 
173 
174  //BTX
175  class Internals;
176  Internals* Implementation;
177  //ETX
178 
179 private:
180  vtkApplyIcons(const vtkApplyIcons&); // Not implemented.
181  void operator=(const vtkApplyIcons&); // Not implemented.
182 };
183 
184 #endif
Superclass for algorithms that produce output of the same type as input.
Store vtkAlgorithm input/output information.
virtual void SetSelectionModeToSelectedIcon()
void SetIconType(double v, int icon)
Definition: vtkApplyIcons.h:79
A atomic type representing the union of many types.
Definition: vtkVariant.h:72
virtual void SetSelectionModeToIgnoreSelection()
virtual int FillInputPortInformation(int port, vtkInformation *info)
a simple class to control print indentation
Definition: vtkIndent.h:37
void SetIconType(const char *v, int icon)
Definition: vtkApplyIcons.h:81
Internals * Implementation
void PrintSelf(ostream &os, vtkIndent indent)
#define VTK_INFOVIS_EXPORT
virtual void SetSelectionModeToAnnotationIcon()
Store zero or more vtkInformation instances.
virtual void SetSelectionModeToSelectedOffset()
apply icons to a data set.
Definition: vtkApplyIcons.h:68
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
static vtkPassInputTypeAlgorithm * New()
char * IconOutputArrayName