#include <vtkXYPlotActor.h>
Inheritance diagram for vtkXYPlotActor:
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.
Definition at line 117 of file vtkXYPlotActor.h.
|
|
|
|
|
Definition at line 385 of file vtkXYPlotActor.h. |
|
Return the class name as a string. This method is defined in all subclasses of vtkObject with the vtkTypeMacro found in vtkSetGet.h. Reimplemented from vtkActor2D. |
|
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 vtkActor2D. |
|
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 vtkActor2D. |
|
Will cast the supplied object to vtkObject* is this is a safe operation (i.e., a safe downcast); otherwise NULL is returned. This method is defined in all subclasses of vtkObject with the vtkTypeMacro found in vtkSetGet.h. Reimplemented from vtkActor2D. |
|
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 vtkActor2D. |
|
Instantiate object with autorange computation; bold, italic, and shadows on; arial font family; the number of labels set to 5 for the x and y axes; a label format of "-#6.3g"; and x coordinates computed from point ids. Reimplemented from vtkActor2D. |
|
Add a dataset to the list of data to append. |
|
Remove a dataset from the list of data to append. |
|
Return the list of inputs to this filter. Definition at line 141 of file vtkXYPlotActor.h. |
|
If plotting points by value, which component to use to determine the value. This sets a value per each input dataset (i.e., the ith dataset). |
|
|
|
Specify how the independent (x) variable is computed from the points. The independent variable can be the scalar/point index (i.e., point id), the accumulated arc length along the points, the normalized arc length, or by component value. If plotting datasets (e.g., points), the value that is used is specified by the PointComponent ivar. (Note: these methods also control how field data is plotted. Field data is usually plotted by value or index, if plotting length 1-dimensional length measures are used.) |
|
|
|
Definition at line 160 of file vtkXYPlotActor.h. |
|
Definition at line 161 of file vtkXYPlotActor.h. |
|
Definition at line 162 of file vtkXYPlotActor.h. |
|
Definition at line 164 of file vtkXYPlotActor.h. |
|
|
|
Add a dataset to the list of data to append. |
|
Remove a dataset from the list of data to append. |
|
Return the list of inputs to this filter. Definition at line 179 of file vtkXYPlotActor.h. |
|
Indicate whether to plot rows or columns. If plotting rows, then the dependent variables is taken from a specified row, versus rows (y). |
|
|
|
Definition at line 186 of file vtkXYPlotActor.h. |
|
Definition at line 188 of file vtkXYPlotActor.h. |
|
|
|
Specify which component of the input data object to use as the independent variable for the ith input data object. (This ivar is ignored if plotting the index.) Note that the value is interpreted differently depending on DataObjectPlotMode. If the mode is Rows, then the value of DataObjectXComponent is the row number; otherwise it's the column number. |
|
|
|
Specify which component of the input data object to use as the dependent variable for the ith input data object. (This ivar is ignored if plotting the index.) Note that the value is interpreted differently depending on DataObjectPlotMode. If the mode is Rows, then the value of DataObjectYComponent is the row number; otherwise it's the column number. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Retrieve handles to the legend box and glyph source. This is useful if you would like to change the default behavior of the legend box or glyph source. For example, the default glyph can be changed from a line to a vertex plus line, etc.) Definition at line 229 of file vtkXYPlotActor.h. |
|
Definition at line 231 of file vtkXYPlotActor.h. |
|
Set/Get the title of the x-y plot, and the title along the x and y axes. |
|
|
|
|
|
|
|
|
|
|
|
Set the plot range (range of independent and dependent variables) to plot. Data outside of the range will be clipped. If the plot range of either the x or y variables is set to (v1,v2), where v1 == v2, then the range will be computed automatically. Note that the x-range values should be consistent with the way the independent variable is created (via INDEX, DISTANCE, or ARC_LENGTH). |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Definition at line 253 of file vtkXYPlotActor.h. |
|
Set/Get the number of annotation labels to show along the x and y axes. This values is a suggestion: the number of labels may vary depending on the particulars of the data. The convenience method SetNumberOfLables() sets the number of x and y labels to the same value. |
|
|
|
|
|
|
|
Definition at line 265 of file vtkXYPlotActor.h. |
|
Enable/Disable the creation of a legend. If on, the legend labels will be created automatically unless the per plot legend symbol has been set. |
|
|
|
|
|
|
|
Use these methods to control the position of the legend. The variables LegendPosition and LegendPosition2 define the lower-left and upper-right position of the legend. The coordinates are expressed as normalized values with respect to the rectangle defined by PositionCoordinate and Position2Coordinate. Note that LegendPosition2 is relative to LegendPosition. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Enable/Disable bolding annotation text. |
|
|
|
|
|
|
|
Enable/Disable italicizing annotation text. |
|
|
|
|
|
|
|
Enable/Disable creating shadows on the annotation text. Shadows make the text easier to read. |
|
|
|
|
|
|
|
Set/Get the font family for the annotation text. Three font types are available: Arial (VTK_ARIAL), Courier (VTK_COURIER), and Times (VTK_TIMES). |
|
|
|
Definition at line 307 of file vtkXYPlotActor.h. |
|
Definition at line 308 of file vtkXYPlotActor.h. |
|
Definition at line 309 of file vtkXYPlotActor.h. |
|
Set/Get the format with which to print the labels on the scalar bar. |
|
|
|
Set/Get the spacing between the plot window and the plot. The value is specified in pixels. |
|
|
|
Set/Get whether the points are rendered. The point size can be set in the property object. This is a global flag which affects the plot only if per curve symbols are not defined. |
|
|
|
|
|
|
|
Set/Get whether the lines are rendered. The line width can be set in the property object. |
|
|
|
|
|
|
|
Set/Get the factor that controls how big glyphs are in the plot. The number is expressed as a fraction of the length of the diagonal of the plot bounding box. |
|
|
|
Given a position within the viewport used by the plot, return the the plot coordinates (XAxis value, YAxis value) |
|
An alternate form of ViewportToPlotCoordinate() above. This method inputs the viewport coordinate pair (defined by the ivar ViewportCoordinate)and then stores them in the ivar PlotCoordinate. |
|
|
|
|
|
|
|
|
|
|
|
Given a plot coordinate, return the viewpoint position |
|
An alternate form of PlotToViewportCoordinate() above. This method inputs the plot coordinate pair (defined in the ivar PlotCoordinate) and then stores them in the ivar ViewportCoordinate. (This method can be wrapped.) |
|
|
|
|
|
|
|
|
|
|
|
Is the specified viewport position within the plot area (as opposed to the region used by the plot plus the labels)? |
|
Take into account the modified time of internal helper classes. region used by the plot plus the labels)? Reimplemented from vtkActor2D. |
|
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE DO NOT USE THIS METHOD OUTSIDE OF THE RENDERING PROCESS. Draw the x-y plot. Reimplemented from vtkActor2D. |
|
Support the standard render methods. Reimplemented from vtkActor2D. |
|
Reimplemented from vtkActor2D. Definition at line 374 of file vtkXYPlotActor.h. |
|
Release any graphics resources that are being consumed by this actor. The parameter window could be used to determine which graphic resources to release. Reimplemented from vtkActor2D. |
|
Definition at line 386 of file vtkXYPlotActor.h. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Definition at line 388 of file vtkXYPlotActor.h. |
|
Definition at line 389 of file vtkXYPlotActor.h. |
|
Definition at line 390 of file vtkXYPlotActor.h. |
|
Definition at line 391 of file vtkXYPlotActor.h. |
|
Definition at line 392 of file vtkXYPlotActor.h. |
|
Definition at line 393 of file vtkXYPlotActor.h. |
|
Definition at line 394 of file vtkXYPlotActor.h. |
|
Definition at line 395 of file vtkXYPlotActor.h. |
|
Definition at line 396 of file vtkXYPlotActor.h. |
|
Definition at line 397 of file vtkXYPlotActor.h. |
|
Definition at line 398 of file vtkXYPlotActor.h. |
|
Definition at line 399 of file vtkXYPlotActor.h. |
|
Definition at line 400 of file vtkXYPlotActor.h. |
|
Definition at line 401 of file vtkXYPlotActor.h. |
|
Definition at line 402 of file vtkXYPlotActor.h. |
|
Definition at line 403 of file vtkXYPlotActor.h. |
|
Definition at line 404 of file vtkXYPlotActor.h. |
|
Definition at line 405 of file vtkXYPlotActor.h. |
|
Definition at line 406 of file vtkXYPlotActor.h. |
|
Definition at line 407 of file vtkXYPlotActor.h. |
|
Definition at line 409 of file vtkXYPlotActor.h. |
|
Definition at line 410 of file vtkXYPlotActor.h. |
|
Definition at line 412 of file vtkXYPlotActor.h. |
|
Definition at line 413 of file vtkXYPlotActor.h. |
|
Definition at line 415 of file vtkXYPlotActor.h. |
|
Definition at line 416 of file vtkXYPlotActor.h. |
|
Definition at line 419 of file vtkXYPlotActor.h. |
|
Definition at line 420 of file vtkXYPlotActor.h. |
|
Definition at line 421 of file vtkXYPlotActor.h. |
|
Definition at line 426 of file vtkXYPlotActor.h. |
|
Definition at line 427 of file vtkXYPlotActor.h. |
|
Definition at line 428 of file vtkXYPlotActor.h. |
|
Definition at line 429 of file vtkXYPlotActor.h. |
|
Definition at line 430 of file vtkXYPlotActor.h. |
|
Definition at line 431 of file vtkXYPlotActor.h. |
|
Definition at line 436 of file vtkXYPlotActor.h. |
|
Definition at line 437 of file vtkXYPlotActor.h. |
|
Definition at line 438 of file vtkXYPlotActor.h. |
|
Definition at line 439 of file vtkXYPlotActor.h. |
|
Definition at line 440 of file vtkXYPlotActor.h. |
|
Definition at line 441 of file vtkXYPlotActor.h. |
|
Definition at line 442 of file vtkXYPlotActor.h. |
|
Definition at line 445 of file vtkXYPlotActor.h. |
|
Definition at line 446 of file vtkXYPlotActor.h. |