79#ifndef vtkXYPlotActor_h 
   80#define vtkXYPlotActor_h 
   82#define VTK_XYPLOT_INDEX 0 
   83#define VTK_XYPLOT_ARC_LENGTH 1 
   84#define VTK_XYPLOT_NORMALIZED_ARC_LENGTH 2 
   85#define VTK_XYPLOT_VALUE 3 
   87#define VTK_XYPLOT_ROW 0 
   88#define VTK_XYPLOT_COLUMN 1 
   90#define VTK_XYPLOT_Y_AXIS_TOP 0 
   91#define VTK_XYPLOT_Y_AXIS_HCENTER 1 
   92#define VTK_XYPLOT_Y_AXIS_VCENTER 2  
   95#include "vtkRenderingAnnotationModule.h"  
   98VTK_ABI_NAMESPACE_BEGIN
 
   99class vtkXYPlotActorConnections;
 
  152    this->AddDataSetInputConnection(in, 
nullptr, 0);
 
  165    this->RemoveDataSetInputConnection(in, 
nullptr, 0);
 
  197  vtkGetMacro(XValues, 
int);
 
  233  vtkGetMacro(DataObjectPlotMode, 
int);
 
  274    this->SetPlotColor(i, color[0], color[1], color[2]);
 
  347  vtkSetStringMacro(Title);
 
  348  vtkGetStringMacro(Title);
 
  355  vtkSetStringMacro(XTitle);
 
  356  vtkGetStringMacro(XTitle);
 
  385  vtkSetVector2Macro(XRange, 
double);
 
  386  vtkGetVectorMacro(XRange, 
double, 2);
 
  387  vtkSetVector2Macro(YRange, 
double);
 
  388  vtkGetVectorMacro(YRange, 
double, 2);
 
  391    this->SetXRange(xmin, xmax);
 
  392    this->SetYRange(ymin, ymax);
 
  403  vtkSetClampMacro(NumberOfXLabels, 
int, 0, 50);
 
  404  vtkGetMacro(NumberOfXLabels, 
int);
 
  405  vtkSetClampMacro(NumberOfYLabels, 
int, 0, 50);
 
  406  vtkGetMacro(NumberOfYLabels, 
int);
 
  409    this->SetNumberOfXLabels(num);
 
  410    this->SetNumberOfYLabels(num);
 
  423  vtkGetMacro(AdjustXLabels, 
int);
 
  425  vtkGetMacro(AdjustYLabels, 
int);
 
  454  vtkSetVector2Macro(TitlePosition, 
double);
 
  455  vtkGetVector2Macro(TitlePosition, 
double);
 
  476    AlignAxisLeft = 0x100,
 
  477    AlignAxisRight = 0x200,
 
  478    AlignAxisHCenter = 0x400,
 
  479    AlignAxisTop = 0x1000,
 
  480    AlignAxisBottom = 0x2000,
 
  481    AlignAxisVCenter = 0x4000
 
  492  vtkSetMacro(AdjustTitlePositionMode, 
int);
 
  493  vtkGetMacro(AdjustTitlePositionMode, 
int);
 
  505  vtkSetVector2Macro(LegendPosition, 
double);
 
  506  vtkGetVector2Macro(LegendPosition, 
double);
 
  507  vtkSetVector2Macro(LegendPosition2, 
double);
 
  508  vtkGetVector2Macro(LegendPosition2, 
double);
 
  560  vtkGetStringMacro(XLabelFormat);
 
  568  vtkGetStringMacro(YLabelFormat);
 
  576  vtkSetClampMacro(Border, 
int, 0, 50);
 
  577  vtkGetMacro(Border, 
int);
 
  607  vtkSetClampMacro(GlyphSize, 
double, 0.0, 0.2);
 
  608  vtkGetMacro(GlyphSize, 
double);
 
  624  vtkSetVector2Macro(PlotCoordinate, 
double);
 
  625  vtkGetVector2Macro(PlotCoordinate, 
double);
 
  641  vtkSetVector2Macro(ViewportCoordinate, 
double);
 
  642  vtkGetVector2Macro(ViewportCoordinate, 
double);
 
  689  vtkSetMacro(ReferenceXValue, 
double);
 
  690  vtkGetMacro(ReferenceXValue, 
double);
 
  706  vtkSetMacro(ReferenceYValue, 
double);
 
  707  vtkGetMacro(ReferenceYValue, 
double);
 
  755  vtkSetMacro(YTitlePosition, 
int);
 
  756  vtkGetMacro(YTitlePosition, 
int);
 
  851  double XComputedRange[2]; 
 
  852  double YComputedRange[2]; 
 
  864  double TitlePosition[2];
 
  877  double ViewportCoordinate[2];
 
  878  double PlotCoordinate[2];
 
  901  double LegendPosition[2];
 
  902  double LegendPosition2[2];
 
  937    int* pos, 
int* pos2, 
double xRange[2], 
double yRange[2], 
double* norms, 
int numDS, 
int numDO);
 
a actor that draws 2D data
 
Proxy object to connect input/output ports.
 
appends one or more polygonal datasets together
 
Create an axis with tick marks and labels.
 
maintain an unordered list of data objects
 
general representation of visualization data
 
maintain an unordered list of dataset objects
 
abstract class to specify dataset behavior
 
dynamic, self-adjusting array of double
 
copy oriented and scaled glyph geometry to every input point (2D specialization)
 
create 2D glyphs represented by vtkPolyData
 
a simple class to control print indentation
 
dynamic, self-adjusting array of int
 
implicit function for convex set of planes
 
draw vtkPolyData onto the image plane
 
concrete dataset represents vertices, lines, polygons, and triangle strips
 
represent surface properties of a 2D image
 
Hold a reference to a vtkObjectBase instance.
 
An actor that displays text.
 
represent text properties.
 
record modification and/or execution time
 
abstract specification for Viewports
 
window superclass for vtkRenderWindow
 
generate an x-y plot from input dataset(s) or field data
 
void RemoveAllDataSetInputConnections()
This removes all of the data set inputs, but does not change the data object inputs.
 
void AddDataSetInputConnection(vtkAlgorithmOutput *in, const char *arrayName, int component)
Add a dataset to the list of data to append.
 
void SetXValuesToIndex()
Specify how the independent (x) variable is computed from the points.
 
int IsInPlot(vtkViewport *viewport, double u, double v)
Is the specified viewport position within the plot area (as opposed to the region used by the plot pl...
 
virtual void SetTitleVerticalJustification(int)
Set title properties.
 
static vtkXYPlotActor * New()
Instantiate object with autorange computation; bold, italic, and shadows on; arial font family; the n...
 
int GetDataObjectXComponent(int i)
Specify which component of the input data object to use as the independent variable for the ith input...
 
void SetNumberOfLabels(int num)
Set/Get the number of annotation labels to show along the x and y axes.
 
virtual void SetLegendBox(int)
Set legend properties.
 
void SetPlotPoints(int i, int)
 
void SetAdjustYLabels(int adjust)
Set/Get the flag that controls whether the labels and ticks are adjusted for "nice" numerical values ...
 
void ComputeXRange(double range[2], double *lengths)
 
virtual void SetTitleFontSize(int)
Set title properties.
 
int RenderOverlay(vtkViewport *) override
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE DO NOT USE THIS METHOD OUTSIDE OF THE RENDERI...
 
void SetXValuesToNormalizedArcLength()
Specify how the independent (x) variable is computed from the points.
 
vtkXYPlotActorConnections * DataObjectInputConnectionHolder
 
vtkTextActor * YTitleActor
 
vtkPolyData * ReferenceLinesPolyData
 
virtual void SetTitleFontFamily(int)
Set title properties.
 
virtual void SetAxisLabelItalic(int)
Set axis label properties.
 
vtkGlyphSource2D * GlyphSource
 
const char * GetXValuesAsString()
Specify how the independent (x) variable is computed from the points.
 
virtual void SetTitleTextProperty(vtkTextProperty *p)
Set/Get the title text property.
 
virtual void SetAxisTitleTextProperty(vtkTextProperty *p)
Set/Get the title text property of all axes.
 
void AddDataSetInput(vtkDataSet *ds, const char *arrayName, int component)
Add a dataset to the list of data to append.
 
void SetPlotRange(double xmin, double ymin, double xmax, double ymax)
Set the plot range (range of independent and dependent variables) to plot.
 
void PlotToViewportCoordinate(vtkViewport *viewport)
An alternate form of PlotToViewportCoordinate() above.
 
int RenderTranslucentPolygonalGeometry(vtkViewport *) override
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE DO NOT USE THIS METHOD OUTSIDE OF THE RENDERI...
 
vtkPolyData * GetPlotSymbol(int i)
 
virtual void SetTitleBold(int)
Set title properties.
 
vtkTypeBool ShowReferenceYLine
 
virtual void SetAxisTitleItalic(int)
Set axis title properties.
 
virtual void SetYTitle(const char *)
Set/Get the title of the y axis.
 
virtual void SetAxisLabelShadow(int)
Set axis label properties.
 
virtual void SetYLabelFormat(const char *)
Set/Get the format with which to print the Y label.
 
void SetXValuesToValue()
Specify how the independent (x) variable is computed from the points.
 
vtkXYPlotActorConnections * InputConnectionHolder
 
vtkActor2D * ReferenceLinesActor
 
virtual void CreatePlotData(int *pos, int *pos2, double xRange[2], double yRange[2], double *norms, int numDS, int numDO)
 
virtual void SetLegendUseBackground(int)
Set legend properties.
 
void SetPointComponent(int i, int comp)
If plotting points by value, which component to use to determine the value.
 
vtkTextProperty * AxisLabelTextProperty
 
void SetPlotColor(int i, double r, double g, double b)
 
int AdjustTitlePositionMode
 
void SetYTitlePositionToVCenter()
Set/Get the position of the title of Y axis.
 
vtkPolyDataMapper2D * ReferenceLinesMapper
 
vtkActor2D * ChartBoxActor
 
char * GetYTitle()
Set/Get the title of the y axis.
 
void SetYTitlePositionToHCenter()
Set/Get the position of the title of Y axis.
 
virtual void RemoveAllActiveCurves()
Set plot properties.
 
vtkMTimeType GetMTime() override
Take into account the modified time of internal helper classes.
 
void PrintAsCSV(ostream &os)
Write the XY Ploat Actor as a CSV (comma separated value) representation.
 
void SetPlotSymbol(int i, vtkPolyData *input)
 
void SetDataObjectPlotModeToColumns()
Indicate whether to plot rows or columns.
 
void ComputeYRange(double range[2])
 
void SetDataObjectYComponent(int i, int comp)
Specify which component of the input data object to use as the dependent variable for the ith input d...
 
virtual void SetAxisTitleVerticalJustification(int)
Set axis title properties.
 
void SetNumberOfXMinorTicks(int num)
Set/Get the number of minor ticks in X or Y.
 
void AddDataSetInput(vtkDataSet *ds)
Add a dataset to the list of data to append.
 
virtual void SetLegendBorder(int)
Set legend properties.
 
const char * GetPlotLabel(int i)
 
virtual void SetYAxisColor(double, double, double)
Set axes properties.
 
double ComputeGlyphScale(int i, int *pos, int *pos2)
 
void SetXTitlePosition(double position)
Set/Get the position of the title of X axis.
 
virtual void SetAxisTitleFontFamily(int)
Set axis title properties.
 
double * TransformPoint(int pos[2], int pos2[2], double x[3], double xNew[3])
 
virtual void SetPlotGlyphType(int, int)
Set plot properties.
 
void AddDataObjectInputConnection(vtkAlgorithmOutput *alg)
Add a data object to the list of data to display.
 
void RemoveDataSetInputConnection(vtkAlgorithmOutput *in, const char *arrayName, int component)
Remove a dataset from the list of data to append.
 
virtual void SetAxisLabelVerticalJustification(int)
Set axis label properties.
 
virtual void SetAxisTitleShadow(int)
Set axis title properties.
 
virtual void SetAxisLabelColor(double, double, double)
Set axis label properties.
 
vtkTextProperty * TitleTextProperty
 
void RemoveDataObjectInput(vtkDataObject *in)
Remove a dataset from the list of data to display.
 
virtual void SetTitleItalic(int)
Set title properties.
 
virtual void AddUserCurvesPoint(double, double, double)
Set plot properties.
 
virtual void SetAxisTitleJustification(int)
Set axis title properties.
 
void SetPlotLabel(int i, const char *label)
 
void PlaceAxes(vtkViewport *viewport, const int *size, int pos[2], int pos2[2])
 
void RemoveDataSetInputConnection(vtkAlgorithmOutput *in)
Remove a dataset from the list of data to append.
 
char ** SelectedInputScalars
 
virtual void SetAxisLabelBold(int)
Set axis label properties.
 
virtual void SetAxisTitleFontSize(int)
Set axis title properties.
 
virtual void SetAxisTitleBold(int)
Set axis title properties.
 
virtual void SetXLabelFormat(const char *)
Set/Get the format with which to print the X label.
 
virtual void SetXAxisColor(double, double, double)
Set axes properties.
 
void AddDataObjectInput(vtkDataObject *in)
Add a data object to the list of data to display.
 
void ViewportToPlotCoordinate(vtkViewport *viewport, double &u, double &v)
Given a position within the viewport used by the plot, return the the plot coordinates (XAxis value,...
 
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
 
virtual void SetLineWidth(double)
Set plot properties.
 
void ClipPlotData(int *pos, int *pos2, vtkPolyData *pd)
 
vtkTypeBool AdjustTitlePosition
 
void SetPlotLines(int i, int)
 
vtkTypeBool PlotCurvePoints
 
void GenerateClipPlanes(int *pos, int *pos2)
 
vtkAxisActor2D * GetYAxisActor2D()
Retrieve handles to the X and Y axis (so that you can set their text properties for example)
 
~vtkXYPlotActor() override
 
int GetNumberOfYMinorTicks()
Set/Get the number of minor ticks in X or Y.
 
virtual void SetAxisLabelJustification(int)
Set axis label properties.
 
vtkAxisActor2D * GetXAxisActor2D()
Retrieve handles to the X and Y axis (so that you can set their text properties for example)
 
vtkTextMapper * TitleMapper
 
vtkPolyData * ChartBorderPolyData
 
virtual void SetTitleJustification(int)
Set title properties.
 
void RemoveDataObjectInputConnection(vtkAlgorithmOutput *aout)
Remove a dataset from the list of data to display.
 
vtkTypeBool PlotCurveLines
 
vtkIntArray * SelectedInputScalarsComponent
 
vtkActor2D * ChartBorderActor
 
virtual void SetLegendBackgroundColor(double, double, double)
Set legend properties.
 
virtual void SetAxisLabelFontSize(int)
Set axis label properties.
 
int RenderOpaqueGeometry(vtkViewport *) override
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE DO NOT USE THIS METHOD OUTSIDE OF THE RENDERI...
 
vtkProperty2D * GetChartBoxProperty()
Get the box vtkProperty2D.
 
virtual void SetLabelFormat(const char *)
Set/Get the format with which to print the labels .
 
void RemoveDataSetInput(vtkDataSet *ds, const char *arrayName, int component)
Remove a dataset from the list of data to append.
 
void SetYTitlePositionToTop()
Set/Get the position of the title of Y axis.
 
void SetPlotColor(int i, const double color[3])
 
vtkPolyDataMapper2D * ChartBoxMapper
 
int GetPointComponent(int i)
If plotting points by value, which component to use to determine the value.
 
virtual void SetTitleColor(double, double, double)
Set title properties.
 
int GetNumberOfXMinorTicks()
Set/Get the number of minor ticks in X or Y.
 
virtual void SetAxisTitleColor(double, double, double)
Set axis title properties.
 
void PlotToViewportCoordinate(vtkViewport *viewport, double &u, double &v)
Given a plot coordinate, return the viewpoint position.
 
virtual void SetTitleShadow(int)
Set title properties.
 
vtkTypeBool ShowReferenceXLine
 
void SetDataObjectXComponent(int i, int comp)
Specify which component of the input data object to use as the independent variable for the ith input...
 
vtkLegendBoxActor * LegendActor
 
void ReleaseGraphicsResources(vtkWindow *) override
Release any graphics resources that are being consumed by this actor.
 
double GetXTitlePosition()
Set/Get the position of the title of X axis.
 
vtkPolyDataMapper2D * ChartBorderMapper
 
vtkPolyData * ChartBoxPolyData
 
double * GetPlotColor(int i)
 
vtkPolyDataMapper2D ** PlotMapper
 
void RemoveDataSetInput(vtkDataSet *ds)
Remove a dataset from the list of data to append.
 
void SetXValuesToArcLength()
Specify how the independent (x) variable is computed from the points.
 
int GetDataObjectYComponent(int i)
Specify which component of the input data object to use as the dependent variable for the ith input d...
 
void SetDataObjectPlotModeToRows()
Indicate whether to plot rows or columns.
 
void SetNumberOfYMinorTicks(int num)
Set/Get the number of minor ticks in X or Y.
 
vtkSmartPointer< vtkDoubleArray > ActiveCurve
 
vtkTextProperty * AxisTitleTextProperty
 
const char * GetDataObjectPlotModeAsString()
Indicate whether to plot rows or columns.
 
vtkAppendPolyData ** PlotAppend
 
void AddDataSetInputConnection(vtkAlgorithmOutput *in)
Add a dataset to the list of data to append.
 
void ViewportToPlotCoordinate(vtkViewport *viewport)
An alternate form of ViewportToPlotCoordinate() above.
 
void SetAdjustXLabels(int adjust)
Set/Get the flag that controls whether the labels and ticks are adjusted for "nice" numerical values ...
 
const char * GetLabelFormat()
Set/Get the format with which to print the labels .
 
virtual void SetAxisLabelTextProperty(vtkTextProperty *p)
Set/Get the labels text property of all axes.
 
virtual void SetAxisLabelFontFamily(int)
Set axis label properties.
 
void ComputeDORange(double xrange[2], double yrange[2], double *lengths)
 
vtkTypeBool HasTranslucentPolygonalGeometry() override
Does this prop have some translucent polygonal geometry?
 
vtkTypeUInt32 vtkMTimeType
 
#define VTK_SIZEHINT(...)
 
#define VTK_XYPLOT_Y_AXIS_HCENTER
 
#define VTK_XYPLOT_Y_AXIS_VCENTER
 
#define VTK_XYPLOT_COLUMN
 
#define VTK_XYPLOT_Y_AXIS_TOP
 
#define VTK_XYPLOT_NORMALIZED_ARC_LENGTH
 
#define VTK_XYPLOT_ARC_LENGTH