apply icons to a data set. More...
#include <vtkApplyIcons.h>
Inherits vtkPassInputTypeAlgorithm.
Public Types | |
enum | { SELECTED_ICON, SELECTED_OFFSET, ANNOTATION_ICON, IGNORE_SELECTION } |
typedef vtkPassInputTypeAlgorithm | Superclass |
Public Member Functions | |
virtual int | IsA (const char *type) |
vtkApplyIcons * | NewInstance () const |
void | PrintSelf (ostream &os, vtkIndent indent) |
void | SetIconType (vtkVariant v, int icon) |
void | SetIconType (double v, int icon) |
void | SetIconType (const char *v, int icon) |
void | ClearAllIconTypes () |
virtual void | SetUseLookupTable (bool) |
virtual bool | GetUseLookupTable () |
virtual void | UseLookupTableOn () |
virtual void | UseLookupTableOff () |
virtual void | SetDefaultIcon (int) |
virtual int | GetDefaultIcon () |
virtual void | SetSelectedIcon (int) |
virtual int | GetSelectedIcon () |
virtual void | SetIconOutputArrayName (const char *) |
virtual char * | GetIconOutputArrayName () |
virtual void | SetSelectionMode (int) |
virtual int | GetSelectionMode () |
virtual void | SetSelectionModeToSelectedIcon () |
virtual void | SetSelectionModeToSelectedOffset () |
virtual void | SetSelectionModeToAnnotationIcon () |
virtual void | SetSelectionModeToIgnoreSelection () |
virtual void | SetAttributeType (int) |
virtual int | GetAttributeType () |
Static Public Member Functions | |
static vtkApplyIcons * | New () |
static int | IsTypeOf (const char *type) |
static vtkApplyIcons * | SafeDownCast (vtkObjectBase *o) |
Protected Member Functions | |
virtual vtkObjectBase * | NewInstanceInternal () const |
vtkApplyIcons () | |
~vtkApplyIcons () | |
int | FillInputPortInformation (int port, vtkInformation *info) |
int | RequestData (vtkInformation *, vtkInformationVector **, vtkInformationVector *) |
Protected Attributes | |
int | DefaultIcon |
int | SelectedIcon |
bool | UseLookupTable |
char * | IconOutputArrayName |
int | SelectionMode |
int | AttributeType |
Internals * | Implementation |
apply icons to a data set.
vtkApplyIcons performs a iconing of the dataset using default icons, lookup tables, annotations, and/or a selection. The output is a vtkIntArray containing the icon index for each element in the dataset. The first input is the dataset to be iconed, which may be a vtkTable, vtkGraph subclass, or vtkDataSet subclass.
The second (optional) input is a vtkAnnotationLayers object, which stores a list of annotation layers, with each layer holding a list of vtkAnnotation objects. The annotation specifies a subset of data along with other properties, including icon. For annotations with icon properties, this algorithm will use the icon index of annotated elements, using a "top one wins" strategy.
The third (optional) input is a vtkSelection object, meant for specifying the current selection. You can control the icon of the selection, or whether there is a set of selected icons at a particular offset in the icon sheet.
The algorithm takes an input array, specified with SetInputArrayToProcess(0, 0, 0, vtkDataObject::FIELD_ASSOCIATION_POINTS, name) This sets data arrays to use to icon the data with the associated lookup table. For vtkGraph and vtkTable inputs, you would use FIELD_ASSOCIATION_VERTICES, FIELD_ASSOCIATION_EDGES, or FIELD_ASSOCIATION_ROWS as appropriate. The icon array will be added to the same set of attributes that the input array came from. If there is no input array, the icon array will be applied to the attributes associated with the AttributeType parameter.
Icons are assigned with the following priorities:
Definition at line 69 of file vtkApplyIcons.h.
typedef vtkPassInputTypeAlgorithm vtkApplyIcons::Superclass |
Definition at line 73 of file vtkApplyIcons.h.
anonymous enum |
Enumerator | |
---|---|
SELECTED_ICON | |
SELECTED_OFFSET | |
ANNOTATION_ICON | |
IGNORE_SELECTION |
Definition at line 117 of file vtkApplyIcons.h.
|
protected |
|
protected |
|
static |
|
static |
|
virtual |
|
static |
|
protectedvirtual |
vtkApplyIcons* vtkApplyIcons::NewInstance | ( | ) | const |
void vtkApplyIcons::PrintSelf | ( | ostream & | os, |
vtkIndent | indent | ||
) |
void vtkApplyIcons::SetIconType | ( | vtkVariant | v, |
int | icon | ||
) |
Edits the lookup table to use for point icons. This is only used if input array 0 is set and UsePointLookupTable is on.
|
inline |
Edits the lookup table to use for point icons. This is only used if input array 0 is set and UsePointLookupTable is on.
Definition at line 80 of file vtkApplyIcons.h.
|
inline |
Edits the lookup table to use for point icons. This is only used if input array 0 is set and UsePointLookupTable is on.
Definition at line 82 of file vtkApplyIcons.h.
void vtkApplyIcons::ClearAllIconTypes | ( | ) |
Edits the lookup table to use for point icons. This is only used if input array 0 is set and UsePointLookupTable is on.
|
virtual |
If on, uses the point lookup table to set the colors of unannotated, unselected elements of the data.
|
virtual |
If on, uses the point lookup table to set the colors of unannotated, unselected elements of the data.
|
virtual |
If on, uses the point lookup table to set the colors of unannotated, unselected elements of the data.
|
virtual |
If on, uses the point lookup table to set the colors of unannotated, unselected elements of the data.
|
virtual |
The default point icon for all unannotated, unselected elements of the data. This is used if UsePointLookupTable is off.
|
virtual |
The default point icon for all unannotated, unselected elements of the data. This is used if UsePointLookupTable is off.
|
virtual |
The point icon for all selected elements of the data. This is used if the annotation input has a current selection.
|
virtual |
The point icon for all selected elements of the data. This is used if the annotation input has a current selection.
|
virtual |
The output array name for the point icon index array. Default is "vtkApplyIcons icon".
|
virtual |
The output array name for the point icon index array. Default is "vtkApplyIcons icon".
|
virtual |
Changes the behavior of the icon to use for selected items.
The default is IGNORE_SELECTION.
|
virtual |
Changes the behavior of the icon to use for selected items.
The default is IGNORE_SELECTION.
|
inlinevirtual |
Changes the behavior of the icon to use for selected items.
The default is IGNORE_SELECTION.
Definition at line 136 of file vtkApplyIcons.h.
|
inlinevirtual |
Changes the behavior of the icon to use for selected items.
The default is IGNORE_SELECTION.
Definition at line 138 of file vtkApplyIcons.h.
|
inlinevirtual |
Changes the behavior of the icon to use for selected items.
The default is IGNORE_SELECTION.
Definition at line 140 of file vtkApplyIcons.h.
|
inlinevirtual |
Changes the behavior of the icon to use for selected items.
The default is IGNORE_SELECTION.
Definition at line 142 of file vtkApplyIcons.h.
|
virtual |
The attribute type to append the icon array to, used only if the input array is not specified or does not exist. This is set to one of the AttributeTypes enum in vtkDataObject (e.g. POINT, CELL, VERTEX EDGE, FIELD).
|
virtual |
The attribute type to append the icon array to, used only if the input array is not specified or does not exist. This is set to one of the AttributeTypes enum in vtkDataObject (e.g. POINT, CELL, VERTEX EDGE, FIELD).
|
protected |
Convert the vtkGraph into vtkPolyData.
|
protected |
Set the input type of the algorithm to vtkGraph.
|
protected |
Definition at line 168 of file vtkApplyIcons.h.
|
protected |
Definition at line 169 of file vtkApplyIcons.h.
|
protected |
Definition at line 170 of file vtkApplyIcons.h.
|
protected |
Definition at line 171 of file vtkApplyIcons.h.
|
protected |
Definition at line 172 of file vtkApplyIcons.h.
|
protected |
Definition at line 173 of file vtkApplyIcons.h.
|
protected |
Definition at line 176 of file vtkApplyIcons.h.