|
| virtual int | IsA (const char *type) |
| |
| vtkXYPlotActor * | NewInstance () const |
| |
| void | PrintSelf (ostream &os, vtkIndent indent) |
| |
| void | AddDataSetInput (vtkDataSet *ds, const char *arrayName, int component) |
| |
| void | AddDataSetInput (vtkDataSet *ds) |
| |
| void | AddDataSetInputConnection (vtkAlgorithmOutput *in, const char *arrayName, int component) |
| |
| void | AddDataSetInputConnection (vtkAlgorithmOutput *in) |
| |
| void | RemoveDataSetInput (vtkDataSet *ds, const char *arrayName, int component) |
| |
| void | RemoveDataSetInput (vtkDataSet *ds) |
| |
| void | RemoveDataSetInputConnection (vtkAlgorithmOutput *in, const char *arrayName, int component) |
| |
| void | RemoveDataSetInputConnection (vtkAlgorithmOutput *in) |
| |
| void | RemoveAllDataSetInputConnections () |
| |
| 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 | AddDataObjectInputConnection (vtkAlgorithmOutput *alg) |
| |
| void | RemoveDataObjectInputConnection (vtkAlgorithmOutput *aout) |
| |
| void | RemoveDataObjectInput (vtkDataObject *in) |
| |
| 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, double r, double g, double b) |
| |
| void | SetPlotColor (int i, const double color[3]) |
| |
| double * | 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) |
| |
| virtual int | GetPlotCurvePoints () |
| |
| virtual void | SetPlotCurvePoints (int) |
| |
| virtual void | PlotCurvePointsOn () |
| |
| virtual void | PlotCurvePointsOff () |
| |
| virtual int | GetPlotCurveLines () |
| |
| virtual void | SetPlotCurveLines (int) |
| |
| virtual void | PlotCurveLinesOn () |
| |
| virtual void | PlotCurveLinesOff () |
| |
| void | SetPlotLines (int i, int) |
| |
| int | GetPlotLines (int i) |
| |
| void | SetPlotPoints (int i, int) |
| |
| int | GetPlotPoints (int i) |
| |
| virtual void | SetExchangeAxes (int) |
| |
| virtual int | GetExchangeAxes () |
| |
| virtual void | ExchangeAxesOn () |
| |
| virtual void | ExchangeAxesOff () |
| |
| virtual void | SetReverseXAxis (int) |
| |
| virtual int | GetReverseXAxis () |
| |
| virtual void | ReverseXAxisOn () |
| |
| virtual void | ReverseXAxisOff () |
| |
| virtual void | SetReverseYAxis (int) |
| |
| virtual int | GetReverseYAxis () |
| |
| virtual void | ReverseYAxisOn () |
| |
| virtual void | ReverseYAxisOff () |
| |
| virtual vtkLegendBoxActor * | GetLegendActor () |
| |
| virtual vtkGlyphSource2D * | GetGlyphSource () |
| |
| virtual void | SetTitle (const char *) |
| |
| virtual char * | GetTitle () |
| |
| virtual void | SetXTitle (const char *) |
| |
| virtual char * | GetXTitle () |
| |
| virtual void | SetYTitle (const char *) |
| |
| char * | GetYTitle () |
| |
| vtkAxisActor2D * | GetXAxisActor2D () |
| |
| vtkAxisActor2D * | GetYAxisActor2D () |
| |
| virtual void | SetXRange (double, double) |
| |
| void | SetXRange (double[2]) |
| |
| virtual double * | GetXRange () |
| |
| virtual void | GetXRange (double data[2]) |
| |
| virtual void | SetYRange (double, double) |
| |
| void | SetYRange (double[2]) |
| |
| virtual double * | GetYRange () |
| |
| virtual void | GetYRange (double data[2]) |
| |
| void | SetPlotRange (double xmin, double ymin, double xmax, double ymax) |
| |
| virtual void | SetNumberOfXLabels (int) |
| |
| virtual int | GetNumberOfXLabels () |
| |
| virtual void | SetNumberOfYLabels (int) |
| |
| virtual int | GetNumberOfYLabels () |
| |
| void | SetNumberOfLabels (int num) |
| |
| void | SetAdjustXLabels (int adjust) |
| |
| virtual int | GetAdjustXLabels () |
| |
| void | SetAdjustYLabels (int adjust) |
| |
| virtual int | GetAdjustYLabels () |
| |
| void | SetNumberOfXMinorTicks (int num) |
| |
| int | GetNumberOfXMinorTicks () |
| |
| void | SetNumberOfYMinorTicks (int num) |
| |
| int | GetNumberOfYMinorTicks () |
| |
| virtual void | SetLegend (int) |
| |
| virtual int | GetLegend () |
| |
| virtual void | LegendOn () |
| |
| virtual void | LegendOff () |
| |
| virtual void | SetTitlePosition (double, double) |
| |
| void | SetTitlePosition (double[2]) |
| |
| virtual double * | GetTitlePosition () |
| |
| virtual void | GetTitlePosition (double &, double &) |
| |
| virtual void | GetTitlePosition (double[2]) |
| |
| virtual void | SetAdjustTitlePosition (int) |
| |
| virtual int | GetAdjustTitlePosition () |
| |
| virtual void | AdjustTitlePositionOn () |
| |
| virtual void | AdjustTitlePositionOff () |
| |
| virtual void | SetAdjustTitlePositionMode (int) |
| |
| virtual int | GetAdjustTitlePositionMode () |
| |
| virtual void | SetLegendPosition (double, double) |
| |
| void | SetLegendPosition (double[2]) |
| |
| virtual double * | GetLegendPosition () |
| |
| virtual void | GetLegendPosition (double &, double &) |
| |
| virtual void | GetLegendPosition (double[2]) |
| |
| virtual void | SetLegendPosition2 (double, double) |
| |
| void | SetLegendPosition2 (double[2]) |
| |
| virtual double * | GetLegendPosition2 () |
| |
| virtual void | GetLegendPosition2 (double &, double &) |
| |
| virtual void | GetLegendPosition2 (double[2]) |
| |
| virtual void | SetTitleTextProperty (vtkTextProperty *p) |
| |
| virtual vtkTextProperty * | GetTitleTextProperty () |
| |
| virtual void | SetAxisTitleTextProperty (vtkTextProperty *p) |
| |
| virtual vtkTextProperty * | GetAxisTitleTextProperty () |
| |
| virtual void | SetAxisLabelTextProperty (vtkTextProperty *p) |
| |
| virtual vtkTextProperty * | GetAxisLabelTextProperty () |
| |
| virtual void | SetLogx (int) |
| |
| virtual int | GetLogx () |
| |
| virtual void | LogxOn () |
| |
| virtual void | LogxOff () |
| |
| virtual void | SetLabelFormat (const char *) |
| |
| const char * | GetLabelFormat () |
| |
| virtual void | SetXLabelFormat (const char *) |
| |
| virtual char * | GetXLabelFormat () |
| |
| virtual void | SetYLabelFormat (const char *) |
| |
| virtual char * | GetYLabelFormat () |
| |
| 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 (double) |
| |
| virtual double | GetGlyphSize () |
| |
| void | ViewportToPlotCoordinate (vtkViewport *viewport, double &u, double &v) |
| |
| void | ViewportToPlotCoordinate (vtkViewport *viewport) |
| |
| virtual void | SetPlotCoordinate (double, double) |
| |
| void | SetPlotCoordinate (double[2]) |
| |
| virtual double * | GetPlotCoordinate () |
| |
| virtual void | GetPlotCoordinate (double &, double &) |
| |
| virtual void | GetPlotCoordinate (double[2]) |
| |
| void | PlotToViewportCoordinate (vtkViewport *viewport, double &u, double &v) |
| |
| void | PlotToViewportCoordinate (vtkViewport *viewport) |
| |
| virtual void | SetViewportCoordinate (double, double) |
| |
| void | SetViewportCoordinate (double[2]) |
| |
| virtual double * | GetViewportCoordinate () |
| |
| virtual void | GetViewportCoordinate (double &, double &) |
| |
| virtual void | GetViewportCoordinate (double[2]) |
| |
| int | IsInPlot (vtkViewport *viewport, double u, double v) |
| |
| virtual void | SetChartBox (int) |
| |
| virtual int | GetChartBox () |
| |
| virtual void | ChartBoxOn () |
| |
| virtual void | ChartBoxOff () |
| |
| virtual void | SetChartBorder (int) |
| |
| virtual int | GetChartBorder () |
| |
| virtual void | ChartBorderOn () |
| |
| virtual void | ChartBorderOff () |
| |
| vtkProperty2D * | GetChartBoxProperty () |
| |
| virtual void | SetShowReferenceXLine (int) |
| |
| virtual int | GetShowReferenceXLine () |
| |
| virtual void | ShowReferenceXLineOn () |
| |
| virtual void | ShowReferenceXLineOff () |
| |
| virtual void | SetReferenceXValue (double) |
| |
| virtual double | GetReferenceXValue () |
| |
| virtual void | SetShowReferenceYLine (int) |
| |
| virtual int | GetShowReferenceYLine () |
| |
| virtual void | ShowReferenceYLineOn () |
| |
| virtual void | ShowReferenceYLineOff () |
| |
| virtual void | SetReferenceYValue (double) |
| |
| virtual double | GetReferenceYValue () |
| |
| unsigned long | GetMTime () |
| |
| void | PrintAsCSV (ostream &os) |
| |
| int | RenderOpaqueGeometry (vtkViewport *) |
| |
| int | RenderOverlay (vtkViewport *) |
| |
| virtual int | RenderTranslucentPolygonalGeometry (vtkViewport *) |
| |
| virtual int | HasTranslucentPolygonalGeometry () |
| |
| void | ReleaseGraphicsResources (vtkWindow *) |
| |
| void | SetXTitlePosition (double position) |
| |
| double | GetXTitlePosition () |
| |
| virtual void | SetYTitlePosition (int) |
| |
| virtual int | GetYTitlePosition () |
| |
| void | SetYTitlePositionToTop () |
| |
| void | SetYTitlePositionToHCenter () |
| |
| void | SetYTitlePositionToVCenter () |
| |
| virtual void | SetPlotGlyphType (int, int) |
| |
| virtual void | SetLineWidth (double) |
| |
| virtual void | AddUserCurvesPoint (double, double, double) |
| |
| virtual void | RemoveAllActiveCurves () |
| |
| virtual void | SetLegendBorder (int) |
| |
| virtual void | SetLegendBox (int) |
| |
| virtual void | SetLegendUseBackground (int) |
| |
| virtual void | SetLegendBackgroundColor (double, double, double) |
| |
| virtual void | SetTitleColor (double, double, double) |
| |
| virtual void | SetTitleFontFamily (int) |
| |
| virtual void | SetTitleBold (int) |
| |
| virtual void | SetTitleItalic (int) |
| |
| virtual void | SetTitleShadow (int) |
| |
| virtual void | SetTitleFontSize (int) |
| |
| virtual void | SetTitleJustification (int) |
| |
| virtual void | SetTitleVerticalJustification (int) |
| |
| virtual void | SetXAxisColor (double, double, double) |
| |
| virtual void | SetYAxisColor (double, double, double) |
| |
| virtual void | SetAxisTitleColor (double, double, double) |
| |
| virtual void | SetAxisTitleFontFamily (int) |
| |
| virtual void | SetAxisTitleBold (int) |
| |
| virtual void | SetAxisTitleItalic (int) |
| |
| virtual void | SetAxisTitleShadow (int) |
| |
| virtual void | SetAxisTitleFontSize (int) |
| |
| virtual void | SetAxisTitleJustification (int) |
| |
| virtual void | SetAxisTitleVerticalJustification (int) |
| |
| virtual void | SetAxisLabelColor (double, double, double) |
| |
| virtual void | SetAxisLabelFontFamily (int) |
| |
| virtual void | SetAxisLabelBold (int) |
| |
| virtual void | SetAxisLabelItalic (int) |
| |
| virtual void | SetAxisLabelShadow (int) |
| |
| virtual void | SetAxisLabelFontSize (int) |
| |
| virtual void | SetAxisLabelJustification (int) |
| |
| virtual void | SetAxisLabelVerticalJustification (int) |
| |
| void | PrintSelf (ostream &os, vtkIndent indent) |
| |
| vtkActor2D * | NewInstance () const |
| |
| virtual void | SetMapper (vtkMapper2D *mapper) |
| |
| virtual vtkMapper2D * | GetMapper () |
| |
| virtual void | SetLayerNumber (int) |
| |
| virtual int | GetLayerNumber () |
| |
| vtkProperty2D * | GetProperty () |
| |
| virtual void | SetProperty (vtkProperty2D *) |
| |
| virtual vtkCoordinate * | GetPositionCoordinate () |
| |
| virtual void | SetPosition (float x[2]) |
| |
| virtual void | SetPosition (float x, float y) |
| |
| virtual float * | GetPosition () |
| |
| void | SetDisplayPosition (int, int) |
| |
| virtual vtkCoordinate * | GetPosition2Coordinate () |
| |
| virtual void | SetPosition2 (float x[2]) |
| |
| virtual void | SetPosition2 (float x, float y) |
| |
| virtual float * | GetPosition2 () |
| |
| void | SetWidth (double w) |
| |
| double | GetWidth () |
| |
| void | SetHeight (double h) |
| |
| double | GetHeight () |
| |
| virtual void | GetActors2D (vtkPropCollection *pc) |
| |
| virtual void | ShallowCopy (vtkProp *prop) |
| |
| virtual vtkCoordinate * | GetActualPositionCoordinate (void) |
| |
| virtual vtkCoordinate * | GetActualPosition2Coordinate (void) |
| |
| vtkProp * | NewInstance () const |
| |
| void | PrintSelf (ostream &os, vtkIndent indent) |
| |
| virtual void | GetActors (vtkPropCollection *) |
| |
| virtual void | GetVolumes (vtkPropCollection *) |
| |
| virtual void | SetVisibility (int) |
| |
| virtual int | GetVisibility () |
| |
| virtual void | VisibilityOn () |
| |
| virtual void | VisibilityOff () |
| |
| virtual void | SetPickable (int) |
| |
| virtual int | GetPickable () |
| |
| virtual void | PickableOn () |
| |
| virtual void | PickableOff () |
| |
| virtual void | Pick () |
| |
| virtual void | SetDragable (int) |
| |
| virtual int | GetDragable () |
| |
| virtual void | DragableOn () |
| |
| virtual void | DragableOff () |
| |
| virtual unsigned long | GetRedrawMTime () |
| |
| virtual void | SetUseBounds (bool) |
| |
| virtual bool | GetUseBounds () |
| |
| virtual void | UseBoundsOn () |
| |
| virtual void | UseBoundsOff () |
| |
| virtual double * | GetBounds () |
| |
| virtual void | InitPathTraversal () |
| |
| virtual vtkAssemblyPath * | GetNextPath () |
| |
| virtual int | GetNumberOfPaths () |
| |
| virtual void | PokeMatrix (vtkMatrix4x4 *vtkNotUsed(matrix)) |
| |
| virtual vtkMatrix4x4 * | GetMatrix () |
| |
| virtual vtkInformation * | GetPropertyKeys () |
| |
| virtual void | SetPropertyKeys (vtkInformation *keys) |
| |
| virtual bool | HasKeys (vtkInformation *requiredKeys) |
| |
| virtual int | RenderVolumetricGeometry (vtkViewport *) |
| |
| virtual bool | RenderFilteredOpaqueGeometry (vtkViewport *v, vtkInformation *requiredKeys) |
| |
| virtual bool | RenderFilteredTranslucentPolygonalGeometry (vtkViewport *v, vtkInformation *requiredKeys) |
| |
| virtual bool | RenderFilteredVolumetricGeometry (vtkViewport *v, vtkInformation *requiredKeys) |
| |
| virtual bool | RenderFilteredOverlay (vtkViewport *v, vtkInformation *requiredKeys) |
| |
| virtual double | GetEstimatedRenderTime (vtkViewport *) |
| |
| virtual double | GetEstimatedRenderTime () |
| |
| virtual void | SetEstimatedRenderTime (double t) |
| |
| virtual void | RestoreEstimatedRenderTime () |
| |
| virtual void | AddEstimatedRenderTime (double t, vtkViewport *vtkNotUsed(vp)) |
| |
| virtual void | SetAllocatedRenderTime (double t, vtkViewport *vtkNotUsed(v)) |
| |
| virtual double | GetAllocatedRenderTime () |
| |
| void | SetRenderTimeMultiplier (double t) |
| |
| virtual double | GetRenderTimeMultiplier () |
| |
| virtual void | BuildPaths (vtkAssemblyPaths *paths, vtkAssemblyPath *path) |
| |
| virtual bool | GetSupportsSelection () |
| |
| virtual int | GetNumberOfConsumers () |
| |
| void | AddConsumer (vtkObject *c) |
| |
| void | RemoveConsumer (vtkObject *c) |
| |
| vtkObject * | GetConsumer (int i) |
| |
| int | IsConsumer (vtkObject *c) |
| |
| vtkObject * | NewInstance () const |
| |
| virtual void | DebugOn () |
| |
| virtual void | DebugOff () |
| |
| bool | GetDebug () |
| |
| void | SetDebug (bool debugFlag) |
| |
| virtual void | Modified () |
| |
| unsigned long | AddObserver (unsigned long event, vtkCommand *, float priority=0.0f) |
| |
| unsigned long | AddObserver (const char *event, vtkCommand *, float priority=0.0f) |
| |
| vtkCommand * | GetCommand (unsigned long tag) |
| |
| void | RemoveObserver (vtkCommand *) |
| |
| void | RemoveObservers (unsigned long event, vtkCommand *) |
| |
| void | RemoveObservers (const char *event, vtkCommand *) |
| |
| int | HasObserver (unsigned long event, vtkCommand *) |
| |
| int | HasObserver (const char *event, vtkCommand *) |
| |
| void | RemoveObserver (unsigned long tag) |
| |
| void | RemoveObservers (unsigned long event) |
| |
| void | RemoveObservers (const char *event) |
| |
| void | RemoveAllObservers () |
| |
| int | HasObserver (unsigned long event) |
| |
| int | HasObserver (const char *event) |
| |
| template<class U , class T > |
| unsigned long | AddObserver (unsigned long event, U observer, void(T::*callback)(), float priority=0.0f) |
| |
| template<class U , class T > |
| unsigned long | AddObserver (unsigned long event, U observer, void(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f) |
| |
| template<class U , class T > |
| unsigned long | AddObserver (unsigned long event, U observer, bool(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f) |
| |
| int | InvokeEvent (unsigned long event, void *callData) |
| |
| int | InvokeEvent (const char *event, void *callData) |
| |
| int | InvokeEvent (unsigned long event) |
| |
| int | InvokeEvent (const char *event) |
| |
| const char * | GetClassName () const |
| |
| virtual void | Delete () |
| |
| virtual void | FastDelete () |
| |
| void | Print (ostream &os) |
| |
| virtual void | PrintHeader (ostream &os, vtkIndent indent) |
| |
| virtual void | PrintTrailer (ostream &os, vtkIndent indent) |
| |
| virtual void | Register (vtkObjectBase *o) |
| |
| virtual void | UnRegister (vtkObjectBase *o) |
| |
| int | GetReferenceCount () |
| |
| void | SetReferenceCount (int) |
| |
| void | PrintRevisions (ostream &) |
| |
generate an x-y plot from input dataset(s) or field data
vtkXYPlotActor creates an x-y plot of data from one or more input data sets or field data. The class plots dataset scalar values (y-axis) against the points (x-axis). The x-axis values are generated by taking the point ids, computing a cumulative arc length, or a normalized arc length. More than one input data set can be specified to generate multiple plots. Alternatively, if field data is supplied as input, the class plots one component against another. (The user must specify which component to use as the x-axis and which for the y-axis.)
To use this class to plot dataset(s), you must specify one or more input datasets 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 and plot title. 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.
The font property of the plot title can be modified through the TitleTextProperty attribute. The font property of the axes titles and labels can be modified through the AxisTitleTextProperty and AxisLabelTextProperty attributes. You may also use the GetXAxisActor2D or GetYAxisActor2D methods to access each individual axis actor to modify their font properties. In the same way, the GetLegendBoxActor method can be used to access the legend box actor to modify its font properties.
There are several advanced features as well. You can assign per curve properties (such as color and a plot symbol). (Note that each input dataset and/or data object creates a single curve.) Another option is to add a plot legend that graphically indicates the correspondance between the curve, curve symbols, and the data source. You can also exchange the x and y axes if you prefer you plot orientation that way.
- Warning
- If you are interested in plotting something other than scalar data, you can use the vtk data shuffling filters (e.g., vtkAttributeDataToFieldDataFilter and vtkFieldDataToAttributeDataFilter) to convert the data into scalar data and/or points.
- Thanks:
- This class was written by: Will Schroeder, Jim Miller, Charles Law, Sebastien Barre, Amy Squillacote, Ken Martin, Mathieu Malaterre, Jeff Lee, Francois Finet, Julien Bertel, Claire Guilbaud, and Philippe Pebay
- See also
- vtkActor2D vtkTextMapper vtkScalarBarActor vtkAxisActor2D vtkCubeAxesActor2D vtkAttributeDataToFieldDataFilter vtkFieldDataToAttributeDataFilter vtkTextProperty
- Examples:
- vtkXYPlotActor (Examples)
- Tests:
- vtkXYPlotActor (Tests)
Definition at line 132 of file vtkXYPlotActor.h.