VTK
Functions
vtkChartSelectionHelper Namespace Reference

helper functions for making selections in charts. More...

Functions

static void MakeSelection (vtkAnnotationLink *link, vtkIdTypeArray *selectionIds, vtkPlot *plot)
 Populate the annotation link with the supplied selectionIds array, and set the appropriate node properties for a standard row based chart selection. More...
 
static void MinusSelection (vtkIdTypeArray *selection, vtkIdTypeArray *oldSelection)
 Subtract the supplied selection from the oldSelection. More...
 
static void AddSelection (vtkIdTypeArray *selection, vtkIdTypeArray *oldSelection)
 Add the supplied selection from the oldSelection. More...
 
static void ToggleSelection (vtkIdTypeArray *selection, vtkIdTypeArray *oldSelection)
 Toggle the supplied selection from the oldSelection. More...
 
static void BuildSelection (vtkAnnotationLink *link, int selectionMode, vtkIdTypeArray *plotSelection, vtkIdTypeArray *oldSelection, vtkPlot *plot)
 Build a selection based on the supplied selectionMode using the new plotSelection and combining it with the oldSelection. More...
 
static int GetMouseSelectionMode (const vtkContextMouseEvent &mouse, int selectionMode)
 Combine the SelectionMode with any mouse modifiers to get an effective selection mode for this click event. More...
 

Detailed Description

helper functions for making selections in charts.

This contains several inline methods intended for use inside chart implementations to make chart selections easier. This is intended for internal use and the API should not be considered stable.

Function Documentation

static void vtkChartSelectionHelper::MakeSelection ( vtkAnnotationLink link,
vtkIdTypeArray selectionIds,
vtkPlot plot 
)
static

Populate the annotation link with the supplied selectionIds array, and set the appropriate node properties for a standard row based chart selection.

Definition at line 51 of file vtkChartSelectionHelper.h.

static void vtkChartSelectionHelper::MinusSelection ( vtkIdTypeArray selection,
vtkIdTypeArray oldSelection 
)
static

Subtract the supplied selection from the oldSelection.

Definition at line 99 of file vtkChartSelectionHelper.h.

static void vtkChartSelectionHelper::AddSelection ( vtkIdTypeArray selection,
vtkIdTypeArray oldSelection 
)
static

Add the supplied selection from the oldSelection.

Definition at line 144 of file vtkChartSelectionHelper.h.

static void vtkChartSelectionHelper::ToggleSelection ( vtkIdTypeArray selection,
vtkIdTypeArray oldSelection 
)
static

Toggle the supplied selection from the oldSelection.

Definition at line 172 of file vtkChartSelectionHelper.h.

static void vtkChartSelectionHelper::BuildSelection ( vtkAnnotationLink link,
int  selectionMode,
vtkIdTypeArray plotSelection,
vtkIdTypeArray oldSelection,
vtkPlot plot 
)
static

Build a selection based on the supplied selectionMode using the new plotSelection and combining it with the oldSelection.

If link is not nullptr then the resulting selection will be set on the link.

Definition at line 222 of file vtkChartSelectionHelper.h.

static int vtkChartSelectionHelper::GetMouseSelectionMode ( const vtkContextMouseEvent mouse,
int  selectionMode 
)
static

Combine the SelectionMode with any mouse modifiers to get an effective selection mode for this click event.

Definition at line 259 of file vtkChartSelectionHelper.h.