VTK  9.1.0
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=========================================================================*/
97#ifndef vtkXYPlotActor_h
98#define vtkXYPlotActor_h
99
100#define VTK_XYPLOT_INDEX 0
101#define VTK_XYPLOT_ARC_LENGTH 1
102#define VTK_XYPLOT_NORMALIZED_ARC_LENGTH 2
103#define VTK_XYPLOT_VALUE 3
104
105#define VTK_XYPLOT_ROW 0
106#define VTK_XYPLOT_COLUMN 1
107
108#define VTK_XYPLOT_Y_AXIS_TOP 0
109#define VTK_XYPLOT_Y_AXIS_HCENTER 1
110#define VTK_XYPLOT_Y_AXIS_VCENTER 2 // rotate by 90 degrees (y-axis aligned)
111
112#include "vtkActor2D.h"
113#include "vtkRenderingAnnotationModule.h" // For export macro
114#include "vtkSmartPointer.h" // For SP
115
116class vtkXYPlotActorConnections;
119class vtkAxisActor2D;
120class vtkDataObject;
122class vtkDataSet;
124class vtkDoubleArray;
125class vtkGlyph2D;
126class vtkGlyphSource2D;
127class vtkIntArray;
129class vtkPlanes;
130class vtkPolyData;
132class vtkTextActor;
133class vtkTextMapper;
134class vtkTextProperty;
135
136class VTKRENDERINGANNOTATION_EXPORT vtkXYPlotActor : public vtkActor2D
137{
138public:
140 void PrintSelf(ostream& os, vtkIndent indent) override;
141
149
150 //---Data Set Input----------------------------------------------------------
151 // The following methods are used to plot input datasets. Datasets
152 // will be plotted if set as input; otherwise the input data objects
153 // will be plotted (if defined).
154
156
164 void AddDataSetInput(vtkDataSet* ds, const char* arrayName, int component);
165 void AddDataSetInput(vtkDataSet* ds) { this->AddDataSetInput(ds, nullptr, 0); }
166 void AddDataSetInputConnection(vtkAlgorithmOutput* in, const char* arrayName, int component);
168 {
169 this->AddDataSetInputConnection(in, nullptr, 0);
170 }
172
174
177 void RemoveDataSetInput(vtkDataSet* ds, const char* arrayName, int component);
178 void RemoveDataSetInput(vtkDataSet* ds) { this->RemoveDataSetInput(ds, nullptr, 0); }
179 void RemoveDataSetInputConnection(vtkAlgorithmOutput* in, const char* arrayName, int component);
181 {
182 this->RemoveDataSetInputConnection(in, nullptr, 0);
183 }
185
191
193
197 void SetPointComponent(int i, int comp);
199 //---end Data Set Input-----------------------------------------------------
201
203
213 vtkSetClampMacro(XValues, int, VTK_XYPLOT_INDEX, VTK_XYPLOT_VALUE);
214 vtkGetMacro(XValues, int);
215 void SetXValuesToIndex() { this->SetXValues(VTK_XYPLOT_INDEX); }
216 void SetXValuesToArcLength() { this->SetXValues(VTK_XYPLOT_ARC_LENGTH); }
218 void SetXValuesToValue() { this->SetXValues(VTK_XYPLOT_VALUE); }
219 const char* GetXValuesAsString();
221
222 //---Data Object Input------------------------------------------------------
223 // The following methods are used to plot input data objects. Datasets will
224 // be plotted in preference to data objects if set as input; otherwise the
225 // input data objects will be plotted (if defined).
226
228
234
236
242
244
249 vtkSetClampMacro(DataObjectPlotMode, int, VTK_XYPLOT_ROW, VTK_XYPLOT_COLUMN);
250 vtkGetMacro(DataObjectPlotMode, int);
251 void SetDataObjectPlotModeToRows() { this->SetDataObjectPlotMode(VTK_XYPLOT_ROW); }
252 void SetDataObjectPlotModeToColumns() { this->SetDataObjectPlotMode(VTK_XYPLOT_COLUMN); }
255
257
265 void SetDataObjectXComponent(int i, int comp);
268
270
278 void SetDataObjectYComponent(int i, int comp);
280 //---end Data Object Input--------------------------------------------------
282
283 //---Per Curve Properties---------------------------------------------------
284 // The following methods are used to set properties on each curve that is
285 // plotted. Each input dataset (or data object) results in one curve. The
286 // methods that follow have an index i that corresponds to the input dataset
287 // or data object.
288 void SetPlotColor(int i, double r, double g, double b);
289 void SetPlotColor(int i, const double color[3])
290 {
291 this->SetPlotColor(i, color[0], color[1], color[2]);
292 }
293 double* GetPlotColor(int i) VTK_SIZEHINT(3);
294 void SetPlotSymbol(int i, vtkPolyData* input);
296 void SetPlotLabel(int i, const char* label);
297 const char* GetPlotLabel(int i);
298
299 // Allow per-curve specification of line and point rendering. These override
300 // global settings PlotPoints and PlotLines. If not on, the default behavior
301 // is governed by PlotPoints and PlotLines ivars.
302 vtkGetMacro(PlotCurvePoints, vtkTypeBool);
303 vtkSetMacro(PlotCurvePoints, vtkTypeBool);
304 vtkBooleanMacro(PlotCurvePoints, vtkTypeBool);
305
306 vtkGetMacro(PlotCurveLines, vtkTypeBool);
307 vtkSetMacro(PlotCurveLines, vtkTypeBool);
308 vtkBooleanMacro(PlotCurveLines, vtkTypeBool);
309
310 void SetPlotLines(int i, int);
311 int GetPlotLines(int i);
312
313 void SetPlotPoints(int i, int);
314 int GetPlotPoints(int i);
315 //---end Per Curve Properties-----------------------------------------------
316
318
322 vtkSetMacro(ExchangeAxes, vtkTypeBool);
323 vtkGetMacro(ExchangeAxes, vtkTypeBool);
324 vtkBooleanMacro(ExchangeAxes, vtkTypeBool);
326
328
333 vtkSetMacro(ReverseXAxis, vtkTypeBool);
334 vtkGetMacro(ReverseXAxis, vtkTypeBool);
335 vtkBooleanMacro(ReverseXAxis, vtkTypeBool);
337
339
344 vtkSetMacro(ReverseYAxis, vtkTypeBool);
345 vtkGetMacro(ReverseYAxis, vtkTypeBool);
346 vtkBooleanMacro(ReverseYAxis, vtkTypeBool);
348
350
356 vtkGetObjectMacro(LegendActor, vtkLegendBoxActor);
357 vtkGetObjectMacro(GlyphSource, vtkGlyphSource2D);
359
361
364 vtkSetStringMacro(Title);
365 vtkGetStringMacro(Title);
367
369
372 vtkSetStringMacro(XTitle);
373 vtkGetStringMacro(XTitle);
375
377
380 virtual void SetYTitle(const char*);
381 char* GetYTitle();
383
385
389 vtkAxisActor2D* GetXAxisActor2D() { return this->XAxis; }
390 vtkAxisActor2D* GetYAxisActor2D() { return this->YAxis; }
392
394
402 vtkSetVector2Macro(XRange, double);
403 vtkGetVectorMacro(XRange, double, 2);
404 vtkSetVector2Macro(YRange, double);
405 vtkGetVectorMacro(YRange, double, 2);
406 void SetPlotRange(double xmin, double ymin, double xmax, double ymax)
407 {
408 this->SetXRange(xmin, xmax);
409 this->SetYRange(ymin, ymax);
410 }
412
414
420 vtkSetClampMacro(NumberOfXLabels, int, 0, 50);
421 vtkGetMacro(NumberOfXLabels, int);
422 vtkSetClampMacro(NumberOfYLabels, int, 0, 50);
423 vtkGetMacro(NumberOfYLabels, int);
424 void SetNumberOfLabels(int num)
425 {
426 this->SetNumberOfXLabels(num);
427 this->SetNumberOfYLabels(num);
428 }
430
432
439 void SetAdjustXLabels(int adjust);
440 vtkGetMacro(AdjustXLabels, int);
441 void SetAdjustYLabels(int adjust);
442 vtkGetMacro(AdjustYLabels, int);
444
446
454
456
461 vtkSetMacro(Legend, vtkTypeBool);
462 vtkGetMacro(Legend, vtkTypeBool);
463 vtkBooleanMacro(Legend, vtkTypeBool);
465
467
471 vtkSetVector2Macro(TitlePosition, double);
472 vtkGetVector2Macro(TitlePosition, double);
474
476
480 vtkSetMacro(AdjustTitlePosition, vtkTypeBool);
481 vtkGetMacro(AdjustTitlePosition, vtkTypeBool);
482 vtkBooleanMacro(AdjustTitlePosition, vtkTypeBool);
484
486 {
487 AlignLeft = 0x1,
488 AlignRight = 0x2,
489 AlignHCenter = 0x4,
490 AlignTop = 0x10,
491 AlignBottom = 0x20,
492 AlignVCenter = 0x40,
493 AlignAxisLeft = 0x100,
494 AlignAxisRight = 0x200,
495 AlignAxisHCenter = 0x400,
496 AlignAxisTop = 0x1000,
497 AlignAxisBottom = 0x2000,
498 AlignAxisVCenter = 0x4000
499 };
500
502
509 vtkSetMacro(AdjustTitlePositionMode, int);
510 vtkGetMacro(AdjustTitlePositionMode, int);
512
514
522 vtkSetVector2Macro(LegendPosition, double);
523 vtkGetVector2Macro(LegendPosition, double);
524 vtkSetVector2Macro(LegendPosition2, double);
525 vtkGetVector2Macro(LegendPosition2, double);
527
529
533 vtkGetObjectMacro(TitleTextProperty, vtkTextProperty);
535
537
542 vtkGetObjectMacro(AxisTitleTextProperty, vtkTextProperty);
544
546
551 vtkGetObjectMacro(AxisLabelTextProperty, vtkTextProperty);
553
555
558 vtkSetMacro(Logx, vtkTypeBool);
559 vtkGetMacro(Logx, vtkTypeBool);
560 vtkBooleanMacro(Logx, vtkTypeBool);
562
564
568 virtual void SetLabelFormat(const char*);
569 const char* GetLabelFormat() { return this->GetXLabelFormat(); }
571
573
576 virtual void SetXLabelFormat(const char*);
577 vtkGetStringMacro(XLabelFormat);
579
581
584 virtual void SetYLabelFormat(const char*);
585 vtkGetStringMacro(YLabelFormat);
587
589
593 vtkSetClampMacro(Border, int, 0, 50);
594 vtkGetMacro(Border, int);
596
598
603 vtkGetMacro(PlotPoints, vtkTypeBool);
604 vtkSetMacro(PlotPoints, vtkTypeBool);
605 vtkBooleanMacro(PlotPoints, vtkTypeBool);
607
609
613 vtkGetMacro(PlotLines, vtkTypeBool);
614 vtkSetMacro(PlotLines, vtkTypeBool);
615 vtkBooleanMacro(PlotLines, vtkTypeBool);
617
619
624 vtkSetClampMacro(GlyphSize, double, 0.0, 0.2);
625 vtkGetMacro(GlyphSize, double);
627
632 void ViewportToPlotCoordinate(vtkViewport* viewport, double& u, double& v);
633
635
641 vtkSetVector2Macro(PlotCoordinate, double);
642 vtkGetVector2Macro(PlotCoordinate, double);
644
648 void PlotToViewportCoordinate(vtkViewport* viewport, double& u, double& v);
649
651
658 vtkSetVector2Macro(ViewportCoordinate, double);
659 vtkGetVector2Macro(ViewportCoordinate, double);
661
666 int IsInPlot(vtkViewport* viewport, double u, double v);
667
669
673 vtkSetMacro(ChartBox, vtkTypeBool);
674 vtkGetMacro(ChartBox, vtkTypeBool);
675 vtkBooleanMacro(ChartBox, vtkTypeBool);
677
679
683 vtkSetMacro(ChartBorder, vtkTypeBool);
684 vtkGetMacro(ChartBorder, vtkTypeBool);
685 vtkBooleanMacro(ChartBorder, vtkTypeBool);
687
691 vtkProperty2D* GetChartBoxProperty() { return this->ChartBoxActor->GetProperty(); }
692
694
697 vtkSetMacro(ShowReferenceXLine, vtkTypeBool);
698 vtkGetMacro(ShowReferenceXLine, vtkTypeBool);
699 vtkBooleanMacro(ShowReferenceXLine, vtkTypeBool);
701
703
706 vtkSetMacro(ReferenceXValue, double);
707 vtkGetMacro(ReferenceXValue, double);
709
711
714 vtkSetMacro(ShowReferenceYLine, vtkTypeBool);
715 vtkGetMacro(ShowReferenceYLine, vtkTypeBool);
716 vtkBooleanMacro(ShowReferenceYLine, vtkTypeBool);
718
720
723 vtkSetMacro(ReferenceYValue, double);
724 vtkGetMacro(ReferenceYValue, double);
726
731
735 void PrintAsCSV(ostream& os);
736
738
747
752
759
761
767
769
772 vtkSetMacro(YTitlePosition, int);
773 vtkGetMacro(YTitlePosition, int);
774 void SetYTitlePositionToTop() { this->SetYTitlePosition(VTK_XYPLOT_Y_AXIS_TOP); }
775 void SetYTitlePositionToHCenter() { this->SetYTitlePosition(VTK_XYPLOT_Y_AXIS_HCENTER); }
776 void SetYTitlePositionToVCenter() { this->SetYTitlePosition(VTK_XYPLOT_Y_AXIS_VCENTER); }
778
780
783 virtual void SetPlotGlyphType(int, int);
784 virtual void SetLineWidth(double);
785 virtual void AddUserCurvesPoint(double, double, double);
786 virtual void RemoveAllActiveCurves();
788
790
793 virtual void SetLegendBorder(int);
794 virtual void SetLegendBox(int);
795 virtual void SetLegendUseBackground(int);
796 virtual void SetLegendBackgroundColor(double, double, double);
798
800
803 virtual void SetTitleColor(double, double, double);
804 virtual void SetTitleFontFamily(int);
805 virtual void SetTitleBold(int);
806 virtual void SetTitleItalic(int);
807 virtual void SetTitleShadow(int);
808 virtual void SetTitleFontSize(int);
809 virtual void SetTitleJustification(int);
812
814
817 virtual void SetXAxisColor(double, double, double);
818 virtual void SetYAxisColor(double, double, double);
820
822
825 virtual void SetAxisTitleColor(double, double, double);
826 virtual void SetAxisTitleFontFamily(int);
827 virtual void SetAxisTitleBold(int);
828 virtual void SetAxisTitleItalic(int);
829 virtual void SetAxisTitleShadow(int);
830 virtual void SetAxisTitleFontSize(int);
831 virtual void SetAxisTitleJustification(int);
834
836
839 virtual void SetAxisLabelColor(double, double, double);
840 virtual void SetAxisLabelFontFamily(int);
841 virtual void SetAxisLabelBold(int);
842 virtual void SetAxisLabelItalic(int);
843 virtual void SetAxisLabelShadow(int);
844 virtual void SetAxisLabelFontSize(int);
845 virtual void SetAxisLabelJustification(int);
848
849protected:
851 ~vtkXYPlotActor() override;
852
853 vtkXYPlotActorConnections* InputConnectionHolder;
854 char** SelectedInputScalars; // list of data set arrays to plot
856 vtkXYPlotActorConnections* DataObjectInputConnectionHolder; // list of data objects to plot
857 char* Title;
858 char* XTitle;
866 double XRange[2];
867 double YRange[2];
868 double XComputedRange[2]; // range actually used by plot
869 double YComputedRange[2]; // range actually used by plot
881 double TitlePosition[2];
883
887
890
893
894 double ViewportCoordinate[2];
895 double PlotCoordinate[2];
896
897 // Handle data objects and datasets
903
904 // The data drawn within the axes. Each curve is one polydata.
905 // color is controlled by scalar data. The curves are appended
906 // together, possibly glyphed with point symbols.
914
915 // Legends and plot symbols. The legend also keeps track of
916 // the symbols and such.
918 double LegendPosition[2];
919 double LegendPosition2[2];
923 double GlyphSize;
924
925 // Background box
934
935 // Reference lines
940
944
945 // Keep track of changes.
946 int CachedSize[2];
948
949 void ComputeXRange(double range[2], double* lengths);
950 void ComputeYRange(double range[2]);
951 void ComputeDORange(double xrange[2], double yrange[2], double* lengths);
952
953 virtual void CreatePlotData(
954 int* pos, int* pos2, double xRange[2], double yRange[2], double* norms, int numDS, int numDO);
955 void PlaceAxes(vtkViewport* viewport, const int* size, int pos[2], int pos2[2]);
956 void GenerateClipPlanes(int* pos, int* pos2);
957 double ComputeGlyphScale(int i, int* pos, int* pos2);
958 void ClipPlotData(int* pos, int* pos2, vtkPolyData* pd);
959 double* TransformPoint(int pos[2], int pos2[2], double x[3], double xNew[3]);
960
962
966
967private:
968 vtkXYPlotActor(const vtkXYPlotActor&) = delete;
969 void operator=(const vtkXYPlotActor&) = delete;
970
971 bool DoesConnectionMatch(int i, vtkAlgorithmOutput* in);
972
973 int IsInputPresent(vtkAlgorithmOutput* in, const char* arrayName, int component);
974
978 int YTitleSize[2];
979
983 int YTitlePosition;
984
986
989 int YTitleDelta;
991};
992
993#endif
a actor that draws 2D data
Definition: vtkActor2D.h:49
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:69
maintain an unordered list of dataset objects
abstract class to specify dataset behavior
Definition: vtkDataSet.h:66
dynamic, self-adjusting array of double
copy oriented and scaled glyph geometry to every input point (2D specialization)
Definition: vtkGlyph2D.h:49
create 2D glyphs represented by vtkPolyData
a simple class to control print indentation
Definition: vtkIndent.h:43
dynamic, self-adjusting array of int
Definition: vtkIntArray.h:49
draw symbols with text
implicit function for convex set of planes
Definition: vtkPlanes.h:59
draw vtkPolyData onto the image plane
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:95
represent surface properties of a 2D image
Definition: vtkProperty2D.h:47
An actor that displays text.
Definition: vtkTextActor.h:60
2D text annotation
Definition: vtkTextMapper.h:57
represent text properties.
record modification and/or execution time
Definition: vtkTimeStamp.h:42
abstract specification for Viewports
Definition: vtkViewport.h:56
window superclass for vtkRenderWindow
Definition: vtkWindow.h:45
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.
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
double ReferenceYValue
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 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.
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.
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)
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.
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.
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 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.
double ReferenceXValue
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?
@ 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:287
#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