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); }
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:
158 
160 
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
vtkViewsInfovisModule.h
vtkVariant.h
vtkPassInputTypeAlgorithm.h
vtkApplyIcons::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
vtkApplyIcons::SELECTED_OFFSET
@ SELECTED_OFFSET
Definition: vtkApplyIcons.h:120
vtkApplyIcons::New
static vtkApplyIcons * New()
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:41
VTKVIEWSINFOVIS_EXPORT
#define VTKVIEWSINFOVIS_EXPORT
Definition: vtkViewsInfovisModule.h:15
vtkApplyIcons::vtkApplyIcons
vtkApplyIcons()
vtkTypeMacro
#define vtkTypeMacro(thisClass, superclass)
Definition: vtkSetGet.h:642
vtkApplyIcons::~vtkApplyIcons
~vtkApplyIcons()
vtkgl::v
const GLdouble * v
Definition: vtkgl.h:11595
vtkApplyIcons::SetIconType
void SetIconType(vtkVariant v, int icon)
vtkApplyIcons::ANNOTATION_ICON
@ ANNOTATION_ICON
Definition: vtkApplyIcons.h:121
vtkApplyIcons::SetSelectionModeToAnnotationIcon
virtual void SetSelectionModeToAnnotationIcon()
Definition: vtkApplyIcons.h:140
vtkApplyIcons::SELECTED_ICON
@ SELECTED_ICON
Definition: vtkApplyIcons.h:119
vtkApplyIcons::RequestData
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
vtkApplyIcons::IconOutputArrayName
char * IconOutputArrayName
Definition: vtkApplyIcons.h:171
vtkApplyIcons::UseLookupTable
bool UseLookupTable
Definition: vtkApplyIcons.h:170
vtkX3D::port
@ port
Definition: vtkX3D.h:447
vtkApplyIcons::SetSelectionModeToSelectedIcon
virtual void SetSelectionModeToSelectedIcon()
Definition: vtkApplyIcons.h:136
vtkApplyIcons::SelectedIcon
int SelectedIcon
Definition: vtkApplyIcons.h:169
vtkApplyIcons::SetIconType
void SetIconType(const char *v, int icon)
Definition: vtkApplyIcons.h:82
vtkApplyIcons::SelectionMode
int SelectionMode
Definition: vtkApplyIcons.h:172
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkSetStringMacro
#define vtkSetStringMacro(name)
Definition: vtkSetGet.h:104
vtkApplyIcons::FillInputPortInformation
int FillInputPortInformation(int port, vtkInformation *info)
vtkVariant
A atomic type representing the union of many types.
Definition: vtkVariant.h:79
vtkApplyIcons::DefaultIcon
int DefaultIcon
Definition: vtkApplyIcons.h:168
vtkGetMacro
#define vtkGetMacro(name, type)
Definition: vtkSetGet.h:93
vtkGetStringMacro
vtkGetStringMacro(ExtensionsString)
vtkBooleanMacro
vtkBooleanMacro(IgnoreDriverBugs, bool)
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:86
vtkApplyIcons::AttributeType
int AttributeType
Definition: vtkApplyIcons.h:173
vtkSetMacro
vtkSetMacro(IgnoreDriverBugs, bool)
vtkX3D::info
@ info
Definition: vtkX3D.h:376
vtkApplyIcons::SetIconType
void SetIconType(double v, int icon)
Definition: vtkApplyIcons.h:80
vtkApplyIcons::SetSelectionModeToSelectedOffset
virtual void SetSelectionModeToSelectedOffset()
Definition: vtkApplyIcons.h:138
vtkApplyIcons::Implementation
Internals * Implementation
Definition: vtkApplyIcons.h:176
vtkApplyIcons::SetSelectionModeToIgnoreSelection
virtual void SetSelectionModeToIgnoreSelection()
Definition: vtkApplyIcons.h:142
vtkApplyIcons::ClearAllIconTypes
void ClearAllIconTypes()
vtkPassInputTypeAlgorithm
Superclass for algorithms that produce output of the same type as input.
Definition: vtkPassInputTypeAlgorithm.h:50
vtkApplyIcons
apply icons to a data set.
Definition: vtkApplyIcons.h:70