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
70class VTKVIEWSINFOVIS_EXPORT vtkApplyIcons : public vtkPassInputTypeAlgorithm
71{
72public:
73 static vtkApplyIcons *New();
75 void PrintSelf(ostream& os, vtkIndent indent);
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); }
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
169protected:
172
178
183
190
191 class Internals;
192 Internals* Implementation;
193
194private:
195 vtkApplyIcons(const vtkApplyIcons&) VTK_DELETE_FUNCTION;
196 void operator=(const vtkApplyIcons&) VTK_DELETE_FUNCTION;
197};
198
199#endif
apply icons to a data set.
Definition: vtkApplyIcons.h:71
void SetIconType(vtkVariant v, int icon)
Edits the lookup table to use for point icons.
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
Convert the vtkGraph into vtkPolyData.
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
Internals * Implementation
int FillInputPortInformation(int port, vtkInformation *info)
Set the input type of the algorithm to vtkGraph.
virtual void SetSelectionModeToAnnotationIcon()
virtual void SetSelectionModeToIgnoreSelection()
char * IconOutputArrayName
void ClearAllIconTypes()
virtual void SetSelectionModeToSelectedIcon()
void SetIconType(double v, int icon)
Definition: vtkApplyIcons.h:83
virtual void SetSelectionModeToSelectedOffset()
static vtkApplyIcons * New()
void SetIconType(const char *v, int icon)
Definition: vtkApplyIcons.h:85
a simple class to control print indentation
Definition: vtkIndent.h:40
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
Superclass for algorithms that produce output of the same type as input.
A atomic type representing the union of many types.
Definition: vtkVariant.h:76
@ info
Definition: vtkX3D.h:376
@ port
Definition: vtkX3D.h:447
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkBooleanMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkGetStringMacro(ExtensionsString)
Returns a string listing all available extensions.