Public Methods |
virtual const char * | GetClassName () |
virtual int | IsA (const char *type) |
void | PrintSelf (ostream &os, vtkIndent indent) |
void | AddInput (vtkDataSet *in) |
void | RemoveInput (vtkDataSet *in) |
vtkDataSetCollection * | GetInputList () |
void | SetPointComponent (int i, int comp) |
int | GetPointComponent (int i) |
virtual void | SetXValues (int) |
virtual int | GetXValues () |
void | SetXValuesToIndex () |
void | SetXValuesToArcLength () |
void | SetXValuesToNormalizedArcLength () |
void | SetXValuesToValue () |
const char * | GetXValuesAsString () |
void | AddDataObjectInput (vtkDataObject *in) |
void | RemoveDataObjectInput (vtkDataObject *in) |
vtkDataObjectCollection * | GetDataObjectInputList () |
virtual void | SetDataObjectPlotMode (int) |
virtual int | GetDataObjectPlotMode () |
void | SetDataObjectPlotModeToRows () |
void | SetDataObjectPlotModeToColumns () |
const char * | GetDataObjectPlotModeAsString () |
void | SetDataObjectXComponent (int i, int comp) |
int | GetDataObjectXComponent (int i) |
void | SetDataObjectYComponent (int i, int comp) |
int | GetDataObjectYComponent (int i) |
void | SetPlotColor (int i, float r, float g, float b) |
void | SetPlotColor (int i, float color[3]) |
float * | GetPlotColor (int i) |
void | SetPlotSymbol (int i, vtkPolyData *input) |
vtkPolyData * | GetPlotSymbol (int i) |
void | SetPlotLabel (int i, const char *label) |
const char * | GetPlotLabel (int i) |
vtkLegendBoxActor * | GetLegendBoxActor () |
vtkGlyphSource2D * | GetGlyphSource () |
virtual void | SetTitle (const char *) |
virtual char * | GetTitle () |
virtual void | SetXTitle (const char *) |
virtual char * | GetXTitle () |
virtual void | SetYTitle (const char *) |
virtual char * | GetYTitle () |
virtual void | SetXRange (float, float) |
void | SetXRange (float[2]) |
virtual float * | GetXRange () |
virtual void | GetXRange (float data[2]) |
virtual void | SetYRange (float, float) |
void | SetYRange (float[2]) |
virtual float * | GetYRange () |
virtual void | GetYRange (float data[2]) |
void | SetPlotRange (float xmin, float ymin, float xmax, float ymax) |
virtual void | SetNumberOfXLabels (int) |
virtual int | GetNumberOfXLabels () |
virtual void | SetNumberOfYLabels (int) |
virtual int | GetNumberOfYLabels () |
void | SetNumberOfLabels (int num) |
virtual void | SetLegend (int) |
virtual int | GetLegend () |
virtual void | LegendOn () |
virtual void | LegendOff () |
virtual void | SetLegendPosition (float, float) |
void | SetLegendPosition (float[2]) |
virtual float * | GetLegendPosition () |
virtual void | GetLegendPosition (float &, float &) |
virtual void | GetLegendPosition (float[2]) |
virtual void | SetLegendPosition2 (float, float) |
void | SetLegendPosition2 (float[2]) |
virtual float * | GetLegendPosition2 () |
virtual void | GetLegendPosition2 (float &, float &) |
virtual void | GetLegendPosition2 (float[2]) |
virtual void | SetBold (int) |
virtual int | GetBold () |
virtual void | BoldOn () |
virtual void | BoldOff () |
virtual void | SetItalic (int) |
virtual int | GetItalic () |
virtual void | ItalicOn () |
virtual void | ItalicOff () |
virtual void | SetShadow (int) |
virtual int | GetShadow () |
virtual void | ShadowOn () |
virtual void | ShadowOff () |
virtual void | SetFontFamily (int) |
virtual int | GetFontFamily () |
void | SetFontFamilyToArial () |
void | SetFontFamilyToCourier () |
void | SetFontFamilyToTimes () |
virtual void | SetLabelFormat (const char *) |
virtual char * | GetLabelFormat () |
virtual void | SetBorder (int) |
virtual int | GetBorder () |
virtual int | GetPlotPoints () |
virtual void | SetPlotPoints (int) |
virtual void | PlotPointsOn () |
virtual void | PlotPointsOff () |
virtual int | GetPlotLines () |
virtual void | SetPlotLines (int) |
virtual void | PlotLinesOn () |
virtual void | PlotLinesOff () |
virtual void | SetGlyphSize (float) |
virtual float | GetGlyphSize () |
void | ViewportToPlotCoordinate (vtkViewport *viewport, float &u, float &v) |
void | ViewportToPlotCoordinate (vtkViewport *viewport) |
virtual void | SetPlotCoordinate (float, float) |
void | SetPlotCoordinate (float[2]) |
virtual float * | GetPlotCoordinate () |
virtual void | GetPlotCoordinate (float &, float &) |
virtual void | GetPlotCoordinate (float[2]) |
void | PlotToViewportCoordinate (vtkViewport *viewport, float &u, float &v) |
void | PlotToViewportCoordinate (vtkViewport *viewport) |
virtual void | SetViewportCoordinate (float, float) |
void | SetViewportCoordinate (float[2]) |
virtual float * | GetViewportCoordinate () |
virtual void | GetViewportCoordinate (float &, float &) |
virtual void | GetViewportCoordinate (float[2]) |
int | IsInPlot (vtkViewport *viewport, float u, float v) |
unsigned long | GetMTime () |
int | RenderOpaqueGeometry (vtkViewport *) |
int | RenderOverlay (vtkViewport *) |
int | RenderTranslucentGeometry (vtkViewport *) |
void | ReleaseGraphicsResources (vtkWindow *) |
Static Public Methods |
int | IsTypeOf (const char *type) |
vtkXYPlotActor * | SafeDownCast (vtkObject *o) |
vtkXYPlotActor * | New () |
Protected Methods |
| vtkXYPlotActor () |
| ~vtkXYPlotActor () |
| vtkXYPlotActor (const vtkXYPlotActor &) |
void | operator= (const vtkXYPlotActor &) |
void | InitializeEntries () |
void | ComputeXRange (float range[2], float *lengths) |
void | ComputeYRange (float range[2]) |
void | ComputeDORange (float xrange[2], float yrange[2], float *lengths) |
virtual void | CreatePlotData (int *pos, int *pos2, float xRange[2], float yRange[2], float *norms, int numDS, int numDO) |
void | PlaceAxes (vtkViewport *viewport, int *size, int pos[2], int pos2[2]) |
void | GenerateClipPlanes (int *pos, int *pos2) |
float | ComputeGlyphScale (int i, int *pos, int *pos2) |
void | ClipPlotData (int *pos, int *pos2, vtkPolyData *pd) |
Protected Attributes |
vtkDataSetCollection * | InputList |
vtkDataObjectCollection * | DataObjectInputList |
char * | Title |
char * | XTitle |
char * | YTitle |
int | XValues |
int | NumberOfXLabels |
int | NumberOfYLabels |
int | Bold |
int | Italic |
int | Shadow |
int | FontFamily |
char * | LabelFormat |
float | XRange [2] |
float | YRange [2] |
float | XComputedRange [2] |
float | YComputedRange [2] |
int | Border |
int | PlotLines |
int | PlotPoints |
vtkTextMapper * | TitleMapper |
vtkActor2D * | TitleActor |
vtkAxisActor2D * | XAxis |
vtkAxisActor2D * | YAxis |
float | ViewportCoordinate [2] |
float | PlotCoordinate [2] |
int | DataObjectPlotMode |
vtkIntArray * | XComponent |
vtkIntArray * | YComponent |
int | NumberOfInputs |
vtkPolyData ** | PlotData |
vtkGlyph2D ** | PlotGlyph |
vtkAppendPolyData ** | PlotAppend |
vtkPolyDataMapper2D ** | PlotMapper |
vtkActor2D ** | PlotActor |
int | Legend |
float | LegendPosition [2] |
float | LegendPosition2 [2] |
vtkLegendBoxActor * | LegendActor |
vtkGlyphSource2D * | GlyphSource |
vtkPlanes * | ClipPlanes |
float | GlyphSize |
int | CachedSize [2] |
vtkTimeStamp | BuildTime |
To use this class to plot (a) dataset(s), you must specify one or more input data set containing scalar and point data. You'll probably also want to invoke a method to control how the point coordinates are converted into x values (by default point ids are used).
To use this class to plot field data, you must specify one or more input data objects with its associated field data. You'll also want to specify which component to use as the x-axis and which to use as the y-axis. Note that when plotting field data, the x and y values are used directly (i.e., there are no options to normalize the components).
Once you've set up the plot, you'll want to position it. The PositionCoordinate defines the lower-left location of the x-y plot (specified in normalized viewport coordinates) and the Position2Coordinate define the upper-right corner. (Note: the Position2Coordinate is relative to PositionCoordinate, so you can move the vtkXYPlotActor around the viewport by setting just the PositionCoordinate.) The combination of the two position coordinates specifies a rectangle in which the plot will lie.
Optional features include the ability to specify axes labels, label format, plot title, and control font properties and type. You can also manually specify the x and y plot ranges (by default they are computed automatically). The Border instance variable is used to create space between the boundary of the plot window (specified by PositionCoordinate and Position2Coordinate) and the plot itself.