VTK
|
container for a matrix of charts. More...
#include <vtkScatterPlotMatrix.h>
container for a matrix of charts.
This class contains a matrix of charts. These charts will be of type vtkChartXY by default, but this can be overridden. The class will manage their layout and object lifetime.
Definition at line 46 of file vtkScatterPlotMatrix.h.
Reimplemented from vtkChartMatrix.
Definition at line 56 of file vtkScatterPlotMatrix.h.
anonymous enum |
Definition at line 49 of file vtkScatterPlotMatrix.h.
vtkScatterPlotMatrix::vtkScatterPlotMatrix | ( | ) | [protected] |
vtkScatterPlotMatrix::~vtkScatterPlotMatrix | ( | ) | [protected] |
static int vtkScatterPlotMatrix::IsTypeOf | ( | const char * | name | ) | [static] |
Return 1 if this class type is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h.
Reimplemented from vtkChartMatrix.
virtual int vtkScatterPlotMatrix::IsA | ( | const char * | name | ) | [virtual] |
Return 1 if this class is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h.
Reimplemented from vtkChartMatrix.
static vtkScatterPlotMatrix* vtkScatterPlotMatrix::SafeDownCast | ( | vtkObjectBase * | o | ) | [static] |
Reimplemented from vtkChartMatrix.
virtual vtkObjectBase* vtkScatterPlotMatrix::NewInstanceInternal | ( | ) | const [protected, virtual] |
Reimplemented from vtkChartMatrix.
Reimplemented from vtkChartMatrix.
virtual void vtkScatterPlotMatrix::PrintSelf | ( | ostream & | os, |
vtkIndent | indent | ||
) | [virtual] |
Methods invoked by print to print information about the object including superclasses. Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes.
Reimplemented from vtkChartMatrix.
static vtkScatterPlotMatrix* vtkScatterPlotMatrix::New | ( | ) | [static] |
Creates a new object.
Reimplemented from vtkChartMatrix.
virtual void vtkScatterPlotMatrix::Update | ( | ) | [virtual] |
Perform any updates to the item that may be necessary before rendering.
Reimplemented from vtkChartMatrix.
virtual bool vtkScatterPlotMatrix::Paint | ( | vtkContext2D * | painter | ) | [virtual] |
Paint event for the chart matrix.
Reimplemented from vtkChartMatrix.
virtual bool vtkScatterPlotMatrix::SetActivePlot | ( | const vtkVector2i & | position | ) | [virtual] |
Set the active plot, the one that will be displayed in the top-right. This defaults to (0, n-2), the plot below the first histogram on the left.
virtual vtkVector2i vtkScatterPlotMatrix::GetActivePlot | ( | ) | [virtual] |
Get the position of the active plot.
Get the active AnnotationLink from the big chart, which is the only active AnnotationLink in the matrix.
Get the AnnotationLink for the scatter plot matrix, this gives you access to the currently selected points in the scatter plot matrix.
virtual void vtkScatterPlotMatrix::SetInput | ( | vtkTable * | table | ) | [virtual] |
Set the input table for the scatter plot matrix. This will cause all columns to be plotted against each other - a square scatter plot matrix.
void vtkScatterPlotMatrix::SetColumnVisibility | ( | const vtkStdString & | name, |
bool | visible | ||
) |
Set the visibility of the specified column.
void vtkScatterPlotMatrix::InsertVisibleColumn | ( | const vtkStdString & | name, |
int | index | ||
) |
Insert the specified column at the index position of the visible columns.
bool vtkScatterPlotMatrix::GetColumnVisibility | ( | const vtkStdString & | name | ) |
Get the visibility of the specified column.
void vtkScatterPlotMatrix::SetColumnVisibilityAll | ( | bool | visible | ) |
Set the visibility of all columns (true will make them all visible, false will remove all visible columns).
virtual vtkStringArray* vtkScatterPlotMatrix::GetVisibleColumns | ( | ) | [virtual] |
Get a list of the columns, and the order in which they are displayed.
virtual void vtkScatterPlotMatrix::SetVisibleColumns | ( | vtkStringArray * | visColumns | ) | [virtual] |
Set the list of visible columns, and the order in which they will be displayed.
virtual void vtkScatterPlotMatrix::SetNumberOfBins | ( | int | numberOfBins | ) | [virtual] |
Set the number of bins in the histograms along the central diagonal of the scatter plot matrix.
virtual int vtkScatterPlotMatrix::GetNumberOfBins | ( | ) | const [inline, virtual] |
Get the number of bins the histograms along the central diagonal scatter plot matrix. The default value is 10.
Definition at line 118 of file vtkScatterPlotMatrix.h.
void vtkScatterPlotMatrix::SetPlotColor | ( | int | plotType, |
const vtkColor4ub & | color | ||
) |
Set the color for the specified plotType.
void vtkScatterPlotMatrix::SetPlotMarkerStyle | ( | int | plotType, |
int | style | ||
) |
Sets the marker style for the specified plotType.
void vtkScatterPlotMatrix::SetPlotMarkerSize | ( | int | plotType, |
float | size | ||
) |
Sets the marker size for the specified plotType.
bool vtkScatterPlotMatrix::Hit | ( | const vtkContextMouseEvent & | mouse | ) | [virtual] |
Return true if the supplied x, y coordinate is inside the item.
Reimplemented from vtkAbstractContextItem.
bool vtkScatterPlotMatrix::MouseMoveEvent | ( | const vtkContextMouseEvent & | mouse | ) | [virtual] |
Mouse move event.
Reimplemented from vtkAbstractContextItem.
bool vtkScatterPlotMatrix::MouseButtonPressEvent | ( | const vtkContextMouseEvent & | mouse | ) | [virtual] |
Mouse button down event
Reimplemented from vtkAbstractContextItem.
bool vtkScatterPlotMatrix::MouseButtonReleaseEvent | ( | const vtkContextMouseEvent & | mouse | ) | [virtual] |
Mouse button release event.
Reimplemented from vtkAbstractContextItem.
int vtkScatterPlotMatrix::GetPlotType | ( | const vtkVector2i & | pos | ) |
Returns the type of the plot at the given position. The return value is one of: SCATTERPLOT, HISTOGRAM, ACTIVEPLOT, or NOPLOT.
int vtkScatterPlotMatrix::GetPlotType | ( | int | row, |
int | column | ||
) |
Returns the type of the plot at the given position. The return value is one of: SCATTERPLOT, HISTOGRAM, ACTIVEPLOT, or NOPLOT.
void vtkScatterPlotMatrix::SetTitle | ( | const vtkStdString & | title | ) |
Set/get the scatter plot title.
Set/get the scatter plot title.
void vtkScatterPlotMatrix::SetTitleProperties | ( | vtkTextProperty * | prop | ) |
Set/get the text properties for the chart title, i.e. color, font, size.
Set/get the text properties for the chart title, i.e. color, font, size.
void vtkScatterPlotMatrix::SetGridVisibility | ( | int | plotType, |
bool | visible | ||
) |
Sets whether or not the grid for the given axis is visible given a plot type, which refers to vtkScatterPlotMatrix::{SCATTERPLOT, HISTOGRAM, ACTIVEPLOT}.
bool vtkScatterPlotMatrix::GetGridVisibility | ( | int | plotType | ) |
Sets whether or not the grid for the given axis is visible given a plot type, which refers to vtkScatterPlotMatrix::{SCATTERPLOT, HISTOGRAM, ACTIVEPLOT}.
void vtkScatterPlotMatrix::SetBackgroundColor | ( | int | plotType, |
const vtkColor4ub & | color | ||
) |
Sets the background color for the chart given a plot type, which refers to vtkScatterPlotMatrix::{SCATTERPLOT, HISTOGRAM, ACTIVEPLOT}.
vtkColor4ub vtkScatterPlotMatrix::GetBackgroundColor | ( | int | plotType | ) |
Sets the background color for the chart given a plot type, which refers to vtkScatterPlotMatrix::{SCATTERPLOT, HISTOGRAM, ACTIVEPLOT}.
void vtkScatterPlotMatrix::SetAxisColor | ( | int | plotType, |
const vtkColor4ub & | color | ||
) |
Sets the color for the axes given a plot type, which refers to vtkScatterPlotMatrix::{SCATTERPLOT, HISTOGRAM, ACTIVEPLOT}.
vtkColor4ub vtkScatterPlotMatrix::GetAxisColor | ( | int | plotType | ) |
Sets the color for the axes given a plot type, which refers to vtkScatterPlotMatrix::{SCATTERPLOT, HISTOGRAM, ACTIVEPLOT}.
void vtkScatterPlotMatrix::SetGridColor | ( | int | plotType, |
const vtkColor4ub & | color | ||
) |
Sets the color for the axes given a plot type, which refers to vtkScatterPlotMatrix::{SCATTERPLOT, HISTOGRAM, ACTIVEPLOT}.
vtkColor4ub vtkScatterPlotMatrix::GetGridColor | ( | int | plotType | ) |
Sets the color for the axes given a plot type, which refers to vtkScatterPlotMatrix::{SCATTERPLOT, HISTOGRAM, ACTIVEPLOT}.
void vtkScatterPlotMatrix::SetAxisLabelVisibility | ( | int | plotType, |
bool | visible | ||
) |
Sets whether or not the labels for the axes are visible, given a plot type, which refers to vtkScatterPlotMatrix::{SCATTERPLOT, HISTOGRAM, ACTIVEPLOT}.
bool vtkScatterPlotMatrix::GetAxisLabelVisibility | ( | int | plotType | ) |
Sets whether or not the labels for the axes are visible, given a plot type, which refers to vtkScatterPlotMatrix::{SCATTERPLOT, HISTOGRAM, ACTIVEPLOT}.
void vtkScatterPlotMatrix::SetAxisLabelProperties | ( | int | plotType, |
vtkTextProperty * | prop | ||
) |
Set/get the text property for the axis labels of the given plot type, possible types are vtkScatterPlotMatrix::{SCATTERPLOT, HISTOGRAM, ACTIVEPLOT}.
Set/get the text property for the axis labels of the given plot type, possible types are vtkScatterPlotMatrix::{SCATTERPLOT, HISTOGRAM, ACTIVEPLOT}.
void vtkScatterPlotMatrix::SetAxisLabelNotation | ( | int | plotType, |
int | notation | ||
) |
Sets the axis label notation for the axes given a plot type, which refers to vtkScatterPlotMatrix::{SCATTERPLOT, HISTOGRAM, ACTIVEPLOT}.
int vtkScatterPlotMatrix::GetAxisLabelNotation | ( | int | plotType | ) |
Sets the axis label notation for the axes given a plot type, which refers to vtkScatterPlotMatrix::{SCATTERPLOT, HISTOGRAM, ACTIVEPLOT}.
void vtkScatterPlotMatrix::SetAxisLabelPrecision | ( | int | plotType, |
int | precision | ||
) |
Sets the axis label precision for the axes given a plot type, which refers to vtkScatterPlotMatrix::{SCATTERPLOT, HISTOGRAM, ACTIVEPLOT}.
int vtkScatterPlotMatrix::GetAxisLabelPrecision | ( | int | plotType | ) |
Sets the axis label precision for the axes given a plot type, which refers to vtkScatterPlotMatrix::{SCATTERPLOT, HISTOGRAM, ACTIVEPLOT}.
void vtkScatterPlotMatrix::SetTooltipNotation | ( | int | plotType, |
int | notation | ||
) |
Set chart's tooltip notation and precision, given a plot type, which refers to vtkScatterPlotMatrix::{SCATTERPLOT, HISTOGRAM, ACTIVEPLOT}.
void vtkScatterPlotMatrix::SetTooltipPrecision | ( | int | plotType, |
int | precision | ||
) |
Set chart's tooltip notation and precision, given a plot type, which refers to vtkScatterPlotMatrix::{SCATTERPLOT, HISTOGRAM, ACTIVEPLOT}.
int vtkScatterPlotMatrix::GetTooltipNotation | ( | int | plotType | ) |
Set chart's tooltip notation and precision, given a plot type, which refers to vtkScatterPlotMatrix::{SCATTERPLOT, HISTOGRAM, ACTIVEPLOT}.
int vtkScatterPlotMatrix::GetTooltipPrecision | ( | int | plotType | ) |
Set chart's tooltip notation and precision, given a plot type, which refers to vtkScatterPlotMatrix::{SCATTERPLOT, HISTOGRAM, ACTIVEPLOT}.
void vtkScatterPlotMatrix::SetTooltip | ( | vtkTooltipItem * | tooltip | ) |
Set the vtkTooltipItem object that will be displayed by the active chart.
vtkTooltipItem* vtkScatterPlotMatrix::GetTooltip | ( | ) | const |
Get the vtkTooltipItem object that will be displayed by the active chart.
void vtkScatterPlotMatrix::SetIndexedLabels | ( | vtkStringArray * | labels | ) |
Set indexed labels array.
Get the indexed labels array.
void vtkScatterPlotMatrix::SetScatterPlotSelectedRowColumnColor | ( | const vtkColor4ub & | color | ) |
Set the scatter plot selected row/column charts' background color.
Set the scatter plot selected row/column charts' background color.
void vtkScatterPlotMatrix::SetScatterPlotSelectedActiveColor | ( | const vtkColor4ub & | color | ) |
Set the scatter plot selected active chart background color.
Set the scatter plot selected active chart background color.
void vtkScatterPlotMatrix::UpdateSettings | ( | ) |
Convenient method to update all the chart settings
void vtkScatterPlotMatrix::UpdateChartSettings | ( | int | plotType | ) |
Update charts based on settings given the plot type
virtual void vtkScatterPlotMatrix::SetSelectionMode | ( | int | ) | [virtual] |
Set/get the Selection Mode that will be used by the chart while doing selection. The only valid enums are vtkContextScene::SELECTION_NONE, SELECTION_DEFAULT, SELECTION_ADDITION, SELECTION_SUBTRACTION, SELECTION_TOGGLE
virtual int vtkScatterPlotMatrix::GetSelectionMode | ( | ) | [virtual] |
Set/get the Selection Mode that will be used by the chart while doing selection. The only valid enums are vtkContextScene::SELECTION_NONE, SELECTION_DEFAULT, SELECTION_ADDITION, SELECTION_SUBTRACTION, SELECTION_TOGGLE
Get the column name for the supplied index.
Get the column name for the supplied index.
void vtkScatterPlotMatrix::SetNumberOfFrames | ( | int | frames | ) |
Set the number of animation frames in each transition. Default is 25, and 0 means to animations between axes.
Get the number of animation frames in each transition. Default is 25, and 0 means to animations between axes.
Clear the animation path.
bool vtkScatterPlotMatrix::AddAnimationPath | ( | const vtkVector2i & | move | ) |
Add a move to the animation path. Note that a move can only change i or j, not both. If the proposed move does not satisfy those criteria it will be rejected and the animation path will not be extended.
Get the number of elements (transitions) in the animation path.
Get the element specified from the animation path.
bool vtkScatterPlotMatrix::BeginAnimationPath | ( | vtkRenderWindowInteractor * | interactor | ) |
Trigger the animation of the scatter plot matrix to begin.
virtual void vtkScatterPlotMatrix::AdvanceAnimation | ( | ) | [virtual] |
Advance the animation in response to the timer events. This is public to allow the animation to be manually advanced when timers are not a
virtual vtkChart* vtkScatterPlotMatrix::GetMainChart | ( | ) | [virtual] |
Get the main plot (the one in the top-right of the matrix.
void vtkScatterPlotMatrix::UpdateLayout | ( | ) | [protected] |
Internal helper to do the layout of the charts in the scatter plot matrix.
void vtkScatterPlotMatrix::AttachAxisRangeListener | ( | vtkAxis * | ) | [protected] |
Attach axis range listener so we can forward to dependent axes in matrix.
void vtkScatterPlotMatrix::AxisRangeForwarderCallback | ( | vtkObject * | , |
unsigned | long, | ||
void * | |||
) | [protected] |
Attach axis range listener so we can forward to dependent axes in matrix.
void vtkScatterPlotMatrix::BigChartSelectionCallback | ( | vtkObject * | , |
unsigned | long, | ||
void * | |||
) | [protected] |
The callback function when SelectionChangedEvent is invoked from the Big chart. This class will just forward the event.
virtual void vtkScatterPlotMatrix::UpdateAnimationPath | ( | const vtkVector2i & | newActivePos | ) | [protected, virtual] |
Given a new position for the active plot, calculate a an animation path from the old active plot to the new active plot.
virtual void vtkScatterPlotMatrix::StartAnimation | ( | vtkRenderWindowInteractor * | interactor | ) | [protected, virtual] |
Given the render window interactor, start animation of the animation path calculated above.
static void vtkScatterPlotMatrix::ProcessEvents | ( | vtkObject * | caller, |
unsigned long | event, | ||
void * | clientData, | ||
void * | callerData | ||
) | [static, protected] |
Process events and dispatch to the appropriate member functions.
friend class PIMPL [friend] |
Definition at line 369 of file vtkScatterPlotMatrix.h.
vtkVector2i vtkScatterPlotMatrix::ActivePlot [protected] |
Definition at line 342 of file vtkScatterPlotMatrix.h.
vtkSmartPointer<vtkTable> vtkScatterPlotMatrix::Input [protected] |
Definition at line 345 of file vtkScatterPlotMatrix.h.
vtkNew<vtkStringArray> vtkScatterPlotMatrix::VisibleColumns [protected] |
Definition at line 348 of file vtkScatterPlotMatrix.h.
int vtkScatterPlotMatrix::NumberOfBins [protected] |
Definition at line 351 of file vtkScatterPlotMatrix.h.
vtkStdString vtkScatterPlotMatrix::Title [protected] |
Definition at line 354 of file vtkScatterPlotMatrix.h.
Definition at line 355 of file vtkScatterPlotMatrix.h.
int vtkScatterPlotMatrix::SelectionMode [protected] |
Definition at line 358 of file vtkScatterPlotMatrix.h.
int vtkScatterPlotMatrix::NumberOfFrames [protected] |
Definition at line 361 of file vtkScatterPlotMatrix.h.