VTK  9.2.5
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=========================================================================*/
91#ifndef vtkXYPlotActor_h
92#define vtkXYPlotActor_h
93
94#define VTK_XYPLOT_INDEX 0
95#define VTK_XYPLOT_ARC_LENGTH 1
96#define VTK_XYPLOT_NORMALIZED_ARC_LENGTH 2
97#define VTK_XYPLOT_VALUE 3
98
99#define VTK_XYPLOT_ROW 0
100#define VTK_XYPLOT_COLUMN 1
101
102#define VTK_XYPLOT_Y_AXIS_TOP 0
103#define VTK_XYPLOT_Y_AXIS_HCENTER 1
104#define VTK_XYPLOT_Y_AXIS_VCENTER 2 // rotate by 90 degrees (y-axis aligned)
105
106#include "vtkActor2D.h"
107#include "vtkRenderingAnnotationModule.h" // For export macro
108#include "vtkSmartPointer.h" // For SP
109
110class vtkXYPlotActorConnections;
113class vtkAxisActor2D;
114class vtkDataObject;
116class vtkDataSet;
118class vtkDoubleArray;
119class vtkGlyph2D;
120class vtkGlyphSource2D;
121class vtkIntArray;
123class vtkPlanes;
124class vtkPolyData;
126class vtkTextActor;
127class vtkTextMapper;
128class vtkTextProperty;
129
130class VTKRENDERINGANNOTATION_EXPORT vtkXYPlotActor : public vtkActor2D
131{
132public:
134 void PrintSelf(ostream& os, vtkIndent indent) override;
135
143
144 //---Data Set Input----------------------------------------------------------
145 // The following methods are used to plot input datasets. Datasets
146 // will be plotted if set as input; otherwise the input data objects
147 // will be plotted (if defined).
148
150
158 void AddDataSetInput(vtkDataSet* ds, const char* arrayName, int component);
159 void AddDataSetInput(vtkDataSet* ds) { this->AddDataSetInput(ds, nullptr, 0); }
160 void AddDataSetInputConnection(vtkAlgorithmOutput* in, const char* arrayName, int component);
162 {
163 this->AddDataSetInputConnection(in, nullptr, 0);
164 }
166
168
171 void RemoveDataSetInput(vtkDataSet* ds, const char* arrayName, int component);
172 void RemoveDataSetInput(vtkDataSet* ds) { this->RemoveDataSetInput(ds, nullptr, 0); }
173 void RemoveDataSetInputConnection(vtkAlgorithmOutput* in, const char* arrayName, int component);
175 {
176 this->RemoveDataSetInputConnection(in, nullptr, 0);
177 }
179
185
187
191 void SetPointComponent(int i, int comp);
193 //---end Data Set Input-----------------------------------------------------
195
197
207 vtkSetClampMacro(XValues, int, VTK_XYPLOT_INDEX, VTK_XYPLOT_VALUE);
208 vtkGetMacro(XValues, int);
209 void SetXValuesToIndex() { this->SetXValues(VTK_XYPLOT_INDEX); }
210 void SetXValuesToArcLength() { this->SetXValues(VTK_XYPLOT_ARC_LENGTH); }
212 void SetXValuesToValue() { this->SetXValues(VTK_XYPLOT_VALUE); }
213 const char* GetXValuesAsString();
215
216 //---Data Object Input------------------------------------------------------
217 // The following methods are used to plot input data objects. Datasets will
218 // be plotted in preference to data objects if set as input; otherwise the
219 // input data objects will be plotted (if defined).
220
222
228
230
236
238
243 vtkSetClampMacro(DataObjectPlotMode, int, VTK_XYPLOT_ROW, VTK_XYPLOT_COLUMN);
244 vtkGetMacro(DataObjectPlotMode, int);
245 void SetDataObjectPlotModeToRows() { this->SetDataObjectPlotMode(VTK_XYPLOT_ROW); }
246 void SetDataObjectPlotModeToColumns() { this->SetDataObjectPlotMode(VTK_XYPLOT_COLUMN); }
249
251
259 void SetDataObjectXComponent(int i, int comp);
262
264
272 void SetDataObjectYComponent(int i, int comp);
274 //---end Data Object Input--------------------------------------------------
276
277 //---Per Curve Properties---------------------------------------------------
278 // The following methods are used to set properties on each curve that is
279 // plotted. Each input dataset (or data object) results in one curve. The
280 // methods that follow have an index i that corresponds to the input dataset
281 // or data object.
282 void SetPlotColor(int i, double r, double g, double b);
283 void SetPlotColor(int i, const double color[3])
284 {
285 this->SetPlotColor(i, color[0], color[1], color[2]);
286 }
287 double* GetPlotColor(int i) VTK_SIZEHINT(3);
288 void SetPlotSymbol(int i, vtkPolyData* input);
290 void SetPlotLabel(int i, const char* label);
291 const char* GetPlotLabel(int i);
292
293 // Allow per-curve specification of line and point rendering. These override
294 // global settings PlotPoints and PlotLines. If not on, the default behavior
295 // is governed by PlotPoints and PlotLines ivars.
296 vtkGetMacro(PlotCurvePoints, vtkTypeBool);
297 vtkSetMacro(PlotCurvePoints, vtkTypeBool);
298 vtkBooleanMacro(PlotCurvePoints, vtkTypeBool);
299
300 vtkGetMacro(PlotCurveLines, vtkTypeBool);
301 vtkSetMacro(PlotCurveLines, vtkTypeBool);
302 vtkBooleanMacro(PlotCurveLines, vtkTypeBool);
303
304 void SetPlotLines(int i, int);
305 int GetPlotLines(int i);
306
307 void SetPlotPoints(int i, int);
308 int GetPlotPoints(int i);
309 //---end Per Curve Properties-----------------------------------------------
310
312
316 vtkSetMacro(ExchangeAxes, vtkTypeBool);
317 vtkGetMacro(ExchangeAxes, vtkTypeBool);
318 vtkBooleanMacro(ExchangeAxes, vtkTypeBool);
320
322
327 vtkSetMacro(ReverseXAxis, vtkTypeBool);
328 vtkGetMacro(ReverseXAxis, vtkTypeBool);
329 vtkBooleanMacro(ReverseXAxis, vtkTypeBool);
331
333
338 vtkSetMacro(ReverseYAxis, vtkTypeBool);
339 vtkGetMacro(ReverseYAxis, vtkTypeBool);
340 vtkBooleanMacro(ReverseYAxis, vtkTypeBool);
342
344
350 vtkGetObjectMacro(LegendActor, vtkLegendBoxActor);
351 vtkGetObjectMacro(GlyphSource, vtkGlyphSource2D);
353
355
358 vtkSetStringMacro(Title);
359 vtkGetStringMacro(Title);
361
363
366 vtkSetStringMacro(XTitle);
367 vtkGetStringMacro(XTitle);
369
371
374 virtual void SetYTitle(const char*);
375 char* GetYTitle();
377
379
383 vtkAxisActor2D* GetXAxisActor2D() { return this->XAxis; }
384 vtkAxisActor2D* GetYAxisActor2D() { return this->YAxis; }
386
388
396 vtkSetVector2Macro(XRange, double);
397 vtkGetVectorMacro(XRange, double, 2);
398 vtkSetVector2Macro(YRange, double);
399 vtkGetVectorMacro(YRange, double, 2);
400 void SetPlotRange(double xmin, double ymin, double xmax, double ymax)
401 {
402 this->SetXRange(xmin, xmax);
403 this->SetYRange(ymin, ymax);
404 }
406
408
414 vtkSetClampMacro(NumberOfXLabels, int, 0, 50);
415 vtkGetMacro(NumberOfXLabels, int);
416 vtkSetClampMacro(NumberOfYLabels, int, 0, 50);
417 vtkGetMacro(NumberOfYLabels, int);
418 void SetNumberOfLabels(int num)
419 {
420 this->SetNumberOfXLabels(num);
421 this->SetNumberOfYLabels(num);
422 }
424
426
433 void SetAdjustXLabels(int adjust);
434 vtkGetMacro(AdjustXLabels, int);
435 void SetAdjustYLabels(int adjust);
436 vtkGetMacro(AdjustYLabels, int);
438
440
448
450
455 vtkSetMacro(Legend, vtkTypeBool);
456 vtkGetMacro(Legend, vtkTypeBool);
457 vtkBooleanMacro(Legend, vtkTypeBool);
459
461
465 vtkSetVector2Macro(TitlePosition, double);
466 vtkGetVector2Macro(TitlePosition, double);
468
470
474 vtkSetMacro(AdjustTitlePosition, vtkTypeBool);
475 vtkGetMacro(AdjustTitlePosition, vtkTypeBool);
476 vtkBooleanMacro(AdjustTitlePosition, vtkTypeBool);
478
480 {
481 AlignLeft = 0x1,
482 AlignRight = 0x2,
483 AlignHCenter = 0x4,
484 AlignTop = 0x10,
485 AlignBottom = 0x20,
486 AlignVCenter = 0x40,
487 AlignAxisLeft = 0x100,
488 AlignAxisRight = 0x200,
489 AlignAxisHCenter = 0x400,
490 AlignAxisTop = 0x1000,
491 AlignAxisBottom = 0x2000,
492 AlignAxisVCenter = 0x4000
493 };
494
496
503 vtkSetMacro(AdjustTitlePositionMode, int);
504 vtkGetMacro(AdjustTitlePositionMode, int);
506
508
516 vtkSetVector2Macro(LegendPosition, double);
517 vtkGetVector2Macro(LegendPosition, double);
518 vtkSetVector2Macro(LegendPosition2, double);
519 vtkGetVector2Macro(LegendPosition2, double);
521
523
527 vtkGetObjectMacro(TitleTextProperty, vtkTextProperty);
529
531
536 vtkGetObjectMacro(AxisTitleTextProperty, vtkTextProperty);
538
540
545 vtkGetObjectMacro(AxisLabelTextProperty, vtkTextProperty);
547
549
552 vtkSetMacro(Logx, vtkTypeBool);
553 vtkGetMacro(Logx, vtkTypeBool);
554 vtkBooleanMacro(Logx, vtkTypeBool);
556
558
562 virtual void SetLabelFormat(const char*);
563 const char* GetLabelFormat() { return this->GetXLabelFormat(); }
565
567
570 virtual void SetXLabelFormat(const char*);
571 vtkGetStringMacro(XLabelFormat);
573
575
578 virtual void SetYLabelFormat(const char*);
579 vtkGetStringMacro(YLabelFormat);
581
583
587 vtkSetClampMacro(Border, int, 0, 50);
588 vtkGetMacro(Border, int);
590
592
597 vtkGetMacro(PlotPoints, vtkTypeBool);
598 vtkSetMacro(PlotPoints, vtkTypeBool);
599 vtkBooleanMacro(PlotPoints, vtkTypeBool);
601
603
607 vtkGetMacro(PlotLines, vtkTypeBool);
608 vtkSetMacro(PlotLines, vtkTypeBool);
609 vtkBooleanMacro(PlotLines, vtkTypeBool);
611
613
618 vtkSetClampMacro(GlyphSize, double, 0.0, 0.2);
619 vtkGetMacro(GlyphSize, double);
621
626 void ViewportToPlotCoordinate(vtkViewport* viewport, double& u, double& v);
627
629
635 vtkSetVector2Macro(PlotCoordinate, double);
636 vtkGetVector2Macro(PlotCoordinate, double);
638
642 void PlotToViewportCoordinate(vtkViewport* viewport, double& u, double& v);
643
645
652 vtkSetVector2Macro(ViewportCoordinate, double);
653 vtkGetVector2Macro(ViewportCoordinate, double);
655
660 int IsInPlot(vtkViewport* viewport, double u, double v);
661
663
667 vtkSetMacro(ChartBox, vtkTypeBool);
668 vtkGetMacro(ChartBox, vtkTypeBool);
669 vtkBooleanMacro(ChartBox, vtkTypeBool);
671
673
677 vtkSetMacro(ChartBorder, vtkTypeBool);
678 vtkGetMacro(ChartBorder, vtkTypeBool);
679 vtkBooleanMacro(ChartBorder, vtkTypeBool);
681
685 vtkProperty2D* GetChartBoxProperty() { return this->ChartBoxActor->GetProperty(); }
686
688
691 vtkSetMacro(ShowReferenceXLine, vtkTypeBool);
692 vtkGetMacro(ShowReferenceXLine, vtkTypeBool);
693 vtkBooleanMacro(ShowReferenceXLine, vtkTypeBool);
695
697
700 vtkSetMacro(ReferenceXValue, double);
701 vtkGetMacro(ReferenceXValue, double);
703
705
708 vtkSetMacro(ShowReferenceYLine, vtkTypeBool);
709 vtkGetMacro(ShowReferenceYLine, vtkTypeBool);
710 vtkBooleanMacro(ShowReferenceYLine, vtkTypeBool);
712
714
717 vtkSetMacro(ReferenceYValue, double);
718 vtkGetMacro(ReferenceYValue, double);
720
725
729 void PrintAsCSV(ostream& os);
730
732
741
746
753
755
758 void SetXTitlePosition(double position);
761
763
766 vtkSetMacro(YTitlePosition, int);
767 vtkGetMacro(YTitlePosition, int);
768 void SetYTitlePositionToTop() { this->SetYTitlePosition(VTK_XYPLOT_Y_AXIS_TOP); }
769 void SetYTitlePositionToHCenter() { this->SetYTitlePosition(VTK_XYPLOT_Y_AXIS_HCENTER); }
770 void SetYTitlePositionToVCenter() { this->SetYTitlePosition(VTK_XYPLOT_Y_AXIS_VCENTER); }
772
774
777 virtual void SetPlotGlyphType(int, int);
778 virtual void SetLineWidth(double);
779 virtual void AddUserCurvesPoint(double, double, double);
780 virtual void RemoveAllActiveCurves();
782
784
787 virtual void SetLegendBorder(int);
788 virtual void SetLegendBox(int);
789 virtual void SetLegendUseBackground(int);
790 virtual void SetLegendBackgroundColor(double, double, double);
792
794
797 virtual void SetTitleColor(double, double, double);
798 virtual void SetTitleFontFamily(int);
799 virtual void SetTitleBold(int);
800 virtual void SetTitleItalic(int);
801 virtual void SetTitleShadow(int);
802 virtual void SetTitleFontSize(int);
803 virtual void SetTitleJustification(int);
806
808
811 virtual void SetXAxisColor(double, double, double);
812 virtual void SetYAxisColor(double, double, double);
814
816
819 virtual void SetAxisTitleColor(double, double, double);
820 virtual void SetAxisTitleFontFamily(int);
821 virtual void SetAxisTitleBold(int);
822 virtual void SetAxisTitleItalic(int);
823 virtual void SetAxisTitleShadow(int);
824 virtual void SetAxisTitleFontSize(int);
825 virtual void SetAxisTitleJustification(int);
828
830
833 virtual void SetAxisLabelColor(double, double, double);
834 virtual void SetAxisLabelFontFamily(int);
835 virtual void SetAxisLabelBold(int);
836 virtual void SetAxisLabelItalic(int);
837 virtual void SetAxisLabelShadow(int);
838 virtual void SetAxisLabelFontSize(int);
839 virtual void SetAxisLabelJustification(int);
842
843protected:
845 ~vtkXYPlotActor() override;
846
847 vtkXYPlotActorConnections* InputConnectionHolder;
848 char** SelectedInputScalars; // list of data set arrays to plot
850 vtkXYPlotActorConnections* DataObjectInputConnectionHolder; // list of data objects to plot
851 char* Title;
852 char* XTitle;
860 double XRange[2];
861 double YRange[2];
862 double XComputedRange[2]; // range actually used by plot
863 double YComputedRange[2]; // range actually used by plot
875 double TitlePosition[2];
877
881
884
887
888 double ViewportCoordinate[2];
889 double PlotCoordinate[2];
890
891 // Handle data objects and datasets
897
898 // The data drawn within the axes. Each curve is one polydata.
899 // color is controlled by scalar data. The curves are appended
900 // together, possibly glyphed with point symbols.
908
909 // Legends and plot symbols. The legend also keeps track of
910 // the symbols and such.
912 double LegendPosition[2];
913 double LegendPosition2[2];
917 double GlyphSize;
918
919 // Background box
928
929 // Reference lines
934
938
939 // Keep track of changes.
940 int CachedSize[2];
942
943 void ComputeXRange(double range[2], double* lengths);
944 void ComputeYRange(double range[2]);
945 void ComputeDORange(double xrange[2], double yrange[2], double* lengths);
946
947 virtual void CreatePlotData(
948 int* pos, int* pos2, double xRange[2], double yRange[2], double* norms, int numDS, int numDO);
949 void PlaceAxes(vtkViewport* viewport, const int* size, int pos[2], int pos2[2]);
950 void GenerateClipPlanes(int* pos, int* pos2);
951 double ComputeGlyphScale(int i, int* pos, int* pos2);
952 void ClipPlotData(int* pos, int* pos2, vtkPolyData* pd);
953 double* TransformPoint(int pos[2], int pos2[2], double x[3], double xNew[3]);
954
956
960
961private:
962 vtkXYPlotActor(const vtkXYPlotActor&) = delete;
963 void operator=(const vtkXYPlotActor&) = delete;
964
965 bool DoesConnectionMatch(int i, vtkAlgorithmOutput* in);
966
967 int IsInputPresent(vtkAlgorithmOutput* in, const char* arrayName, int component);
968
972 int YTitleSize[2];
973
977 int YTitlePosition;
978
980
983 int YTitleDelta;
985};
986
987#endif
a actor that draws 2D data
Definition: vtkActor2D.h:46
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:66
maintain an unordered list of dataset objects
abstract class to specify dataset behavior
Definition: vtkDataSet.h:63
dynamic, self-adjusting array of double
copy oriented and scaled glyph geometry to every input point (2D specialization)
Definition: vtkGlyph2D.h:43
create 2D glyphs represented by vtkPolyData
a simple class to control print indentation
Definition: vtkIndent.h:40
dynamic, self-adjusting array of int
Definition: vtkIntArray.h:46
draw symbols with text
implicit function for convex set of planes
Definition: vtkPlanes.h:53
draw vtkPolyData onto the image plane
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:91
represent surface properties of a 2D image
Definition: vtkProperty2D.h:41
Hold a reference to a vtkObjectBase instance.
An actor that displays text.
Definition: vtkTextActor.h:57
2D text annotation
Definition: vtkTextMapper.h:51
represent text properties.
record modification and/or execution time
Definition: vtkTimeStamp.h:36
abstract specification for Viewports
Definition: vtkViewport.h:56
window superclass for vtkRenderWindow
Definition: vtkWindow.h:39
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?
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