VTK  9.0.3
vtkXYPlotActor.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkXYPlotActor.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
88 #ifndef vtkXYPlotActor_h
89 #define vtkXYPlotActor_h
90 
91 #define VTK_XYPLOT_INDEX 0
92 #define VTK_XYPLOT_ARC_LENGTH 1
93 #define VTK_XYPLOT_NORMALIZED_ARC_LENGTH 2
94 #define VTK_XYPLOT_VALUE 3
95 
96 #define VTK_XYPLOT_ROW 0
97 #define VTK_XYPLOT_COLUMN 1
98 
99 #define VTK_XYPLOT_Y_AXIS_TOP 0
100 #define VTK_XYPLOT_Y_AXIS_HCENTER 1
101 #define VTK_XYPLOT_Y_AXIS_VCENTER 2 // rotate by 90 degrees (y-axis aligned)
102 
103 #include "vtkActor2D.h"
104 #include "vtkRenderingAnnotationModule.h" // For export macro
105 #include "vtkSmartPointer.h" // For SP
106 
107 class vtkXYPlotActorConnections;
108 class vtkAlgorithmOutput;
109 class vtkAppendPolyData;
110 class vtkAxisActor2D;
111 class vtkDataObject;
113 class vtkDataSet;
115 class vtkDoubleArray;
116 class vtkGlyph2D;
117 class vtkGlyphSource2D;
118 class vtkIntArray;
119 class vtkLegendBoxActor;
120 class vtkPlanes;
121 class vtkPolyData;
122 class vtkPolyDataMapper2D;
123 class vtkTextActor;
124 class vtkTextMapper;
125 class vtkTextProperty;
126 
127 class VTKRENDERINGANNOTATION_EXPORT vtkXYPlotActor : public vtkActor2D
128 {
129 public:
130  vtkTypeMacro(vtkXYPlotActor, vtkActor2D);
131  void PrintSelf(ostream& os, vtkIndent indent) override;
132 
139  static vtkXYPlotActor* New();
140 
141  //---Data Set Input----------------------------------------------------------
142  // The following methods are used to plot input datasets. Datasets
143  // will be plotted if set as input; otherwise the input data objects
144  // will be plotted (if defined).
145 
147 
155  void AddDataSetInput(vtkDataSet* ds, const char* arrayName, int component);
156  void AddDataSetInput(vtkDataSet* ds) { this->AddDataSetInput(ds, nullptr, 0); }
157  void AddDataSetInputConnection(vtkAlgorithmOutput* in, const char* arrayName, int component);
159  {
160  this->AddDataSetInputConnection(in, nullptr, 0);
161  }
163 
165 
168  void RemoveDataSetInput(vtkDataSet* ds, const char* arrayName, int component);
169  void RemoveDataSetInput(vtkDataSet* ds) { this->RemoveDataSetInput(ds, nullptr, 0); }
170  void RemoveDataSetInputConnection(vtkAlgorithmOutput* in, const char* arrayName, int component);
172  {
173  this->RemoveDataSetInputConnection(in, nullptr, 0);
174  }
176 
182 
184 
188  void SetPointComponent(int i, int comp);
189  int GetPointComponent(int i);
190  //---end Data Set Input-----------------------------------------------------
192 
194 
204  vtkSetClampMacro(XValues, int, VTK_XYPLOT_INDEX, VTK_XYPLOT_VALUE);
205  vtkGetMacro(XValues, int);
206  void SetXValuesToIndex() { this->SetXValues(VTK_XYPLOT_INDEX); }
207  void SetXValuesToArcLength() { this->SetXValues(VTK_XYPLOT_ARC_LENGTH); }
209  void SetXValuesToValue() { this->SetXValues(VTK_XYPLOT_VALUE); }
210  const char* GetXValuesAsString();
212 
213  //---Data Object Input------------------------------------------------------
214  // The following methods are used to plot input data objects. Datasets will
215  // be plotted in preference to data objects if set as input; otherwise the
216  // input data objects will be plotted (if defined).
217 
219 
225 
227 
233 
235 
240  vtkSetClampMacro(DataObjectPlotMode, int, VTK_XYPLOT_ROW, VTK_XYPLOT_COLUMN);
241  vtkGetMacro(DataObjectPlotMode, int);
242  void SetDataObjectPlotModeToRows() { this->SetDataObjectPlotMode(VTK_XYPLOT_ROW); }
243  void SetDataObjectPlotModeToColumns() { this->SetDataObjectPlotMode(VTK_XYPLOT_COLUMN); }
246 
248 
256  void SetDataObjectXComponent(int i, int comp);
259 
261 
269  void SetDataObjectYComponent(int i, int comp);
271  //---end Data Object Input--------------------------------------------------
273 
274  //---Per Curve Properties---------------------------------------------------
275  // The following methods are used to set properties on each curve that is
276  // plotted. Each input dataset (or data object) results in one curve. The
277  // methods that follow have an index i that corresponds to the input dataset
278  // or data object.
279  void SetPlotColor(int i, double r, double g, double b);
280  void SetPlotColor(int i, const double color[3])
281  {
282  this->SetPlotColor(i, color[0], color[1], color[2]);
283  }
284  double* GetPlotColor(int i) VTK_SIZEHINT(3);
285  void SetPlotSymbol(int i, vtkPolyData* input);
287  void SetPlotLabel(int i, const char* label);
288  const char* GetPlotLabel(int i);
289 
290  // Allow per-curve specification of line and point rendering. These override
291  // global settings PlotPoints and PlotLines. If not on, the default behavior
292  // is governed by PlotPoints and PlotLines ivars.
293  vtkGetMacro(PlotCurvePoints, vtkTypeBool);
294  vtkSetMacro(PlotCurvePoints, vtkTypeBool);
295  vtkBooleanMacro(PlotCurvePoints, vtkTypeBool);
296 
297  vtkGetMacro(PlotCurveLines, vtkTypeBool);
298  vtkSetMacro(PlotCurveLines, vtkTypeBool);
299  vtkBooleanMacro(PlotCurveLines, vtkTypeBool);
300 
301  void SetPlotLines(int i, int);
302  int GetPlotLines(int i);
303 
304  void SetPlotPoints(int i, int);
305  int GetPlotPoints(int i);
306  //---end Per Curve Properties-----------------------------------------------
307 
309 
313  vtkSetMacro(ExchangeAxes, vtkTypeBool);
314  vtkGetMacro(ExchangeAxes, vtkTypeBool);
315  vtkBooleanMacro(ExchangeAxes, vtkTypeBool);
317 
319 
324  vtkSetMacro(ReverseXAxis, vtkTypeBool);
325  vtkGetMacro(ReverseXAxis, vtkTypeBool);
326  vtkBooleanMacro(ReverseXAxis, vtkTypeBool);
328 
330 
335  vtkSetMacro(ReverseYAxis, vtkTypeBool);
336  vtkGetMacro(ReverseYAxis, vtkTypeBool);
337  vtkBooleanMacro(ReverseYAxis, vtkTypeBool);
339 
341 
347  vtkGetObjectMacro(LegendActor, vtkLegendBoxActor);
348  vtkGetObjectMacro(GlyphSource, vtkGlyphSource2D);
350 
352 
355  vtkSetStringMacro(Title);
356  vtkGetStringMacro(Title);
358 
360 
363  vtkSetStringMacro(XTitle);
364  vtkGetStringMacro(XTitle);
366 
368 
371  virtual void SetYTitle(const char*);
372  char* GetYTitle();
374 
376 
380  vtkAxisActor2D* GetXAxisActor2D() { return this->XAxis; }
381  vtkAxisActor2D* GetYAxisActor2D() { return this->YAxis; }
383 
385 
393  vtkSetVector2Macro(XRange, double);
394  vtkGetVectorMacro(XRange, double, 2);
395  vtkSetVector2Macro(YRange, double);
396  vtkGetVectorMacro(YRange, double, 2);
397  void SetPlotRange(double xmin, double ymin, double xmax, double ymax)
398  {
399  this->SetXRange(xmin, xmax);
400  this->SetYRange(ymin, ymax);
401  }
403 
405 
411  vtkSetClampMacro(NumberOfXLabels, int, 0, 50);
412  vtkGetMacro(NumberOfXLabels, int);
413  vtkSetClampMacro(NumberOfYLabels, int, 0, 50);
414  vtkGetMacro(NumberOfYLabels, int);
415  void SetNumberOfLabels(int num)
416  {
417  this->SetNumberOfXLabels(num);
418  this->SetNumberOfYLabels(num);
419  }
421 
423 
430  void SetAdjustXLabels(int adjust);
431  vtkGetMacro(AdjustXLabels, int);
432  void SetAdjustYLabels(int adjust);
433  vtkGetMacro(AdjustYLabels, int);
435 
437 
440  void SetNumberOfXMinorTicks(int num);
442  void SetNumberOfYMinorTicks(int num);
445 
447 
452  vtkSetMacro(Legend, vtkTypeBool);
453  vtkGetMacro(Legend, vtkTypeBool);
454  vtkBooleanMacro(Legend, vtkTypeBool);
456 
458 
462  vtkSetVector2Macro(TitlePosition, double);
463  vtkGetVector2Macro(TitlePosition, double);
465 
467 
471  vtkSetMacro(AdjustTitlePosition, vtkTypeBool);
472  vtkGetMacro(AdjustTitlePosition, vtkTypeBool);
473  vtkBooleanMacro(AdjustTitlePosition, vtkTypeBool);
475 
477  {
478  AlignLeft = 0x1,
479  AlignRight = 0x2,
480  AlignHCenter = 0x4,
481  AlignTop = 0x10,
482  AlignBottom = 0x20,
483  AlignVCenter = 0x40,
484  AlignAxisLeft = 0x100,
485  AlignAxisRight = 0x200,
486  AlignAxisHCenter = 0x400,
487  AlignAxisTop = 0x1000,
488  AlignAxisBottom = 0x2000,
489  AlignAxisVCenter = 0x4000
490  };
491 
493 
500  vtkSetMacro(AdjustTitlePositionMode, int);
501  vtkGetMacro(AdjustTitlePositionMode, int);
503 
505 
513  vtkSetVector2Macro(LegendPosition, double);
514  vtkGetVector2Macro(LegendPosition, double);
515  vtkSetVector2Macro(LegendPosition2, double);
516  vtkGetVector2Macro(LegendPosition2, double);
518 
520 
524  vtkGetObjectMacro(TitleTextProperty, vtkTextProperty);
526 
528 
533  vtkGetObjectMacro(AxisTitleTextProperty, vtkTextProperty);
535 
537 
542  vtkGetObjectMacro(AxisLabelTextProperty, vtkTextProperty);
544 
546 
549  vtkSetMacro(Logx, vtkTypeBool);
550  vtkGetMacro(Logx, vtkTypeBool);
551  vtkBooleanMacro(Logx, vtkTypeBool);
553 
555 
559  virtual void SetLabelFormat(const char*);
560  const char* GetLabelFormat() { return this->GetXLabelFormat(); }
562 
564 
567  virtual void SetXLabelFormat(const char*);
568  vtkGetStringMacro(XLabelFormat);
570 
572 
575  virtual void SetYLabelFormat(const char*);
576  vtkGetStringMacro(YLabelFormat);
578 
580 
584  vtkSetClampMacro(Border, int, 0, 50);
585  vtkGetMacro(Border, int);
587 
589 
594  vtkGetMacro(PlotPoints, vtkTypeBool);
595  vtkSetMacro(PlotPoints, vtkTypeBool);
596  vtkBooleanMacro(PlotPoints, vtkTypeBool);
598 
600 
604  vtkGetMacro(PlotLines, vtkTypeBool);
605  vtkSetMacro(PlotLines, vtkTypeBool);
606  vtkBooleanMacro(PlotLines, vtkTypeBool);
608 
610 
615  vtkSetClampMacro(GlyphSize, double, 0.0, 0.2);
616  vtkGetMacro(GlyphSize, double);
618 
623  void ViewportToPlotCoordinate(vtkViewport* viewport, double& u, double& v);
624 
626 
632  vtkSetVector2Macro(PlotCoordinate, double);
633  vtkGetVector2Macro(PlotCoordinate, double);
635 
639  void PlotToViewportCoordinate(vtkViewport* viewport, double& u, double& v);
640 
642 
649  vtkSetVector2Macro(ViewportCoordinate, double);
650  vtkGetVector2Macro(ViewportCoordinate, double);
652 
657  int IsInPlot(vtkViewport* viewport, double u, double v);
658 
660 
664  vtkSetMacro(ChartBox, vtkTypeBool);
665  vtkGetMacro(ChartBox, vtkTypeBool);
666  vtkBooleanMacro(ChartBox, vtkTypeBool);
668 
670 
674  vtkSetMacro(ChartBorder, vtkTypeBool);
675  vtkGetMacro(ChartBorder, vtkTypeBool);
676  vtkBooleanMacro(ChartBorder, vtkTypeBool);
678 
682  vtkProperty2D* GetChartBoxProperty() { return this->ChartBoxActor->GetProperty(); }
683 
685 
688  vtkSetMacro(ShowReferenceXLine, vtkTypeBool);
689  vtkGetMacro(ShowReferenceXLine, vtkTypeBool);
690  vtkBooleanMacro(ShowReferenceXLine, vtkTypeBool);
692 
694 
697  vtkSetMacro(ReferenceXValue, double);
698  vtkGetMacro(ReferenceXValue, double);
700 
702 
705  vtkSetMacro(ShowReferenceYLine, vtkTypeBool);
706  vtkGetMacro(ShowReferenceYLine, vtkTypeBool);
707  vtkBooleanMacro(ShowReferenceYLine, vtkTypeBool);
709 
711 
714  vtkSetMacro(ReferenceYValue, double);
715  vtkGetMacro(ReferenceYValue, double);
717 
721  vtkMTimeType GetMTime() override;
722 
726  void PrintAsCSV(ostream& os);
727 
729 
735  int RenderOverlay(vtkViewport*) override;
736  int RenderTranslucentPolygonalGeometry(vtkViewport*) override { return 0; }
738 
743 
750 
752 
758 
760 
763  vtkSetMacro(YTitlePosition, int);
764  vtkGetMacro(YTitlePosition, int);
765  void SetYTitlePositionToTop() { this->SetYTitlePosition(VTK_XYPLOT_Y_AXIS_TOP); }
766  void SetYTitlePositionToHCenter() { this->SetYTitlePosition(VTK_XYPLOT_Y_AXIS_HCENTER); }
767  void SetYTitlePositionToVCenter() { this->SetYTitlePosition(VTK_XYPLOT_Y_AXIS_VCENTER); }
769 
771 
774  virtual void SetPlotGlyphType(int, int);
775  virtual void SetLineWidth(double);
776  virtual void AddUserCurvesPoint(double, double, double);
777  virtual void RemoveAllActiveCurves();
779 
781 
784  virtual void SetLegendBorder(int);
785  virtual void SetLegendBox(int);
786  virtual void SetLegendUseBackground(int);
787  virtual void SetLegendBackgroundColor(double, double, double);
789 
791 
794  virtual void SetTitleColor(double, double, double);
795  virtual void SetTitleFontFamily(int);
796  virtual void SetTitleBold(int);
797  virtual void SetTitleItalic(int);
798  virtual void SetTitleShadow(int);
799  virtual void SetTitleFontSize(int);
800  virtual void SetTitleJustification(int);
801  virtual void SetTitleVerticalJustification(int);
803 
805 
808  virtual void SetXAxisColor(double, double, double);
809  virtual void SetYAxisColor(double, double, double);
811 
813 
816  virtual void SetAxisTitleColor(double, double, double);
817  virtual void SetAxisTitleFontFamily(int);
818  virtual void SetAxisTitleBold(int);
819  virtual void SetAxisTitleItalic(int);
820  virtual void SetAxisTitleShadow(int);
821  virtual void SetAxisTitleFontSize(int);
822  virtual void SetAxisTitleJustification(int);
825 
827 
830  virtual void SetAxisLabelColor(double, double, double);
831  virtual void SetAxisLabelFontFamily(int);
832  virtual void SetAxisLabelBold(int);
833  virtual void SetAxisLabelItalic(int);
834  virtual void SetAxisLabelShadow(int);
835  virtual void SetAxisLabelFontSize(int);
836  virtual void SetAxisLabelJustification(int);
839 
840 protected:
842  ~vtkXYPlotActor() override;
843 
844  vtkXYPlotActorConnections* InputConnectionHolder;
845  char** SelectedInputScalars; // list of data set arrays to plot
847  vtkXYPlotActorConnections* DataObjectInputConnectionHolder; // list of data objects to plot
848  char* Title;
849  char* XTitle;
851  int XValues;
857  double XRange[2];
858  double YRange[2];
859  double XComputedRange[2]; // range actually used by plot
860  double YComputedRange[2]; // range actually used by plot
861  int Border;
872  double TitlePosition[2];
874 
878 
881 
884 
885  double ViewportCoordinate[2];
886  double PlotCoordinate[2];
887 
888  // Handle data objects and datasets
894 
895  // The data drawn within the axes. Each curve is one polydata.
896  // color is controlled by scalar data. The curves are appended
897  // together, possibly glyphed with point symbols.
905 
906  // Legends and plot symbols. The legend also keeps track of
907  // the symbols and such.
909  double LegendPosition[2];
910  double LegendPosition2[2];
914  double GlyphSize;
915 
916  // Background box
925 
926  // Reference lines
931 
935 
936  // Keep track of changes.
937  int CachedSize[2];
939 
940  void ComputeXRange(double range[2], double* lengths);
941  void ComputeYRange(double range[2]);
942  void ComputeDORange(double xrange[2], double yrange[2], double* lengths);
943 
944  virtual void CreatePlotData(
945  int* pos, int* pos2, double xRange[2], double yRange[2], double* norms, int numDS, int numDO);
946  void PlaceAxes(vtkViewport* viewport, const int* size, int pos[2], int pos2[2]);
947  void GenerateClipPlanes(int* pos, int* pos2);
948  double ComputeGlyphScale(int i, int* pos, int* pos2);
949  void ClipPlotData(int* pos, int* pos2, vtkPolyData* pd);
950  double* TransformPoint(int pos[2], int pos2[2], double x[3], double xNew[3]);
951 
953 
957 
958 private:
959  vtkXYPlotActor(const vtkXYPlotActor&) = delete;
960  void operator=(const vtkXYPlotActor&) = delete;
961 
962  bool DoesConnectionMatch(int i, vtkAlgorithmOutput* in);
963 
964  int IsInputPresent(vtkAlgorithmOutput* in, const char* arrayName, int component);
965 
969  int YTitleSize[2];
970 
974  int YTitlePosition;
975 
977 
980  int YTitleDelta;
982 };
983 
984 #endif
a actor that draws 2D data
Definition: vtkActor2D.h:40
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
Definition: vtkDataObject.h:60
maintain an unordered list of dataset objects
abstract class to specify dataset behavior
Definition: vtkDataSet.h:57
dynamic, self-adjusting array of double
copy oriented and scaled glyph geometry to every input point (2D specialization)
Definition: vtkGlyph2D.h:37
create 2D glyphs represented by vtkPolyData
a simple class to control print indentation
Definition: vtkIndent.h:34
dynamic, self-adjusting array of int
Definition: vtkIntArray.h:40
draw symbols with text
implicit function for convex set of planes
Definition: vtkPlanes.h:50
draw vtkPolyData onto the image plane
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:85
represent surface properties of a 2D image
Definition: vtkProperty2D.h:38
An actor that displays text.
Definition: vtkTextActor.h:51
2D text annotation
Definition: vtkTextMapper.h:48
represent text properties.
record modification and/or execution time
Definition: vtkTimeStamp.h:33
abstract specification for Viewports
Definition: vtkViewport.h:45
window superclass for vtkRenderWindow
Definition: vtkWindow.h:35
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)
void SetXValuesToIndex()
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)
int GetDataObjectXComponent(int i)
void SetNumberOfLabels(int num)
virtual void SetLegendBox(int)
void SetPlotPoints(int i, int)
void SetAdjustYLabels(int adjust)
void ComputeXRange(double range[2], double *lengths)
virtual void SetTitleFontSize(int)
int RenderOverlay(vtkViewport *) override
void SetXValuesToNormalizedArcLength()
vtkGlyph2D ** PlotGlyph
const char * GetPlotLabel(int i)
vtkXYPlotActorConnections * DataObjectInputConnectionHolder
vtkTextActor * YTitleActor
vtkAxisActor2D * YAxis
vtkPolyData * ReferenceLinesPolyData
virtual void SetTitleFontFamily(int)
virtual void SetAxisLabelItalic(int)
vtkGlyphSource2D * GlyphSource
int GetPlotLines(int i)
const char * GetDataObjectPlotModeAsString()
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)
vtkTypeBool ExchangeAxes
void PlotToViewportCoordinate(vtkViewport *viewport)
An alternate form of PlotToViewportCoordinate() above.
int RenderTranslucentPolygonalGeometry(vtkViewport *) override
virtual void SetTitleBold(int)
vtkTypeBool ShowReferenceYLine
vtkTypeBool Logx
virtual void SetAxisTitleItalic(int)
double * TransformPoint(int pos[2], int pos2[2], double x[3], double xNew[3])
virtual void SetYTitle(const char *)
Set/Get the title of the y axis.
virtual void SetAxisLabelShadow(int)
virtual void SetYLabelFormat(const char *)
Set/Get the format with which to print the Y label.
vtkAxisActor2D * GetYAxisActor2D()
vtkPolyData ** PlotData
vtkTypeBool PlotLines
void SetXValuesToValue()
vtkXYPlotActorConnections * InputConnectionHolder
vtkIntArray * XComponent
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)
void SetPointComponent(int i, int comp)
If plotting points by value, which component to use to determine the value.
vtkProperty2D * GetChartBoxProperty()
Get the box vtkProperty2D.
vtkPlanes * ClipPlanes
vtkAxisActor2D * GetXAxisActor2D()
Retrieve handles to the X and Y axis (so that you can set their text properties for example)
vtkTextProperty * AxisLabelTextProperty
const char * GetXValuesAsString()
double ReferenceYValue
void SetPlotColor(int i, double r, double g, double b)
void SetYTitlePositionToVCenter()
vtkPolyDataMapper2D * ReferenceLinesMapper
vtkActor2D * ChartBoxActor
vtkTypeBool ChartBox
void SetYTitlePositionToHCenter()
virtual void RemoveAllActiveCurves()
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()
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)
void SetNumberOfXMinorTicks(int num)
Set/Get the number of minor ticks in X or Y.
void AddDataSetInput(vtkDataSet *ds)
vtkIntArray * PointsOn
virtual void SetLegendBorder(int)
Set legend properties.
virtual void SetYAxisColor(double, double, double)
double ComputeGlyphScale(int i, int *pos, int *pos2)
void SetXTitlePosition(double position)
Set/Get the position of the title of X axis.
vtkPolyData * GetPlotSymbol(int i)
static vtkXYPlotActor * New()
Instantiate object with autorange computation; bold, italic, and shadows on; arial font family; the n...
virtual void SetAxisTitleFontFamily(int)
virtual void SetPlotGlyphType(int, int)
Set plot properties.
void AddDataObjectInputConnection(vtkAlgorithmOutput *alg)
void RemoveDataSetInputConnection(vtkAlgorithmOutput *in, const char *arrayName, int component)
virtual void SetAxisLabelVerticalJustification(int)
virtual void SetAxisTitleShadow(int)
virtual void SetAxisLabelColor(double, double, double)
Set axis label properties.
vtkTextProperty * TitleTextProperty
void RemoveDataObjectInput(vtkDataObject *in)
virtual void SetTitleItalic(int)
double * GetPlotColor(int i)
virtual void AddUserCurvesPoint(double, double, double)
virtual void SetAxisTitleJustification(int)
int GetPlotPoints(int i)
vtkTypeBool ReverseYAxis
void SetPlotLabel(int i, const char *label)
void PlaceAxes(vtkViewport *viewport, const int *size, int pos[2], int pos2[2])
void RemoveDataSetInputConnection(vtkAlgorithmOutput *in)
char ** SelectedInputScalars
virtual void SetAxisLabelBold(int)
virtual void SetAxisTitleFontSize(int)
virtual void SetAxisTitleBold(int)
virtual void SetXLabelFormat(const char *)
Set/Get the format with which to print the X label.
vtkActor2D ** PlotActor
virtual void SetXAxisColor(double, double, double)
Set axes properties.
void AddDataObjectInput(vtkDataObject *in)
Add a data object to the list of data to display.
vtkActor2D * TitleActor
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)
void ClipPlotData(int *pos, int *pos2, vtkPolyData *pd)
vtkTypeBool AdjustTitlePosition
vtkIntArray * YComponent
void SetPlotLines(int i, int)
vtkTypeBool PlotPoints
vtkTypeBool PlotCurvePoints
void GenerateClipPlanes(int *pos, int *pos2)
~vtkXYPlotActor() override
int GetNumberOfYMinorTicks()
virtual void SetAxisLabelJustification(int)
const char * GetLabelFormat()
vtkTextMapper * TitleMapper
vtkPolyData * ChartBorderPolyData
virtual void SetTitleJustification(int)
void RemoveDataObjectInputConnection(vtkAlgorithmOutput *aout)
Remove a dataset from the list of data to display.
vtkTypeBool PlotCurveLines
char * GetYTitle()
vtkIntArray * SelectedInputScalarsComponent
vtkActor2D * ChartBorderActor
virtual void SetLegendBackgroundColor(double, double, double)
virtual void SetAxisLabelFontSize(int)
int RenderOpaqueGeometry(vtkViewport *) override
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE DO NOT USE THIS METHOD OUTSIDE OF THE RENDERI...
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()
void SetPlotColor(int i, const double color[3])
vtkPolyDataMapper2D * ChartBoxMapper
int GetPointComponent(int i)
virtual void SetTitleColor(double, double, double)
Set title properties.
int GetNumberOfXMinorTicks()
vtkAxisActor2D * XAxis
virtual void SetAxisTitleColor(double, double, double)
Set axis title properties.
vtkTypeBool ChartBorder
void PlotToViewportCoordinate(vtkViewport *viewport, double &u, double &v)
Given a plot coordinate, return the viewpoint position.
virtual void SetTitleShadow(int)
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 InitializeEntries()
void ReleaseGraphicsResources(vtkWindow *) override
Release any graphics resources that are being consumed by this actor.
double GetXTitlePosition()
vtkPolyDataMapper2D * ChartBorderMapper
vtkTypeBool ReverseXAxis
vtkPolyData * ChartBoxPolyData
vtkIntArray * LinesOn
vtkTypeBool Legend
vtkPolyDataMapper2D ** PlotMapper
vtkTimeStamp BuildTime
void RemoveDataSetInput(vtkDataSet *ds)
void SetXValuesToArcLength()
int GetDataObjectYComponent(int i)
void SetDataObjectPlotModeToRows()
void SetNumberOfYMinorTicks(int num)
vtkSmartPointer< vtkDoubleArray > ActiveCurve
vtkTextProperty * AxisTitleTextProperty
vtkAppendPolyData ** PlotAppend
void AddDataSetInputConnection(vtkAlgorithmOutput *in)
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 ...
virtual void SetAxisLabelTextProperty(vtkTextProperty *p)
Set/Get the labels text property of all axes.
double ReferenceXValue
virtual void SetAxisLabelFontFamily(int)
void ComputeDORange(double xrange[2], double yrange[2], double *lengths)
vtkTypeBool HasTranslucentPolygonalGeometry() override
Does this prop have some translucent polygonal geometry?
@ component
Definition: vtkX3D.h:181
@ range
Definition: vtkX3D.h:244
@ color
Definition: vtkX3D.h:227
@ position
Definition: vtkX3D.h:267
@ size
Definition: vtkX3D.h:259
int vtkTypeBool
Definition: vtkABI.h:69
vtkTypeUInt32 vtkMTimeType
Definition: vtkType.h:293
#define VTK_SIZEHINT(...)
#define VTK_XYPLOT_Y_AXIS_HCENTER
#define VTK_XYPLOT_Y_AXIS_VCENTER
#define VTK_XYPLOT_COLUMN
#define VTK_XYPLOT_INDEX
#define VTK_XYPLOT_Y_AXIS_TOP
#define VTK_XYPLOT_VALUE
#define VTK_XYPLOT_NORMALIZED_ARC_LENGTH
#define VTK_XYPLOT_ROW
#define VTK_XYPLOT_ARC_LENGTH