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 
65 #include "vtkViewsInfovisModule.h" // For export macro
67 #include "vtkVariant.h" // For variant arguments.
68 
70 {
71 public:
72  static vtkApplyIcons *New();
74  void PrintSelf(ostream& os, vtkIndent indent);
75 
77 
79  void SetIconType(vtkVariant v, int icon);
80  void SetIconType(double v, int icon)
81  { this->SetIconType(vtkVariant(v), icon); }
82  void SetIconType(const char* v, int icon)
83  { this->SetIconType(vtkVariant(v), icon); }
84  void ClearAllIconTypes();
86 
88 
90  vtkSetMacro(UseLookupTable, bool);
91  vtkGetMacro(UseLookupTable, bool);
92  vtkBooleanMacro(UseLookupTable, bool);
94 
96 
98  vtkSetMacro(DefaultIcon, int);
99  vtkGetMacro(DefaultIcon, int);
101 
103 
105  vtkSetMacro(SelectedIcon, int);
106  vtkGetMacro(SelectedIcon, int);
108 
110 
112  vtkSetStringMacro(IconOutputArrayName);
113  vtkGetStringMacro(IconOutputArrayName);
115 
116  //BTX
117  enum
118  {
122  IGNORE_SELECTION
123  };
124  //ETX
125 
127 
134  vtkSetMacro(SelectionMode, int);
135  vtkGetMacro(SelectionMode, int);
137  { this->SetSelectionMode(SELECTED_ICON); }
139  { this->SetSelectionMode(SELECTED_OFFSET); }
141  { this->SetSelectionMode(ANNOTATION_ICON); }
143  { this->SetSelectionMode(IGNORE_SELECTION); }
145 
147 
151  vtkSetMacro(AttributeType, int);
152  vtkGetMacro(AttributeType, int);
154 
155 protected:
156  vtkApplyIcons();
157  ~vtkApplyIcons();
158 
160 
161  int RequestData(
164 
167 
174 
175  //BTX
176  class Internals;
177  Internals* Implementation;
178  //ETX
179 
180 private:
181  vtkApplyIcons(const vtkApplyIcons&); // Not implemented.
182  void operator=(const vtkApplyIcons&); // Not implemented.
183 };
184 
185 #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:80
A atomic type representing the union of many types.
Definition: vtkVariant.h:78
virtual void SetSelectionModeToIgnoreSelection()
virtual int FillInputPortInformation(int port, vtkInformation *info)
a simple class to control print indentation
Definition: vtkIndent.h:38
void SetIconType(const char *v, int icon)
Definition: vtkApplyIcons.h:82
Internals * Implementation
void PrintSelf(ostream &os, vtkIndent indent)
virtual void SetSelectionModeToAnnotationIcon()
Store zero or more vtkInformation instances.
virtual void SetSelectionModeToSelectedOffset()
apply icons to a data set.
Definition: vtkApplyIcons.h:69
#define VTKVIEWSINFOVIS_EXPORT
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
static vtkPassInputTypeAlgorithm * New()
char * IconOutputArrayName