VTK  9.3.20240727
vtkXYPlotActor.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2// SPDX-License-Identifier: BSD-3-Clause
98#ifndef vtkXYPlotActor_h
99#define vtkXYPlotActor_h
100
101#define VTK_XYPLOT_INDEX 0
102#define VTK_XYPLOT_ARC_LENGTH 1
103#define VTK_XYPLOT_NORMALIZED_ARC_LENGTH 2
104#define VTK_XYPLOT_VALUE 3
105
106#define VTK_XYPLOT_ROW 0
107#define VTK_XYPLOT_COLUMN 1
108
109#define VTK_XYPLOT_Y_AXIS_TOP 0
110#define VTK_XYPLOT_Y_AXIS_HCENTER 1
111#define VTK_XYPLOT_Y_AXIS_VCENTER 2 // rotate by 90 degrees (y-axis aligned)
112
113#include "vtkActor2D.h"
114#include "vtkRenderingAnnotationModule.h" // For export macro
115#include "vtkSmartPointer.h" // For SP
116#include "vtkWrappingHints.h" // For VTK_MARSHALAUTO
117
118VTK_ABI_NAMESPACE_BEGIN
119class vtkXYPlotActorConnections;
122class vtkAxisActor2D;
123class vtkDataObject;
125class vtkDataSet;
127class vtkDoubleArray;
128class vtkGlyph2D;
129class vtkGlyphSource2D;
130class vtkIntArray;
132class vtkPlanes;
133class vtkPolyData;
135class vtkTextActor;
136class vtkTextMapper;
137class vtkTextProperty;
138
139class VTKRENDERINGANNOTATION_EXPORT VTK_MARSHALAUTO vtkXYPlotActor : public vtkActor2D
140{
141public:
143 void PrintSelf(ostream& os, vtkIndent indent) override;
144
152
153 //---Data Set Input----------------------------------------------------------
154 // The following methods are used to plot input datasets. Datasets
155 // will be plotted if set as input; otherwise the input data objects
156 // will be plotted (if defined).
157
159
167 void AddDataSetInput(vtkDataSet* ds, const char* arrayName, int component);
169 void AddDataSetInput(vtkDataSet* ds) { this->AddDataSetInput(ds, nullptr, 0); }
170 void AddDataSetInputConnection(vtkAlgorithmOutput* in, const char* arrayName, int component);
172 {
173 this->AddDataSetInputConnection(in, nullptr, 0);
174 }
176
178
181 void RemoveDataSetInput(vtkDataSet* ds, const char* arrayName, int component);
183 void RemoveDataSetInput(vtkDataSet* ds) { this->RemoveDataSetInput(ds, nullptr, 0); }
184 void RemoveDataSetInputConnection(vtkAlgorithmOutput* in, const char* arrayName, int component);
186 {
187 this->RemoveDataSetInputConnection(in, nullptr, 0);
188 }
190
196
201
206
208
212 void SetPointComponent(int i, int comp);
214 //---end Data Set Input-----------------------------------------------------
216
218
228 vtkSetClampMacro(XValues, int, VTK_XYPLOT_INDEX, VTK_XYPLOT_VALUE);
229 vtkGetMacro(XValues, int);
230 void SetXValuesToIndex() { this->SetXValues(VTK_XYPLOT_INDEX); }
231 void SetXValuesToArcLength() { this->SetXValues(VTK_XYPLOT_ARC_LENGTH); }
233 void SetXValuesToValue() { this->SetXValues(VTK_XYPLOT_VALUE); }
234 const char* GetXValuesAsString();
236
237 //---Data Object Input------------------------------------------------------
238 // The following methods are used to plot input data objects. Datasets will
239 // be plotted in preference to data objects if set as input; otherwise the
240 // input data objects will be plotted (if defined).
241
243
247 void AddDataObjectInput(vtkDataObject* in);
248 void AddDataObjectInputConnection(vtkAlgorithmOutput* alg);
250
252
255 void RemoveDataObjectInputConnection(vtkAlgorithmOutput* aout);
257 void RemoveDataObjectInput(vtkDataObject* in);
259
263 void RemoveAllDataObjectInputConnections();
264
268 vtkAlgorithmOutput* GetDataObjectInputConnection(unsigned int idx);
269
273 unsigned int GetNumberOfDataObjectInputConnections();
274
276
281 vtkSetClampMacro(DataObjectPlotMode, int, VTK_XYPLOT_ROW, VTK_XYPLOT_COLUMN);
282 vtkGetMacro(DataObjectPlotMode, int);
283 void SetDataObjectPlotModeToRows() { this->SetDataObjectPlotMode(VTK_XYPLOT_ROW); }
284 void SetDataObjectPlotModeToColumns() { this->SetDataObjectPlotMode(VTK_XYPLOT_COLUMN); }
287
289
297 void SetDataObjectXComponent(int i, int comp);
300
302
310 void SetDataObjectYComponent(int i, int comp);
312 //---end Data Object Input--------------------------------------------------
314
315 //---Per Curve Properties---------------------------------------------------
316 // The following methods are used to set properties on each curve that is
317 // plotted. Each input dataset (or data object) results in one curve. The
318 // methods that follow have an index i that corresponds to the input dataset
319 // or data object.
320 void SetPlotColor(int i, double r, double g, double b);
321 void SetPlotColor(int i, const double color[3])
322 {
323 this->SetPlotColor(i, color[0], color[1], color[2]);
324 }
325 double* GetPlotColor(int i) VTK_SIZEHINT(3);
326 void SetPlotSymbol(int i, vtkPolyData* input);
328 void SetPlotLabel(int i, const char* label);
329 const char* GetPlotLabel(int i);
330
331 // Allow per-curve specification of line and point rendering. These override
332 // global settings PlotPoints and PlotLines. If not on, the default behavior
333 // is governed by PlotPoints and PlotLines ivars.
334 vtkGetMacro(PlotCurvePoints, vtkTypeBool);
335 vtkSetMacro(PlotCurvePoints, vtkTypeBool);
336 vtkBooleanMacro(PlotCurvePoints, vtkTypeBool);
337
338 vtkGetMacro(PlotCurveLines, vtkTypeBool);
339 vtkSetMacro(PlotCurveLines, vtkTypeBool);
340 vtkBooleanMacro(PlotCurveLines, vtkTypeBool);
341
342 void SetPlotLines(int i, int);
343 int GetPlotLines(int i);
344
345 void SetPlotPoints(int i, int);
346 int GetPlotPoints(int i);
347 //---end Per Curve Properties-----------------------------------------------
348
350
354 vtkSetMacro(ExchangeAxes, vtkTypeBool);
355 vtkGetMacro(ExchangeAxes, vtkTypeBool);
356 vtkBooleanMacro(ExchangeAxes, vtkTypeBool);
358
360
365 vtkSetMacro(ReverseXAxis, vtkTypeBool);
366 vtkGetMacro(ReverseXAxis, vtkTypeBool);
367 vtkBooleanMacro(ReverseXAxis, vtkTypeBool);
369
371
376 vtkSetMacro(ReverseYAxis, vtkTypeBool);
377 vtkGetMacro(ReverseYAxis, vtkTypeBool);
378 vtkBooleanMacro(ReverseYAxis, vtkTypeBool);
380
382
388 vtkGetObjectMacro(LegendActor, vtkLegendBoxActor);
389 vtkGetObjectMacro(GlyphSource, vtkGlyphSource2D);
391
393
396 vtkSetStringMacro(Title);
397 vtkGetStringMacro(Title);
399
401
404 vtkSetStringMacro(XTitle);
405 vtkGetStringMacro(XTitle);
407
409
412 virtual void SetYTitle(const char*);
413 char* GetYTitle();
415
417
421 vtkAxisActor2D* GetXAxisActor2D() { return this->XAxis; }
422 vtkAxisActor2D* GetYAxisActor2D() { return this->YAxis; }
424
426
434 vtkSetVector2Macro(XRange, double);
435 vtkGetVectorMacro(XRange, double, 2);
436 vtkSetVector2Macro(YRange, double);
437 vtkGetVectorMacro(YRange, double, 2);
438 void SetPlotRange(double xmin, double ymin, double xmax, double ymax)
439 {
440 this->SetXRange(xmin, xmax);
441 this->SetYRange(ymin, ymax);
442 }
444
446
452 vtkSetClampMacro(NumberOfXLabels, int, 0, 50);
453 vtkGetMacro(NumberOfXLabels, int);
454 vtkSetClampMacro(NumberOfYLabels, int, 0, 50);
455 vtkGetMacro(NumberOfYLabels, int);
456 void SetNumberOfLabels(int num)
457 {
458 this->SetNumberOfXLabels(num);
459 this->SetNumberOfYLabels(num);
460 }
462
464
471 void SetAdjustXLabels(int adjust);
472 vtkGetMacro(AdjustXLabels, int);
473 void SetAdjustYLabels(int adjust);
474 vtkGetMacro(AdjustYLabels, int);
476
478
486
488
493 vtkSetMacro(Legend, vtkTypeBool);
494 vtkGetMacro(Legend, vtkTypeBool);
495 vtkBooleanMacro(Legend, vtkTypeBool);
497
499
503 vtkSetVector2Macro(TitlePosition, double);
504 vtkGetVector2Macro(TitlePosition, double);
506
508
512 vtkSetMacro(AdjustTitlePosition, vtkTypeBool);
513 vtkGetMacro(AdjustTitlePosition, vtkTypeBool);
514 vtkBooleanMacro(AdjustTitlePosition, vtkTypeBool);
516
518 {
519 AlignLeft = 0x1,
520 AlignRight = 0x2,
521 AlignHCenter = 0x4,
522 AlignTop = 0x10,
523 AlignBottom = 0x20,
524 AlignVCenter = 0x40,
525 AlignAxisLeft = 0x100,
526 AlignAxisRight = 0x200,
527 AlignAxisHCenter = 0x400,
528 AlignAxisTop = 0x1000,
529 AlignAxisBottom = 0x2000,
530 AlignAxisVCenter = 0x4000
531 };
532
534
541 vtkSetMacro(AdjustTitlePositionMode, int);
542 vtkGetMacro(AdjustTitlePositionMode, int);
544
546
554 vtkSetVector2Macro(LegendPosition, double);
555 vtkGetVector2Macro(LegendPosition, double);
556 vtkSetVector2Macro(LegendPosition2, double);
557 vtkGetVector2Macro(LegendPosition2, double);
559
561
565 vtkGetObjectMacro(TitleTextProperty, vtkTextProperty);
567
569
574 vtkGetObjectMacro(AxisTitleTextProperty, vtkTextProperty);
576
578
583 vtkGetObjectMacro(AxisLabelTextProperty, vtkTextProperty);
585
587
590 vtkSetMacro(Logx, vtkTypeBool);
591 vtkGetMacro(Logx, vtkTypeBool);
592 vtkBooleanMacro(Logx, vtkTypeBool);
594
596
600 virtual void SetLabelFormat(const char*);
601 const char* GetLabelFormat() { return this->GetXLabelFormat(); }
603
605
608 virtual void SetXLabelFormat(const char*);
609 vtkGetStringMacro(XLabelFormat);
611
613
616 virtual void SetYLabelFormat(const char*);
617 vtkGetStringMacro(YLabelFormat);
619
621
625 vtkSetClampMacro(Border, int, 0, 50);
626 vtkGetMacro(Border, int);
628
630
635 vtkGetMacro(PlotPoints, vtkTypeBool);
636 vtkSetMacro(PlotPoints, vtkTypeBool);
637 vtkBooleanMacro(PlotPoints, vtkTypeBool);
639
641
645 vtkGetMacro(PlotLines, vtkTypeBool);
646 vtkSetMacro(PlotLines, vtkTypeBool);
647 vtkBooleanMacro(PlotLines, vtkTypeBool);
649
651
656 vtkSetClampMacro(GlyphSize, double, 0.0, 0.2);
657 vtkGetMacro(GlyphSize, double);
659
664 void ViewportToPlotCoordinate(vtkViewport* viewport, double& u, double& v);
665
667
673 vtkSetVector2Macro(PlotCoordinate, double);
674 vtkGetVector2Macro(PlotCoordinate, double);
676
680 void PlotToViewportCoordinate(vtkViewport* viewport, double& u, double& v);
681
683
690 vtkSetVector2Macro(ViewportCoordinate, double);
691 vtkGetVector2Macro(ViewportCoordinate, double);
693
698 int IsInPlot(vtkViewport* viewport, double u, double v);
699
701
705 vtkSetMacro(ChartBox, vtkTypeBool);
706 vtkGetMacro(ChartBox, vtkTypeBool);
707 vtkBooleanMacro(ChartBox, vtkTypeBool);
709
711
715 vtkSetMacro(ChartBorder, vtkTypeBool);
716 vtkGetMacro(ChartBorder, vtkTypeBool);
717 vtkBooleanMacro(ChartBorder, vtkTypeBool);
719
723 vtkProperty2D* GetChartBoxProperty() { return this->ChartBoxActor->GetProperty(); }
724
726
729 vtkSetMacro(ShowReferenceXLine, vtkTypeBool);
730 vtkGetMacro(ShowReferenceXLine, vtkTypeBool);
731 vtkBooleanMacro(ShowReferenceXLine, vtkTypeBool);
733
735
738 vtkSetMacro(ReferenceXValue, double);
739 vtkGetMacro(ReferenceXValue, double);
741
743
746 vtkSetMacro(ShowReferenceYLine, vtkTypeBool);
747 vtkGetMacro(ShowReferenceYLine, vtkTypeBool);
748 vtkBooleanMacro(ShowReferenceYLine, vtkTypeBool);
750
752
755 vtkSetMacro(ReferenceYValue, double);
756 vtkGetMacro(ReferenceYValue, double);
758
763
767 void PrintAsCSV(ostream& os);
768
770
779
784
791
793
796 void SetXTitlePosition(double position);
799
801
804 vtkSetMacro(YTitlePosition, int);
805 vtkGetMacro(YTitlePosition, int);
806 void SetYTitlePositionToTop() { this->SetYTitlePosition(VTK_XYPLOT_Y_AXIS_TOP); }
807 void SetYTitlePositionToHCenter() { this->SetYTitlePosition(VTK_XYPLOT_Y_AXIS_HCENTER); }
808 void SetYTitlePositionToVCenter() { this->SetYTitlePosition(VTK_XYPLOT_Y_AXIS_VCENTER); }
810
812
815 virtual void SetPlotGlyphType(int, int);
816 virtual void SetLineWidth(double);
817 virtual void AddUserCurvesPoint(double, double, double);
818 virtual void RemoveAllActiveCurves();
820
822
825 virtual void SetLegendBorder(int);
826 virtual void SetLegendBox(int);
827 virtual void SetLegendUseBackground(int);
828 virtual void SetLegendBackgroundColor(double, double, double);
830
832
835 virtual void SetTitleColor(double, double, double);
836 virtual void SetTitleFontFamily(int);
837 virtual void SetTitleBold(int);
838 virtual void SetTitleItalic(int);
839 virtual void SetTitleShadow(int);
840 virtual void SetTitleFontSize(int);
841 virtual void SetTitleJustification(int);
844
846
849 virtual void SetXAxisColor(double, double, double);
850 virtual void SetYAxisColor(double, double, double);
852
854
857 virtual void SetAxisTitleColor(double, double, double);
858 virtual void SetAxisTitleFontFamily(int);
859 virtual void SetAxisTitleBold(int);
860 virtual void SetAxisTitleItalic(int);
861 virtual void SetAxisTitleShadow(int);
862 virtual void SetAxisTitleFontSize(int);
863 virtual void SetAxisTitleJustification(int);
866
868
871 virtual void SetAxisLabelColor(double, double, double);
872 virtual void SetAxisLabelFontFamily(int);
873 virtual void SetAxisLabelBold(int);
874 virtual void SetAxisLabelItalic(int);
875 virtual void SetAxisLabelShadow(int);
876 virtual void SetAxisLabelFontSize(int);
877 virtual void SetAxisLabelJustification(int);
880
881protected:
883 ~vtkXYPlotActor() override;
884
885 vtkXYPlotActorConnections* InputConnectionHolder;
886 char** SelectedInputScalars; // list of data set arrays to plot
888 vtkXYPlotActorConnections* DataObjectInputConnectionHolder; // list of data objects to plot
889 char* Title;
890 char* XTitle;
898 double XRange[2];
899 double YRange[2];
900 double XComputedRange[2]; // range actually used by plot
901 double YComputedRange[2]; // range actually used by plot
913 double TitlePosition[2];
915
919
922
925
926 double ViewportCoordinate[2];
927 double PlotCoordinate[2];
928
929 // Handle data objects and datasets
935
936 // The data drawn within the axes. Each curve is one polydata.
937 // color is controlled by scalar data. The curves are appended
938 // together, possibly glyphed with point symbols.
946
947 // Legends and plot symbols. The legend also keeps track of
948 // the symbols and such.
950 double LegendPosition[2];
951 double LegendPosition2[2];
955 double GlyphSize;
956
957 // Background box
966
967 // Reference lines
972
976
977 // Keep track of changes.
978 int CachedSize[2];
980
981 void ComputeXRange(double range[2], double* lengths);
982 void ComputeYRange(double range[2]);
983 void ComputeDORange(double xrange[2], double yrange[2], double* lengths);
984
985 virtual void CreatePlotData(
986 int* pos, int* pos2, double xRange[2], double yRange[2], double* norms, int numDS, int numDO);
987 void PlaceAxes(vtkViewport* viewport, const int* size, int pos[2], int pos2[2]);
988 void GenerateClipPlanes(int* pos, int* pos2);
989 double ComputeGlyphScale(int i, int* pos, int* pos2);
990 void ClipPlotData(int* pos, int* pos2, vtkPolyData* pd);
991 double* TransformPoint(int pos[2], int pos2[2], double x[3], double xNew[3]);
992
994
998
999private:
1000 vtkXYPlotActor(const vtkXYPlotActor&) = delete;
1001 void operator=(const vtkXYPlotActor&) = delete;
1002
1003 bool DoesConnectionMatch(int i, vtkAlgorithmOutput* in);
1004
1005 int IsInputPresent(vtkAlgorithmOutput* in, const char* arrayName, int component);
1006
1010 int YTitleSize[2];
1011
1015 int YTitlePosition;
1016
1018
1021 int YTitleDelta;
1023};
1024
1025VTK_ABI_NAMESPACE_END
1026#endif
a actor that draws 2D data
Definition vtkActor2D.h:145
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
Definition vtkDataSet.h:166
dynamic, self-adjusting array of double
copy oriented and scaled glyph geometry to every input point (2D specialization)
Definition vtkGlyph2D.h:61
create 2D glyphs represented by vtkPolyData
a simple class to control print indentation
Definition vtkIndent.h:108
dynamic, self-adjusting array of int
draw symbols with text
implicit function for convex set of planes
Definition vtkPlanes.h:151
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.
2D text annotation
represent text properties.
record modification and/or execution time
abstract specification for Viewports
Definition vtkViewport.h:65
window superclass for vtkRenderWindow
Definition vtkWindow.h:48
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.
vtkGlyph2D ** PlotGlyph
vtkXYPlotActorConnections * DataObjectInputConnectionHolder
vtkTextActor * YTitleActor
vtkAxisActor2D * YAxis
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.
int GetPlotLines(int i)
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.
vtkTypeBool ExchangeAxes
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
vtkTypeBool Logx
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.
vtkAlgorithmOutput * GetDataSetInputConnection(unsigned int idx)
Get the idx'th dataset input connection.
virtual void SetYLabelFormat(const char *)
Set/Get the format with which to print the Y label.
vtkPolyData ** PlotData
vtkTypeBool PlotLines
void SetXValuesToValue()
Specify how the independent (x) variable is computed from the points.
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)
Set legend properties.
void SetPointComponent(int i, int comp)
If plotting points by value, which component to use to determine the value.
vtkPlanes * ClipPlanes
vtkTextProperty * AxisLabelTextProperty
unsigned int GetNumberOfDataSetInputConnections()
Get the total number of dataset input connections.
void SetPlotColor(int i, double r, double g, double b)
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.
vtkTypeBool ChartBox
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.
vtkIntArray * PointsOn
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 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
virtual void SetTitleItalic(int)
Set title properties.
virtual void AddUserCurvesPoint(double, double, double)
Set plot properties.
virtual void SetAxisTitleJustification(int)
Set axis title properties.
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)
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.
vtkActor2D ** PlotActor
virtual void SetXAxisColor(double, double, double)
Set axes properties.
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)
Set plot properties.
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)
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.
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.
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)
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 InitializeEntries()
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
vtkTypeBool ReverseXAxis
vtkPolyData * ChartBoxPolyData
double * GetPlotColor(int i)
vtkIntArray * LinesOn
vtkTypeBool Legend
vtkPolyDataMapper2D ** PlotMapper
vtkTimeStamp BuildTime
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 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?
int vtkTypeBool
Definition vtkABI.h:64
vtkTypeUInt32 vtkMTimeType
Definition vtkType.h:270
#define VTK_SIZEHINT(...)
#define VTK_MARSHAL_EXCLUDE_REASON_IS_INTERNAL
#define VTK_MARSHALAUTO
#define VTK_MARSHALEXCLUDE(reason)
#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