Go to the documentation of this file.
30 #include "vtkChartsCoreModule.h"
97 vtkGetMacro(SelectedColumn,
int);
222 int invokeEvent = -1);
230 void operator=(
const vtkChartBox &) VTK_DELETE_FUNCTION;
249 #endif //vtkChartBox_h
Factory class for drawing 2D charts.
virtual vtkIdType GetNumberOfPlots()
Get the number of plots the chart contains.
int LocatePointInPlot(const vtkVector2f &position, const vtkVector2f &tolerance, vtkVector2f &plotPos, vtkPlot *plot, vtkIdType &segmentIndex)
data structure to represent mouse events.
virtual bool MouseMoveEvent(const vtkContextMouseEvent &mouse)
Mouse move event.
virtual void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
void SwapAxes(int a1, int a2)
virtual void Update()
Perform any updates to the item that may be necessary before rendering.
record modification and/or execution time
vtkStringArray * VisibleColumns
A list of the visible columns in the chart.
virtual vtkTooltipItem * GetTooltip()
Get the vtkTooltipItem object that will be displayed by the chart.
void SetColumnVisibility(const vtkStdString &name, bool visible)
Set the visibility of the specified column.
virtual bool Hit(const vtkContextMouseEvent &mouse)
Return true if the supplied x, y coordinate is inside the item.
Factory class for drawing box plot charts.
bool GetColumnVisibility(const vtkStdString &name)
Get the visibility of the specified column.
Class for drawing 2D primitives to a graphical context.
Abstract class for 2D plots.
virtual vtkIdType GetNumberOfVisibleColumns()
Get the number of visible box plots in the current chart.
virtual vtkPlot * GetPlot(vtkIdType index)
Get the plot at the specified index, returns null if the index is invalid.
Class for drawing box plots.
virtual bool Paint(vtkContext2D *painter)
Paint event for the chart, called whenever the chart needs to be drawn.
virtual void SetTooltip(vtkTooltipItem *tooltip)
Set the vtkTooltipItem object that will be displayed by the chart.
bool LocatePointInPlots(const vtkContextMouseEvent &mouse, int invokeEvent=-1)
Try to locate a point within the plots to display in a tooltip.
a simple class to control print indentation
virtual bool MouseButtonPressEvent(const vtkContextMouseEvent &mouse)
Mouse button down event.
virtual vtkAxis * GetYAxis()
Get the chart Y axis.
vtkTimeStamp BuildTime
The point cache is marked dirty until it has been initialized.
void SetColumnVisibilityAll(bool visible)
Set the visibility of all columns (true will make them all visible, false will remove all visible col...
bool GetColumnVisibility(vtkIdType column)
vtkIdType GetColumnId(const vtkStdString &name)
Get the input table column id of a column by its name.
int SelectedColumn
Index of the selected column in the visible columns list.
virtual void SetTooltipInfo(const vtkContextMouseEvent &, const vtkVector2d &, vtkIdType, vtkPlot *, vtkIdType segmentIndex=-1)
Set the information passed to the tooltip.
float SelectedColumnDelta
virtual void SetPlot(vtkPlotBox *plot)
Set plot to use for the chart.
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkVector2i ScreenPosition
dynamic, self-adjusting array of vtkIdType
vtkSmartPointer< vtkTooltipItem > Tooltip
The tooltip item for the chart - can be used to display extra information.
virtual bool MouseButtonReleaseEvent(const vtkContextMouseEvent &mouse)
Mouse button release event.
Small struct used by InvokeEvent to send some information about the point that was clicked on.
takes care of drawing 2D axes
virtual float GetXPosition(int index)
Get the column X position by index in the visible set.
a vtkAbstractArray subclass for strings
void SetColumnVisibility(vtkIdType column, bool visible)
Some derived classes for the different vectors commonly used.
Wrapper around std::string to keep symbols short.
void UpdateGeometry(vtkContext2D *)
static vtkChartBox * New()
Creates a parallel coordinates chart.
vtkIdTypeArray * Selection
Selected indices for the table the plot is rendering.
void CalculatePlotTransform()