Go to the documentation of this file.
94 #ifndef vtkXYPlotActor_h
95 #define vtkXYPlotActor_h
97 #define VTK_XYPLOT_INDEX 0
98 #define VTK_XYPLOT_ARC_LENGTH 1
99 #define VTK_XYPLOT_NORMALIZED_ARC_LENGTH 2
100 #define VTK_XYPLOT_VALUE 3
102 #define VTK_XYPLOT_ROW 0
103 #define VTK_XYPLOT_COLUMN 1
105 #define VTK_XYPLOT_Y_AXIS_TOP 0
106 #define VTK_XYPLOT_Y_AXIS_HCENTER 1
107 #define VTK_XYPLOT_Y_AXIS_VCENTER 2 // rotate by 90 degrees (y-axis aligned)
109 #include "vtkRenderingAnnotationModule.h"
113 class vtkXYPlotActorConnections;
176 this->RemoveDataSetInputConnection(in,
nullptr, 0);
208 vtkGetMacro(XValues,
int);
245 vtkGetMacro(DataObjectPlotMode,
int);
359 vtkSetStringMacro(Title);
360 vtkGetStringMacro(Title);
367 vtkSetStringMacro(XTitle);
368 vtkGetStringMacro(XTitle);
403 vtkSetVector2Macro(XRange,
double);
404 vtkGetVectorMacro(XRange,
double,2);
405 vtkSetVector2Macro(YRange,
double);
406 vtkGetVectorMacro(YRange,
double,2);
408 {this->SetXRange(xmin,xmax); this->SetYRange(ymin,ymax);}
418 vtkSetClampMacro(NumberOfXLabels,
int, 0, 50);
419 vtkGetMacro(NumberOfXLabels,
int);
420 vtkSetClampMacro(NumberOfYLabels,
int, 0, 50);
421 vtkGetMacro(NumberOfYLabels,
int);
423 {this->SetNumberOfXLabels(num); this->SetNumberOfYLabels(num);}
435 vtkGetMacro( AdjustXLabels,
int );
437 vtkGetMacro( AdjustYLabels,
int );
466 vtkSetVector2Macro(TitlePosition,
double);
467 vtkGetVector2Macro(TitlePosition,
double);
487 AlignAxisLeft = 0x100,
488 AlignAxisRight = 0x200,
489 AlignAxisHCenter = 0x400,
490 AlignAxisTop = 0x1000,
491 AlignAxisBottom = 0x2000,
492 AlignAxisVCenter = 0x4000
503 vtkSetMacro(AdjustTitlePositionMode,
int);
504 vtkGetMacro(AdjustTitlePositionMode,
int);
516 vtkSetVector2Macro(LegendPosition,
double);
517 vtkGetVector2Macro(LegendPosition,
double);
518 vtkSetVector2Macro(LegendPosition2,
double);
519 vtkGetVector2Macro(LegendPosition2,
double);
565 return this->GetXLabelFormat();
574 vtkGetStringMacro(XLabelFormat);
582 vtkGetStringMacro(YLabelFormat);
590 vtkSetClampMacro(Border,
int, 0, 50);
591 vtkGetMacro(Border,
int);
621 vtkSetClampMacro(GlyphSize,
double, 0.0, 0.2);
622 vtkGetMacro(GlyphSize,
double);
638 vtkSetVector2Macro(PlotCoordinate,
double);
639 vtkGetVector2Macro(PlotCoordinate,
double);
655 vtkSetVector2Macro(ViewportCoordinate,
double);
656 vtkGetVector2Macro(ViewportCoordinate,
double);
703 vtkSetMacro(ReferenceXValue,
double);
704 vtkGetMacro(ReferenceXValue,
double);
720 vtkSetMacro(ReferenceYValue,
double);
721 vtkGetMacro(ReferenceYValue,
double);
769 vtkSetMacro(YTitlePosition,
int);
770 vtkGetMacro(YTitlePosition,
int);
874 double XComputedRange[2];
875 double YComputedRange[2];
887 double TitlePosition[2];
900 double ViewportCoordinate[2];
901 double PlotCoordinate[2];
924 double LegendPosition[2];
925 double LegendPosition2[2];
960 double yRange[2],
double *norms,
961 int numDS,
int numDO);
981 const char* arrayName,
virtual void SetAxisTitleFontSize(int)
double * GetPlotColor(int i)
const char * GetPlotLabel(int i)
create 2D glyphs represented by vtkPolyData
virtual void SetAxisLabelShadow(int)
draw vtkPolyData onto the image plane
const char * GetDataObjectPlotModeAsString()
virtual void SetLabelFormat(const char *)
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 SetXAxisColor(double, double, double)
Set axes properties.
~vtkXYPlotActor() override
int GetNumberOfYMinorTicks()
void AddDataObjectInputConnection(vtkAlgorithmOutput *alg)
int GetPointComponent(int i)
virtual void SetAxisLabelVerticalJustification(int)
virtual void SetLegendBackgroundColor(double, double, double)
double * TransformPoint(int pos[2], int pos2[2], double x[3], double xNew[3])
void AddDataObjectInput(vtkDataObject *in)
Add a data object to the list of data to display.
vtkAxisActor2D * GetYAxisActor2D()
void SetPointComponent(int i, int comp)
If plotting points by value, which component to use to determine the value.
void RemoveAllDataSetInputConnections()
This removes all of the data set inputs, but does not change the data object inputs.
void SetNumberOfXMinorTicks(int num)
Set/Get the number of minor ticks in X or Y.
void AddDataSetInput(vtkDataSet *ds)
virtual void SetYLabelFormat(const char *)
Set/Get the format with which to print the Y label.
maintain an unordered list of data objects
vtkTypeBool ShowReferenceYLine
virtual void SetAxisTitleColor(double, double, double)
Set axis title properties.
record modification and/or execution time
virtual void SetAxisLabelFontFamily(int)
virtual void SetTitleShadow(int)
int GetNumberOfXMinorTicks()
vtkTextMapper * TitleMapper
void SetPlotLabel(int i, const char *label)
void SetXValuesToArcLength()
virtual void SetAxisLabelBold(int)
copy oriented and scaled glyph geometry to every input point (2D specialization)
void SetNumberOfYMinorTicks(int num)
void SetPlotSymbol(int i, vtkPolyData *input)
virtual void SetYAxisColor(double, double, double)
int RenderOpaqueGeometry(vtkViewport *) override
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE DO NOT USE THIS METHOD OUTSIDE OF THE RENDERI...
void RemoveDataSetInput(vtkDataSet *ds, const char *arrayName, int component)
Remove a dataset from the list of data to append.
virtual void SetAxisTitleBold(int)
vtkGlyphSource2D * GlyphSource
vtkPolyData * ReferenceLinesPolyData
virtual void SetYTitle(const char *)
Set/Get the title of the y axis.
double ComputeGlyphScale(int i, int *pos, int *pos2)
vtkActor2D * ChartBorderActor
virtual void SetLegendUseBackground(int)
vtkMTimeType GetMTime() override
Take into account the modified time of internal helper classes.
void RemoveDataSetInputConnection(vtkAlgorithmOutput *in, const char *arrayName, int component)
void PlotToViewportCoordinate(vtkViewport *viewport, double &u, double &v)
Given a plot coordinate, return the viewpoint position.
void SetYTitlePositionToVCenter()
virtual void SetTitleFontSize(int)
void SetYTitlePositionToTop()
virtual void SetAxisTitleTextProperty(vtkTextProperty *p)
Set/Get the title text property of all axes.
void RemoveDataObjectInputConnection(vtkAlgorithmOutput *aout)
Remove a dataset from the list of data to display.
virtual void SetXLabelFormat(const char *)
Set/Get the format with which to print the X label.
#define VTK_XYPLOT_Y_AXIS_TOP
implicit function for convex set of planes
virtual void SetTitleTextProperty(vtkTextProperty *p)
Set/Get the title text property.
virtual void RemoveAllActiveCurves()
void RemoveDataObjectInput(vtkDataObject *in)
virtual void SetTitleVerticalJustification(int)
void PlotToViewportCoordinate(vtkViewport *viewport)
An alternate form of PlotToViewportCoordinate() above.
vtkTypeBool HasTranslucentPolygonalGeometry() override
Does this prop have some translucent polygonal geometry?
vtkTextProperty * TitleTextProperty
virtual void SetAxisTitleVerticalJustification(int)
virtual void SetTitleBold(int)
window superclass for vtkRenderWindow
vtkTypeBool ShowReferenceXLine
void SetAdjustYLabels(int adjust)
void SetXValuesToNormalizedArcLength()
void RemoveDataSetInputConnection(vtkAlgorithmOutput *in)
virtual void SetPlotGlyphType(int, int)
Set plot properties.
vtkAppendPolyData ** PlotAppend
appends one or more polygonal datasets together
virtual void SetAxisLabelItalic(int)
virtual void SetAxisTitleItalic(int)
#define VTK_SIZEHINT(...)
virtual void SetTitleJustification(int)
vtkPolyDataMapper2D * ChartBoxMapper
void PrintAsCSV(ostream &os)
Write the XY Ploat Actor as a CSV (comma separated value) representation.
virtual void AddUserCurvesPoint(double, double, double)
virtual void SetAxisLabelFontSize(int)
int RenderOverlay(vtkViewport *) override
void AddDataSetInput(vtkDataSet *ds, const char *arrayName, int component)
Add a dataset to the list of data to append.
void GenerateClipPlanes(int *pos, int *pos2)
vtkXYPlotActorConnections * DataObjectInputConnectionHolder
static vtkXYPlotActor * New()
Instantiate object with autorange computation; bold, italic, and shadows on; arial font family; the n...
void ComputeYRange(double range[2])
void SetDataObjectXComponent(int i, int comp)
Specify which component of the input data object to use as the independent variable for the ith input...
vtkTypeBool AdjustTitlePosition
int RenderTranslucentPolygonalGeometry(vtkViewport *) override
virtual void SetTitleItalic(int)
#define VTK_XYPLOT_ARC_LENGTH
vtkTextProperty * AxisTitleTextProperty
An actor that displays text.
a simple class to control print indentation
void ReleaseGraphicsResources(vtkWindow *) override
Release any graphics resources that are being consumed by this actor.
dynamic, self-adjusting array of int
virtual void SetAxisTitleShadow(int)
void ComputeXRange(double range[2], double *lengths)
vtkPolyData * ChartBoxPolyData
char ** SelectedInputScalars
vtkActor2D * ReferenceLinesActor
void ComputeDORange(double xrange[2], double yrange[2], double *lengths)
void SetXTitlePosition(double position)
Set/Get the position of the title of X axis.
virtual void SetAxisTitleJustification(int)
virtual void SetTitleFontFamily(int)
virtual void SetAxisTitleFontFamily(int)
void SetPlotColor(int i, double r, double g, double b)
void AddDataSetInputConnection(vtkAlgorithmOutput *in)
virtual void SetLegendBox(int)
vtkTypeBool PlotCurveLines
void PlaceAxes(vtkViewport *viewport, int *size, int pos[2], int pos2[2])
abstract specification for Viewports
#define VTK_XYPLOT_Y_AXIS_HCENTER
virtual void SetAxisLabelColor(double, double, double)
Set axis label properties.
vtkProperty2D * GetChartBoxProperty()
Get the box vtkProperty2D.
void SetAdjustXLabels(int adjust)
Set/Get the flag that controls whether the labels and ticks are adjusted for "nice" numerical values ...
vtkPolyData * ChartBorderPolyData
vtkLegendBoxActor * LegendActor
abstract class to specify dataset behavior
represent text properties.
generate an x-y plot from input dataset(s) or field data
vtkActor2D * ChartBoxActor
represent surface properties of a 2D image
vtkPolyDataMapper2D * ReferenceLinesMapper
a actor that draws 2D data
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...
void SetDataObjectPlotModeToColumns()
virtual void CreatePlotData(int *pos, int *pos2, double xRange[2], double yRange[2], double *norms, int numDS, int numDO)
Proxy object to connect input/output ports.
void AddDataSetInputConnection(vtkAlgorithmOutput *in, const char *arrayName, int component)
const char * GetLabelFormat()
void ViewportToPlotCoordinate(vtkViewport *viewport)
An alternate form of ViewportToPlotCoordinate() above.
#define VTK_XYPLOT_COLUMN
#define VTK_XYPLOT_Y_AXIS_VCENTER
void RemoveDataSetInput(vtkDataSet *ds)
vtkTextActor * YTitleActor
concrete dataset represents vertices, lines, polygons, and triangle strips
Create an axis with tick marks and labels.
const char * GetXValuesAsString()
vtkAxisActor2D * GetXAxisActor2D()
Retrieve handles to the X and Y axis (so that you can set their text properties for example)
maintain an unordered list of dataset objects
int GetDataObjectXComponent(int i)
void SetPlotPoints(int i, int)
double GetXTitlePosition()
virtual void SetLineWidth(double)
void SetPlotColor(int i, const double color[3])
dynamic, self-adjusting array of double
virtual void SetTitleColor(double, double, double)
Set title properties.
vtkXYPlotActorConnections * InputConnectionHolder
vtkTextProperty * AxisLabelTextProperty
vtkPolyDataMapper2D ** PlotMapper
void ClipPlotData(int *pos, int *pos2, vtkPolyData *pd)
int GetDataObjectYComponent(int i)
virtual void SetLegendBorder(int)
Set legend properties.
int AdjustTitlePositionMode
general representation of visualization data
vtkPolyData * GetPlotSymbol(int i)
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkSmartPointer< vtkDoubleArray > ActiveCurve
void SetNumberOfLabels(int num)
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...
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 SetYTitlePositionToHCenter()
#define VTK_XYPLOT_NORMALIZED_ARC_LENGTH
void SetDataObjectPlotModeToRows()
void SetPlotLines(int i, int)
void SetPlotRange(double xmin, double ymin, double xmax, double ymax)
vtkTypeBool PlotCurvePoints
virtual void SetAxisLabelJustification(int)
vtkTypeUInt32 vtkMTimeType
vtkIntArray * SelectedInputScalarsComponent
vtkPolyDataMapper2D * ChartBorderMapper