VTK
|
Class for drawing box plots. More...
#include <vtkPlotBox.h>
Class for drawing box plots.
Plots to draw box plots given columns from a vtkTable that may contains 5 lines with quartiles and median.
Definition at line 40 of file vtkPlotBox.h.
typedef vtkPlot vtkPlotBox::Superclass |
Reimplemented from vtkPlot.
Definition at line 43 of file vtkPlotBox.h.
vtkPlotBox::vtkPlotBox | ( | ) | [protected] |
vtkPlotBox::~vtkPlotBox | ( | ) | [protected] |
static int vtkPlotBox::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 vtkPlot.
virtual int vtkPlotBox::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 vtkPlot.
static vtkPlotBox* vtkPlotBox::SafeDownCast | ( | vtkObjectBase * | o | ) | [static] |
Reimplemented from vtkPlot.
virtual vtkObjectBase* vtkPlotBox::NewInstanceInternal | ( | ) | const [protected, virtual] |
Reimplemented from vtkPlot.
vtkPlotBox* vtkPlotBox::NewInstance | ( | ) | const |
Reimplemented from vtkPlot.
virtual void vtkPlotBox::PrintSelf | ( | ostream & | os, |
vtkIndent | indent | ||
) | [virtual] |
static vtkPlotBox* vtkPlotBox::New | ( | ) | [static] |
Creates a box plot.
Reimplemented from vtkObject.
virtual void vtkPlotBox::Update | ( | ) | [virtual] |
Perform any updates to the item that may be necessary before rendering. The scene should take care of calling this on all items before their Paint function is invoked.
Reimplemented from vtkAbstractContextItem.
virtual bool vtkPlotBox::Paint | ( | vtkContext2D * | painter | ) | [virtual] |
Paint event for the plot, called whenever the chart needs to be drawn
Reimplemented from vtkAbstractContextItem.
virtual bool vtkPlotBox::PaintLegend | ( | vtkContext2D * | painter, |
const vtkRectf & | rect, | ||
int | legendIndex | ||
) | [virtual] |
Paint legend event for the plot, called whenever the legend needs the plot items symbol/mark/line drawn. A rect is supplied with the lower left corner of the rect (elements 0 and 1) and with width x height (elements 2 and 3). The plot can choose how to fill the space supplied.
Reimplemented from vtkPlot.
virtual void vtkPlotBox::SetInputData | ( | vtkTable * | table | ) | [virtual] |
This is a convenience function to set the input table.
Reimplemented from vtkPlot.
virtual void vtkPlotBox::SetInputData | ( | vtkTable * | table, |
const vtkStdString & | , | ||
const vtkStdString & | |||
) | [inline, virtual] |
This is a convenience function to set the input table.
Reimplemented from vtkPlot.
Definition at line 70 of file vtkPlotBox.h.
virtual vtkStringArray* vtkPlotBox::GetLabels | ( | ) | [virtual] |
Get the plot labels. If this array has a length greater than 1 the index refers to the stacked objects in the plot.
Reimplemented from vtkPlot.
virtual vtkIdType vtkPlotBox::GetNearestPoint | ( | const vtkVector2f & | point, |
const vtkVector2f & | tolerance, | ||
vtkVector2f * | location | ||
) | [virtual] |
Function to query a plot for the nearest point to the specified coordinate. Returns the index of the data series with which the point is associated or -1.
Reimplemented from vtkPlot.
void vtkPlotBox::SetLookupTable | ( | vtkScalarsToColors * | lut | ) |
Specify a lookup table for the mapper to use.
Specify a lookup table for the mapper to use.
void vtkPlotBox::SetColumnColor | ( | const vtkStdString & | colName, |
double * | rgb | ||
) |
Helper function to set the color of a given column.
virtual void vtkPlotBox::CreateDefaultLookupTable | ( | ) | [virtual] |
Create default lookup table. Generally used to create one when none is available with the scalar data.
virtual float vtkPlotBox::GetBoxWidth | ( | ) | [virtual] |
Get/Set the width of boxes.
virtual void vtkPlotBox::SetBoxWidth | ( | float | ) | [virtual] |
Get/Set the width of boxes.
virtual vtkTextProperty* vtkPlotBox::GetTitleProperties | ( | ) | [virtual] |
Get the vtkTextProperty that governs how the plot title is displayed.
void vtkPlotBox::DrawBoxPlot | ( | int | , |
unsigned char * | , | ||
double | , | ||
vtkContext2D * | |||
) | [protected] |
bool vtkPlotBox::UpdateTableCache | ( | vtkTable * | table | ) | [protected] |
Update the table cache.
Private* vtkPlotBox::Storage [protected] |
Definition at line 126 of file vtkPlotBox.h.
vtkTimeStamp vtkPlotBox::BuildTime [protected] |
The point cache is marked dirty until it has been initialized.
Definition at line 131 of file vtkPlotBox.h.
float vtkPlotBox::BoxWidth [protected] |
Width of boxes.
Definition at line 134 of file vtkPlotBox.h.
vtkScalarsToColors* vtkPlotBox::LookupTable [protected] |
Lookup Table for coloring points by scalar value
Definition at line 137 of file vtkPlotBox.h.
vtkTextProperty* vtkPlotBox::TitleProperties [protected] |
Text properties for the plot title
Definition at line 140 of file vtkPlotBox.h.