PlotItem is the superclass of any object that is meant to be placed on the canvas (plots, annotations, shapes, etc.).
More...
#include <PlotItem.h>
PlotItem is the superclass of any object that is meant to be placed on the canvas (plots, annotations, shapes, etc.).
A PlotItem is assumed to have an x and y axis for drawing on the canvas.
Definition at line 40 of file PlotItem.h.
casa::PlotItem::PlotItem |
( |
| ) |
|
virtual casa::PlotItem::~PlotItem |
( |
| ) |
|
|
virtual |
virtual PlotCanvas* casa::PlotItem::canvas |
( |
| ) |
const |
|
pure virtual |
Returns the canvas this item is currently attached to, or NULL for none.
virtual unsigned int casa::PlotItem::drawCount |
( |
| ) |
const |
|
pure virtual |
Returns the "draw count" for this item, which subjectively means how many indexed draw operations this item needs to make.
This is used to make comparative judgments about how long each item will take to draw, and to possibly divide up the work for larger items. For example, a plot with 1000 data points might return 1000, while a square might return 1. Whatever number is returned, the item should expect to be able to draw given two indexes; for example, a plot should be able to draw from index 0 to index 100.
Implemented in casa::BarPlot, casa::PlotPoint, casa::PlotShapePath, casa::PlotShapePolygon, casa::ScatterPlot, casa::PlotAnnotation, and casa::PlotShape.
virtual unsigned int casa::PlotItem::drawSegments |
( |
unsigned int |
segmentThreshold | ) |
const |
|
virtual |
Returns the number of draw segments for this item, using the given segment threshold.
See DrawCount(). DEFAULT IMPLEMENTATION.
virtual bool casa::PlotItem::isQWidget |
( |
| ) |
const |
|
pure virtual |
Returns whether this item can be directly casted to a QWidget or not.
virtual bool casa::PlotItem::isValid |
( |
| ) |
const |
|
pure virtual |
Returns true if this item is valid, false otherwise.
Although validity varies between items, canvases should NOT draw items which are invalid.
Sets both the item's axes at once.
DEFAULT IMPLEMENTATION.
Sets this items's title to the given.
virtual void casa::PlotItem::setXAxis |
( |
PlotAxis |
x | ) |
|
|
pure virtual |
virtual void casa::PlotItem::setYAxis |
( |
PlotAxis |
y | ) |
|
|
pure virtual |
Returns a human-readable title for identification.
Doesn't have to be unique. Used for (for example) legends and other user-interactions. Note: PlotItems that have no titles should not be shown on the legend.
virtual PlotAxis casa::PlotItem::xAxis |
( |
| ) |
const |
|
pure virtual |
virtual PlotAxis casa::PlotItem::yAxis |
( |
| ) |
const |
|
pure virtual |
The documentation for this class was generated from the following file: