VTK  9.5.2
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
78
79#ifndef vtkXYPlotActor_h
80#define vtkXYPlotActor_h
81
82#define VTK_XYPLOT_INDEX 0
83#define VTK_XYPLOT_ARC_LENGTH 1
84#define VTK_XYPLOT_NORMALIZED_ARC_LENGTH 2
85#define VTK_XYPLOT_VALUE 3
86
87#define VTK_XYPLOT_ROW 0
88#define VTK_XYPLOT_COLUMN 1
89
90#define VTK_XYPLOT_Y_AXIS_TOP 0
91#define VTK_XYPLOT_Y_AXIS_HCENTER 1
92#define VTK_XYPLOT_Y_AXIS_VCENTER 2 // rotate by 90 degrees (y-axis aligned)
93
94#include "vtkActor2D.h"
95#include "vtkRenderingAnnotationModule.h" // For export macro
96#include "vtkSmartPointer.h" // For SP
97#include "vtkWrappingHints.h" // For VTK_MARSHALAUTO
98
99VTK_ABI_NAMESPACE_BEGIN
100class vtkXYPlotActorConnections;
103class vtkAxisActor2D;
104class vtkDataObject;
106class vtkDataSet;
108class vtkDoubleArray;
109class vtkGlyph2D;
110class vtkGlyphSource2D;
111class vtkIntArray;
113class vtkPlanes;
114class vtkPolyData;
116class vtkTextActor;
117class vtkTextMapper;
118class vtkTextProperty;
119
120class VTKRENDERINGANNOTATION_EXPORT VTK_MARSHALAUTO vtkXYPlotActor : public vtkActor2D
121{
122public:
124 void PrintSelf(ostream& os, vtkIndent indent) override;
125
133
134 //---Data Set Input----------------------------------------------------------
135 // The following methods are used to plot input datasets. Datasets
136 // will be plotted if set as input; otherwise the input data objects
137 // will be plotted (if defined).
138
140
148 void AddDataSetInput(vtkDataSet* ds, const char* arrayName, int component);
150 void AddDataSetInput(vtkDataSet* ds) { this->AddDataSetInput(ds, nullptr, 0); }
151 void AddDataSetInputConnection(vtkAlgorithmOutput* in, const char* arrayName, int component);
153 {
154 this->AddDataSetInputConnection(in, nullptr, 0);
155 }
156
157
159
162 void RemoveDataSetInput(vtkDataSet* ds, const char* arrayName, int component);
164 void RemoveDataSetInput(vtkDataSet* ds) { this->RemoveDataSetInput(ds, nullptr, 0); }
165 void RemoveDataSetInputConnection(vtkAlgorithmOutput* in, const char* arrayName, int component);
167 {
168 this->RemoveDataSetInputConnection(in, nullptr, 0);
169 }
170
171
177
182
187
189
193 void SetPointComponent(int i, int comp);
195 //---end Data Set Input-----------------------------------------------------
197
199
209 vtkSetClampMacro(XValues, int, VTK_XYPLOT_INDEX, VTK_XYPLOT_VALUE);
210 vtkGetMacro(XValues, int);
215 const char* GetXValuesAsString();
217
218 //---Data Object Input------------------------------------------------------
219 // The following methods are used to plot input data objects. Datasets will
220 // be plotted in preference to data objects if set as input; otherwise the
221 // input data objects will be plotted (if defined).
222
224
231
233
240
245
250
255
257
263 vtkGetMacro(DataObjectPlotMode, int);
268
270
278 void SetDataObjectXComponent(int i, int comp);
281
283
291 void SetDataObjectYComponent(int i, int comp);
293 //---end Data Object Input--------------------------------------------------
295
296 //---Per Curve Properties---------------------------------------------------
297 // The following methods are used to set properties on each curve that is
298 // plotted. Each input dataset (or data object) results in one curve. The
299 // methods that follow have an index i that corresponds to the input dataset
300 // or data object.
301 void SetPlotColor(int i, double r, double g, double b);
302 void SetPlotColor(int i, const double color[3])
303 {
304 this->SetPlotColor(i, color[0], color[1], color[2]);
305 }
306 double* GetPlotColor(int i) VTK_SIZEHINT(3);
307 void SetPlotSymbol(int i, vtkPolyData* input);
309 void SetPlotLabel(int i, const char* label);
310 const char* GetPlotLabel(int i);
311
312 // Allow per-curve specification of line and point rendering. These override
313 // global settings PlotPoints and PlotLines. If not on, the default behavior
314 // is governed by PlotPoints and PlotLines ivars.
317 vtkBooleanMacro(PlotCurvePoints, vtkTypeBool);
318
321 vtkBooleanMacro(PlotCurveLines, vtkTypeBool);
322
323 void SetPlotLines(int i, int);
324 int GetPlotLines(int i);
325
326 void SetPlotPoints(int i, int);
327 int GetPlotPoints(int i);
328 //---end Per Curve Properties-----------------------------------------------
329
331
337 vtkBooleanMacro(ExchangeAxes, vtkTypeBool);
339
341
348 vtkBooleanMacro(ReverseXAxis, vtkTypeBool);
350
352
359 vtkBooleanMacro(ReverseYAxis, vtkTypeBool);
361
363
369 vtkGetObjectMacro(LegendActor, vtkLegendBoxActor);
370 vtkGetObjectMacro(GlyphSource, vtkGlyphSource2D);
372
374
377 vtkSetStringMacro(Title);
378 vtkGetStringMacro(Title);
380
382
385 vtkSetStringMacro(XTitle);
386 vtkGetStringMacro(XTitle);
388
390
393 virtual void SetYTitle(const char*);
394 char* GetYTitle();
396
398
405
407
415 vtkSetVector2Macro(XRange, double);
416 vtkGetVectorMacro(XRange, double, 2);
417 vtkSetVector2Macro(YRange, double);
418 vtkGetVectorMacro(YRange, double, 2);
419 void SetPlotRange(double xmin, double ymin, double xmax, double ymax)
420 {
421 this->SetXRange(xmin, xmax);
422 this->SetYRange(ymin, ymax);
423 }
424
425
427
433 vtkSetClampMacro(NumberOfXLabels, int, 0, 50);
434 vtkGetMacro(NumberOfXLabels, int);
435 vtkSetClampMacro(NumberOfYLabels, int, 0, 50);
436 vtkGetMacro(NumberOfYLabels, int);
437 void SetNumberOfLabels(int num)
438 {
439 this->SetNumberOfXLabels(num);
440 this->SetNumberOfYLabels(num);
441 }
442
443
445
452 void SetAdjustXLabels(int adjust);
453 vtkGetMacro(AdjustXLabels, int);
454 void SetAdjustYLabels(int adjust);
455 vtkGetMacro(AdjustYLabels, int);
457
459
467
469
474 vtkSetMacro(Legend, vtkTypeBool);
475 vtkGetMacro(Legend, vtkTypeBool);
476 vtkBooleanMacro(Legend, vtkTypeBool);
478
480
484 vtkSetVector2Macro(TitlePosition, double);
485 vtkGetVector2Macro(TitlePosition, double);
487
489
497
513
515
522 vtkSetMacro(AdjustTitlePositionMode, int);
523 vtkGetMacro(AdjustTitlePositionMode, int);
525
527
535 vtkSetVector2Macro(LegendPosition, double);
536 vtkGetVector2Macro(LegendPosition, double);
537 vtkSetVector2Macro(LegendPosition2, double);
538 vtkGetVector2Macro(LegendPosition2, double);
540
542
548
550
557
559
566
568
571 vtkSetMacro(Logx, vtkTypeBool);
572 vtkGetMacro(Logx, vtkTypeBool);
573 vtkBooleanMacro(Logx, vtkTypeBool);
575
577
581 virtual void SetLabelFormat(const char*);
582 const char* GetLabelFormat() { return this->GetXLabelFormat(); }
584
586
589 virtual void SetXLabelFormat(const char*);
590 vtkGetStringMacro(XLabelFormat);
592
594
597 virtual void SetYLabelFormat(const char*);
598 vtkGetStringMacro(YLabelFormat);
600
602
606 vtkSetClampMacro(Border, int, 0, 50);
607 vtkGetMacro(Border, int);
609
611
616 vtkGetMacro(PlotPoints, vtkTypeBool);
617 vtkSetMacro(PlotPoints, vtkTypeBool);
618 vtkBooleanMacro(PlotPoints, vtkTypeBool);
620
622
626 vtkGetMacro(PlotLines, vtkTypeBool);
627 vtkSetMacro(PlotLines, vtkTypeBool);
628 vtkBooleanMacro(PlotLines, vtkTypeBool);
630
632
637 vtkSetClampMacro(GlyphSize, double, 0.0, 0.2);
638 vtkGetMacro(GlyphSize, double);
640
645 void ViewportToPlotCoordinate(vtkViewport* viewport, double& u, double& v);
646
648
654 vtkSetVector2Macro(PlotCoordinate, double);
655 vtkGetVector2Macro(PlotCoordinate, double);
657
661 void PlotToViewportCoordinate(vtkViewport* viewport, double& u, double& v);
662
664
671 vtkSetVector2Macro(ViewportCoordinate, double);
672 vtkGetVector2Macro(ViewportCoordinate, double);
674
679 int IsInPlot(vtkViewport* viewport, double u, double v);
680
682
686 vtkSetMacro(ChartBox, vtkTypeBool);
687 vtkGetMacro(ChartBox, vtkTypeBool);
688 vtkBooleanMacro(ChartBox, vtkTypeBool);
690
692
698 vtkBooleanMacro(ChartBorder, vtkTypeBool);
700
704 vtkProperty2D* GetChartBoxProperty() { return this->ChartBoxActor->GetProperty(); }
705
707
714
716
719 vtkSetMacro(ReferenceXValue, double);
720 vtkGetMacro(ReferenceXValue, double);
722
724
731
733
736 vtkSetMacro(ReferenceYValue, double);
737 vtkGetMacro(ReferenceYValue, double);
739
744
748 void PrintAsCSV(ostream& os);
749
751
760
765
772
774
777 void SetXTitlePosition(double position);
780
782
785 vtkSetMacro(YTitlePosition, int);
786 vtkGetMacro(YTitlePosition, int);
791
793
796 virtual void SetPlotGlyphType(int, int);
797 virtual void SetLineWidth(double);
798 virtual void AddUserCurvesPoint(double, double, double);
799 virtual void RemoveAllActiveCurves();
801
803
806 virtual void SetLegendBorder(int);
807 virtual void SetLegendBox(int);
808 virtual void SetLegendUseBackground(int);
809 virtual void SetLegendBackgroundColor(double, double, double);
811
813
816 virtual void SetTitleColor(double, double, double);
817 virtual void SetTitleFontFamily(int);
818 virtual void SetTitleBold(int);
819 virtual void SetTitleItalic(int);
820 virtual void SetTitleShadow(int);
821 virtual void SetTitleFontSize(int);
822 virtual void SetTitleJustification(int);
825
827
830 virtual void SetXAxisColor(double, double, double);
831 virtual void SetYAxisColor(double, double, double);
833
835
838 virtual void SetAxisTitleColor(double, double, double);
839 virtual void SetAxisTitleFontFamily(int);
840 virtual void SetAxisTitleBold(int);
841 virtual void SetAxisTitleItalic(int);
842 virtual void SetAxisTitleShadow(int);
843 virtual void SetAxisTitleFontSize(int);
844 virtual void SetAxisTitleJustification(int);
847
849
852 virtual void SetAxisLabelColor(double, double, double);
853 virtual void SetAxisLabelFontFamily(int);
854 virtual void SetAxisLabelBold(int);
855 virtual void SetAxisLabelItalic(int);
856 virtual void SetAxisLabelShadow(int);
857 virtual void SetAxisLabelFontSize(int);
858 virtual void SetAxisLabelJustification(int);
861
862protected:
864 ~vtkXYPlotActor() override;
865
866 vtkXYPlotActorConnections* InputConnectionHolder;
867 char** SelectedInputScalars; // list of data set arrays to plot
869 vtkXYPlotActorConnections* DataObjectInputConnectionHolder; // list of data objects to plot
870 char* Title;
871 char* XTitle;
879 double XRange[2];
880 double YRange[2];
881 double XComputedRange[2]; // range actually used by plot
882 double YComputedRange[2]; // range actually used by plot
894 double TitlePosition[2];
896
900
903
906
908 double PlotCoordinate[2];
909
910 // Handle data objects and datasets
916
917 // The data drawn within the axes. Each curve is one polydata.
918 // color is controlled by scalar data. The curves are appended
919 // together, possibly glyphed with point symbols.
927
928 // Legends and plot symbols. The legend also keeps track of
929 // the symbols and such.
931 double LegendPosition[2];
936 double GlyphSize;
937
938 // Background box
947
948 // Reference lines
953
957
958 // Keep track of changes.
961
962 void ComputeXRange(double range[2], double* lengths);
963 void ComputeYRange(double range[2]);
964 void ComputeDORange(double xrange[2], double yrange[2], double* lengths);
965
966 virtual void CreatePlotData(
967 int* pos, int* pos2, double xRange[2], double yRange[2], double* norms, int numDS, int numDO);
968 void PlaceAxes(vtkViewport* viewport, const int* size, int pos[2], int pos2[2]);
969 void GenerateClipPlanes(int* pos, int* pos2);
970 double ComputeGlyphScale(int i, int* pos, int* pos2);
971 void ClipPlotData(int* pos, int* pos2, vtkPolyData* pd);
972 double* TransformPoint(int pos[2], int pos2[2], double x[3], double xNew[3]);
973
975
979
980private:
981 vtkXYPlotActor(const vtkXYPlotActor&) = delete;
982 void operator=(const vtkXYPlotActor&) = delete;
983
984 bool DoesConnectionMatch(int i, vtkAlgorithmOutput* in);
985
986 int IsInputPresent(vtkAlgorithmOutput* in, const char* arrayName, int component);
987
991 int YTitleSize[2];
992
996 int YTitlePosition;
997
999
1002 int YTitleDelta;
1004};
1005
1006VTK_ABI_NAMESPACE_END
1007#endif
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:56
dynamic, self-adjusting array of double
copy oriented and scaled glyph geometry to every input point (2D specialization)
Definition vtkGlyph2D.h:32
create 2D glyphs represented by vtkPolyData
a simple class to control print indentation
Definition vtkIndent.h:29
dynamic, self-adjusting array of int
Definition vtkIntArray.h:35
draw symbols with text
implicit function for convex set of planes
Definition vtkPlanes.h:42
draw vtkPolyData onto the image plane
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition vtkPolyData.h:72
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:47
window superclass for vtkRenderWindow
Definition vtkWindow.h:26
void RemoveAllDataSetInputConnections()
This removes all of the data set inputs, but does not change the data object inputs.
vtkAlgorithmOutput * GetDataObjectInputConnection(unsigned int idx)
Get the idx'th data object input connection.
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.
virtual void SetYTitlePosition(int)
Set/Get the position of the title of Y axis.
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...
double YComputedRange[2]
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
virtual void SetNumberOfXLabels(int)
Set/Get the number of annotation labels to show along the x and y axes.
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.
double XComputedRange[2]
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.
double LegendPosition2[2]
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.
double ViewportCoordinate[2]
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 data object 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
virtual void SetXRange(double, double)
Set the plot range (range of independent and dependent variables) to plot.
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
void RemoveAllDataObjectInputConnections()
This removes all of the data object inputs.
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).
virtual void SetNumberOfYLabels(int)
Set/Get the number of annotation labels to show along the x and y axes.
~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 data object from the list of data to display.
vtkTypeBool PlotCurveLines
virtual void SetXValues(int)
Specify how the independent (x) variable is computed from the points.
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.
double LegendPosition[2]
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.
double TitlePosition[2]
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...
virtual char * GetXLabelFormat()
Set/Get the format with which to print the X label.
vtkLegendBoxActor * LegendActor
void InitializeEntries()
virtual void SetYRange(double, double)
Set the plot range (range of independent and dependent variables) to plot.
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.
virtual void SetDataObjectPlotMode(int)
Indicate whether to plot rows or columns.
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 .
double PlotCoordinate[2]
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)
unsigned int GetNumberOfDataObjectInputConnections()
Get the total number of data object input connections.
vtkTypeBool HasTranslucentPolygonalGeometry() override
Does this prop have some translucent polygonal geometry?
int vtkTypeBool
Definition vtkABI.h:64
vtkTypeUInt32 vtkMTimeType
Definition vtkType.h:287
#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