VTK
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=========================================================================*/
94#ifndef vtkXYPlotActor_h
95#define vtkXYPlotActor_h
96
97#define VTK_XYPLOT_INDEX 0
98#define VTK_XYPLOT_ARC_LENGTH 1
99#define VTK_XYPLOT_NORMALIZED_ARC_LENGTH 2
100#define VTK_XYPLOT_VALUE 3
101
102#define VTK_XYPLOT_ROW 0
103#define VTK_XYPLOT_COLUMN 1
104
105#define VTK_XYPLOT_Y_AXIS_TOP 0
106#define VTK_XYPLOT_Y_AXIS_HCENTER 1
107#define VTK_XYPLOT_Y_AXIS_VCENTER 2 // rotate by 90 degrees (y-axis aligned)
108
109#include "vtkRenderingAnnotationModule.h" // For export macro
110#include "vtkActor2D.h"
111#include "vtkSmartPointer.h" // For SP
112
113class vtkXYPlotActorConnections;
116class vtkAxisActor2D;
117class vtkDataObject;
119class vtkDataSet;
121class vtkDoubleArray;
122class vtkGlyph2D;
123class vtkGlyphSource2D;
124class vtkIntArray;
126class vtkPlanes;
127class vtkPolyData;
129class vtkTextActor;
130class vtkTextMapper;
131class vtkTextProperty;
132
133class VTKRENDERINGANNOTATION_EXPORT vtkXYPlotActor : public vtkActor2D
134{
135public:
137 void PrintSelf(ostream& os, vtkIndent indent);
138
146
147 //---Data Set Input----------------------------------------------------------
148 // The following methods are used to plot input datasets. Datasets
149 // will be plotted if set as input; otherwise the input data objects
150 // will be plotted (if defined).
151
153
161 void AddDataSetInput(vtkDataSet *ds, const char* arrayName, int component);
162 void AddDataSetInput(vtkDataSet *ds) {this->AddDataSetInput(ds, NULL, 0);}
163 void AddDataSetInputConnection(vtkAlgorithmOutput *in, const char* arrayName, int component);
166
168
171 void RemoveDataSetInput(vtkDataSet *ds, const char* arrayName, int component);
172 void RemoveDataSetInput(vtkDataSet *ds) {this->RemoveDataSetInput(ds, NULL, 0);}
173 void RemoveDataSetInputConnection(vtkAlgorithmOutput *in, const char* arrayName, int component);
175 {
176 this->RemoveDataSetInputConnection(in, NULL, 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 {this->SetXValues(VTK_XYPLOT_NORMALIZED_ARC_LENGTH);};
213 void SetXValuesToValue() {this->SetXValues(VTK_XYPLOT_VALUE);};
214 const char *GetXValuesAsString();
216
217 //---Data Object Input------------------------------------------------------
218 // The following methods are used to plot input data objects. Datasets will
219 // be plotted in preference to data objects if set as input; otherwise the
220 // input data objects will be plotted (if defined).
221
223
229
231
237
239
244 vtkSetClampMacro(DataObjectPlotMode,int,VTK_XYPLOT_ROW,VTK_XYPLOT_COLUMN);
245 vtkGetMacro(DataObjectPlotMode,int);
247 {this->SetDataObjectPlotMode(VTK_XYPLOT_ROW);}
249 {this->SetDataObjectPlotMode(VTK_XYPLOT_COLUMN);}
252
254
262 void SetDataObjectXComponent(int i, int comp);
265
267
275 void SetDataObjectYComponent(int i, int comp);
277 //---end Data Object Input--------------------------------------------------
279
280 //---Per Curve Properties---------------------------------------------------
281 // The following methods are used to set properties on each curve that is
282 // plotted. Each input dataset (or data object) results in one curve. The
283 // methods that follow have an index i that corresponds to the input dataset
284 // or data object.
285 void SetPlotColor(int i, double r, double g, double b);
286 void SetPlotColor(int i, const double color[3]) {
287 this->SetPlotColor(i, color[0], color[1], color[2]); };
288 double *GetPlotColor(int i);
289 void SetPlotSymbol(int i,vtkPolyData *input);
291 void SetPlotLabel(int i, const char *label);
292 const char *GetPlotLabel(int i);
293
294 // Allow per-curve specification of line and point rendering. These override
295 // global settings PlotPoints and PlotLines. If not on, the default behavior
296 // is governed by PlotPoints and PlotLines ivars.
297 vtkGetMacro(PlotCurvePoints, int);
298 vtkSetMacro(PlotCurvePoints, int);
299 vtkBooleanMacro(PlotCurvePoints, int);
300
301 vtkGetMacro(PlotCurveLines, int);
302 vtkSetMacro(PlotCurveLines, int);
303 vtkBooleanMacro(PlotCurveLines, int);
304
305 void SetPlotLines(int i, int);
306 int GetPlotLines(int i);
307
308 void SetPlotPoints(int i, int);
309 int GetPlotPoints(int i);
310 //---end Per Curve Properties-----------------------------------------------
311
313
317 vtkSetMacro(ExchangeAxes, int);
318 vtkGetMacro(ExchangeAxes, int);
319 vtkBooleanMacro(ExchangeAxes, int);
321
323
328 vtkSetMacro(ReverseXAxis, int);
329 vtkGetMacro(ReverseXAxis, int);
330 vtkBooleanMacro(ReverseXAxis, int);
332
334
339 vtkSetMacro(ReverseYAxis, int);
340 vtkGetMacro(ReverseYAxis, int);
341 vtkBooleanMacro(ReverseYAxis, int);
343
345
351 vtkGetObjectMacro(LegendActor,vtkLegendBoxActor);
352 vtkGetObjectMacro(GlyphSource,vtkGlyphSource2D);
354
356
359 vtkSetStringMacro(Title);
362
364
367 vtkSetStringMacro(XTitle);
370
372
375 virtual void SetYTitle( const char* );
376 char* GetYTitle();
378
380
385 {
386 return this->XAxis;
387 }
389 {
390 return this->YAxis;
391 }
393
395
403 vtkSetVector2Macro(XRange,double);
404 vtkGetVectorMacro(XRange,double,2);
405 vtkSetVector2Macro(YRange,double);
406 vtkGetVectorMacro(YRange,double,2);
407 void SetPlotRange(double xmin, double ymin, double xmax, double ymax)
408 {this->SetXRange(xmin,xmax); this->SetYRange(ymin,ymax);}
410
412
418 vtkSetClampMacro(NumberOfXLabels, int, 0, 50);
419 vtkGetMacro(NumberOfXLabels, int);
420 vtkSetClampMacro(NumberOfYLabels, int, 0, 50);
421 vtkGetMacro(NumberOfYLabels, int);
422 void SetNumberOfLabels(int num)
423 {this->SetNumberOfXLabels(num); this->SetNumberOfYLabels(num);}
425
427
434 void SetAdjustXLabels(int adjust);
435 vtkGetMacro( AdjustXLabels, int );
436 void SetAdjustYLabels(int adjust);
437 vtkGetMacro( AdjustYLabels, int );
439
441
449
451
456 vtkSetMacro(Legend, int);
457 vtkGetMacro(Legend, int);
458 vtkBooleanMacro(Legend, int);
460
462
466 vtkSetVector2Macro(TitlePosition,double);
467 vtkGetVector2Macro(TitlePosition,double);
469
471
475 vtkSetMacro(AdjustTitlePosition, int);
476 vtkGetMacro(AdjustTitlePosition, int);
477 vtkBooleanMacro(AdjustTitlePosition, int);
479
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
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, int);
553 vtkGetMacro(Logx, int);
554 vtkBooleanMacro(Logx, int);
556
558
562 virtual void SetLabelFormat ( const char* );
563 const char* GetLabelFormat()
564 {
565 return this->GetXLabelFormat();
566 }
568
570
573 virtual void SetXLabelFormat ( const char* );
574 vtkGetStringMacro(XLabelFormat);
576
578
581 virtual void SetYLabelFormat ( const char* );
582 vtkGetStringMacro(YLabelFormat);
584
586
590 vtkSetClampMacro(Border, int, 0, 50);
591 vtkGetMacro(Border, int);
593
595
600 vtkGetMacro(PlotPoints, int);
601 vtkSetMacro(PlotPoints, int);
602 vtkBooleanMacro(PlotPoints, int);
604
606
610 vtkGetMacro(PlotLines, int);
611 vtkSetMacro(PlotLines, int);
612 vtkBooleanMacro(PlotLines, int);
614
616
621 vtkSetClampMacro(GlyphSize, double, 0.0, 0.2);
622 vtkGetMacro(GlyphSize, double);
624
629 void ViewportToPlotCoordinate(vtkViewport *viewport, double &u, double &v);
630
632
638 vtkSetVector2Macro(PlotCoordinate,double);
639 vtkGetVector2Macro(PlotCoordinate,double);
641
645 void PlotToViewportCoordinate(vtkViewport *viewport, double &u, double &v);
646
648
655 vtkSetVector2Macro(ViewportCoordinate,double);
656 vtkGetVector2Macro(ViewportCoordinate,double);
658
663 int IsInPlot(vtkViewport *viewport, double u, double v);
664
666
670 vtkSetMacro(ChartBox, int);
671 vtkGetMacro(ChartBox, int);
672 vtkBooleanMacro(ChartBox, int);
674
676
680 vtkSetMacro(ChartBorder, int);
681 vtkGetMacro(ChartBorder, int);
682 vtkBooleanMacro(ChartBorder, int);
684
688 vtkProperty2D* GetChartBoxProperty() { return this->ChartBoxActor->GetProperty(); };
689
691
694 vtkSetMacro(ShowReferenceXLine, int);
695 vtkGetMacro(ShowReferenceXLine, int);
696 vtkBooleanMacro(ShowReferenceXLine, int);
698
700
703 vtkSetMacro(ReferenceXValue, double);
704 vtkGetMacro(ReferenceXValue, double);
706
708
711 vtkSetMacro(ShowReferenceYLine, int);
712 vtkGetMacro(ShowReferenceYLine, int);
713 vtkBooleanMacro(ShowReferenceYLine, int);
715
717
720 vtkSetMacro(ReferenceYValue, double);
721 vtkGetMacro(ReferenceYValue, double);
723
728
732 void PrintAsCSV(ostream &os);
733
735
744
749
756
758
764
766
769 vtkSetMacro(YTitlePosition,int);
770 vtkGetMacro(YTitlePosition,int);
772 {
773 this->SetYTitlePosition( VTK_XYPLOT_Y_AXIS_TOP );
774 }
776 {
777 this->SetYTitlePosition( VTK_XYPLOT_Y_AXIS_HCENTER );
778 }
780 {
781 this->SetYTitlePosition( VTK_XYPLOT_Y_AXIS_VCENTER );
782 }
784
786
789 virtual void SetPlotGlyphType( int, int );
790 virtual void SetLineWidth( double );
791 virtual void AddUserCurvesPoint( double, double, double );
792 virtual void RemoveAllActiveCurves();
794
796
799 virtual void SetLegendBorder( int );
800 virtual void SetLegendBox( int );
801 virtual void SetLegendUseBackground( int );
802 virtual void SetLegendBackgroundColor( double, double, double );
804
806
809 virtual void SetTitleColor( double, double, double );
810 virtual void SetTitleFontFamily( int );
811 virtual void SetTitleBold( int );
812 virtual void SetTitleItalic( int );
813 virtual void SetTitleShadow( int );
814 virtual void SetTitleFontSize( int );
815 virtual void SetTitleJustification( int );
816 virtual void SetTitleVerticalJustification( int );
818
820
823 virtual void SetXAxisColor( double, double, double );
824 virtual void SetYAxisColor( double, double, double );
826
828
831 virtual void SetAxisTitleColor( double, double, double );
832 virtual void SetAxisTitleFontFamily( int );
833 virtual void SetAxisTitleBold( int );
834 virtual void SetAxisTitleItalic( int );
835 virtual void SetAxisTitleShadow( int );
836 virtual void SetAxisTitleFontSize( int );
837 virtual void SetAxisTitleJustification( int );
840
842
845 virtual void SetAxisLabelColor( double, double, double );
846 virtual void SetAxisLabelFontFamily( int );
847 virtual void SetAxisLabelBold( int );
848 virtual void SetAxisLabelItalic( int );
849 virtual void SetAxisLabelShadow( int );
850 virtual void SetAxisLabelFontSize( int );
851 virtual void SetAxisLabelJustification( int );
854
855protected:
858
859 vtkXYPlotActorConnections* InputConnectionHolder;
860 char** SelectedInputScalars; // list of data set arrays to plot
862 vtkXYPlotActorConnections *DataObjectInputConnectionHolder; //list of data objects to plot
863 char* Title;
864 char* XTitle;
869 int Logx;
872 double XRange[2];
873 double YRange[2];
874 double XComputedRange[2]; //range actually used by plot
875 double YComputedRange[2]; //range actually used by plot
887 double TitlePosition[2];
889
893
896
899
900 double ViewportCoordinate[2];
901 double PlotCoordinate[2];
902
903 //Handle data objects and datasets
909
910 //The data drawn within the axes. Each curve is one polydata.
911 //color is controlled by scalar data. The curves are appended
912 //together, possibly glyphed with point symbols.
920
921 // Legends and plot symbols. The legend also keeps track of
922 // the symbols and such.
924 double LegendPosition[2];
925 double LegendPosition2[2];
929 double GlyphSize;
930
931 // Background box
940
941 // Reference lines
946
950
951 // Keep track of changes.
952 int CachedSize[2];
954
955 void ComputeXRange(double range[2], double *lengths);
956 void ComputeYRange(double range[2]);
957 void ComputeDORange(double xrange[2], double yrange[2], double *lengths);
958
959 virtual void CreatePlotData(int *pos, int *pos2, double xRange[2],
960 double yRange[2], double *norms,
961 int numDS, int numDO);
962 void PlaceAxes(vtkViewport *viewport, int *size, int pos[2], int pos2[2]);
963 void GenerateClipPlanes(int *pos, int *pos2);
964 double ComputeGlyphScale(int i, int *pos, int *pos2);
965 void ClipPlotData(int *pos, int *pos2, vtkPolyData *pd);
966 double *TransformPoint(int pos[2], int pos2[2], double x[3], double xNew[3]);
967
969
973
974private:
975 vtkXYPlotActor(const vtkXYPlotActor&) VTK_DELETE_FUNCTION;
976 void operator=(const vtkXYPlotActor&) VTK_DELETE_FUNCTION;
977
978 bool DoesConnectionMatch(int i, vtkAlgorithmOutput* in);
979
980 int IsInputPresent(vtkAlgorithmOutput* in,
981 const char* arrayName,
982 int component);
983
987 int YTitleSize[2];
988
992 int YTitlePosition;
993
995
998 int YTitleDelta;
999};
1001
1002
1003#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:65
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:40
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:55
draw vtkPolyData onto the image plane
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:86
represent surface properties of a 2D image
Definition: vtkProperty2D.h:41
An actor that displays text.
Definition: vtkTextActor.h:57
2D text annotation
Definition: vtkTextMapper.h:54
represent text properties.
record modification and/or execution time
Definition: vtkTimeStamp.h:36
abstract specification for Viewports
Definition: vtkViewport.h:48
window superclass for vtkRenderWindow
Definition: vtkWindow.h:35
generate an x-y plot from input dataset(s) or field data
void RemoveAllDataSetInputConnections()
This removes all of the data set inputs, but does not change the data object inputs.
void AddDataSetInputConnection(vtkAlgorithmOutput *in, const char *arrayName, int component)
void SetXValuesToIndex()
int IsInPlot(vtkViewport *viewport, double u, double v)
Is the specified viewport position within the plot area (as opposed to the region used by the plot pl...
virtual void SetTitleVerticalJustification(int)
static vtkXYPlotActor * New()
Instantiate object with autorange computation; bold, italic, and shadows on; arial font family; the n...
int GetDataObjectXComponent(int i)
void SetNumberOfLabels(int num)
virtual void SetLegendBox(int)
void SetPlotPoints(int i, int)
void SetAdjustYLabels(int adjust)
void ComputeXRange(double range[2], double *lengths)
virtual void SetTitleFontSize(int)
void SetXValuesToNormalizedArcLength()
vtkGlyph2D ** PlotGlyph
vtkXYPlotActorConnections * DataObjectInputConnectionHolder
vtkTextActor * YTitleActor
vtkAxisActor2D * YAxis
vtkPolyData * ReferenceLinesPolyData
virtual void SetTitleFontFamily(int)
virtual void SetAxisLabelItalic(int)
vtkGlyphSource2D * GlyphSource
const char * GetXValuesAsString()
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)
void PlotToViewportCoordinate(vtkViewport *viewport)
An alternate form of PlotToViewportCoordinate() above.
int RenderOpaqueGeometry(vtkViewport *)
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)
virtual void SetAxisTitleItalic(int)
virtual void SetYTitle(const char *)
Set/Get the title of the y axis.
virtual void SetAxisLabelShadow(int)
virtual int RenderTranslucentPolygonalGeometry(vtkViewport *)
virtual void SetYLabelFormat(const char *)
Set/Get the format with which to print the Y label.
vtkPolyData ** PlotData
void SetXValuesToValue()
vtkXYPlotActorConnections * InputConnectionHolder
int RenderOverlay(vtkViewport *)
Support the standard render methods.
vtkIntArray * XComponent
vtkActor2D * ReferenceLinesActor
virtual void CreatePlotData(int *pos, int *pos2, double xRange[2], double yRange[2], double *norms, int numDS, int numDO)
virtual void SetLegendUseBackground(int)
void SetPointComponent(int i, int comp)
If plotting points by value, which component to use to determine the value.
vtkPlanes * ClipPlanes
vtkTextProperty * AxisLabelTextProperty
double ReferenceYValue
void SetPlotColor(int i, double r, double g, double b)
void SetYTitlePositionToVCenter()
vtkPolyDataMapper2D * ReferenceLinesMapper
vtkActor2D * ChartBoxActor
char * GetYTitle()
void SetYTitlePositionToHCenter()
virtual void RemoveAllActiveCurves()
void PrintAsCSV(ostream &os)
Write the XY Ploat Actor as a CSV (comma separated value) representation.
void SetPlotSymbol(int i, vtkPolyData *input)
void SetDataObjectPlotModeToColumns()
void ComputeYRange(double range[2])
void SetDataObjectYComponent(int i, int comp)
Specify which component of the input data object to use as the dependent variable for the ith input d...
virtual void SetAxisTitleVerticalJustification(int)
void SetNumberOfXMinorTicks(int num)
Set/Get the number of minor ticks in X or Y.
void AddDataSetInput(vtkDataSet *ds)
vtkIntArray * PointsOn
virtual void SetLegendBorder(int)
Set legend properties.
const char * GetPlotLabel(int i)
virtual void SetYAxisColor(double, double, double)
double ComputeGlyphScale(int i, int *pos, int *pos2)
void SetXTitlePosition(double position)
Set/Get the position of the title of X axis.
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
virtual void SetAxisTitleFontFamily(int)
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)
void RemoveDataSetInputConnection(vtkAlgorithmOutput *in, const char *arrayName, int component)
virtual void SetAxisLabelVerticalJustification(int)
virtual void SetAxisTitleShadow(int)
virtual void SetAxisLabelColor(double, double, double)
Set axis label properties.
vtkTextProperty * TitleTextProperty
void RemoveDataObjectInput(vtkDataObject *in)
virtual void SetTitleItalic(int)
virtual void AddUserCurvesPoint(double, double, double)
virtual void SetAxisTitleJustification(int)
virtual int HasTranslucentPolygonalGeometry()
Does this prop have some translucent polygonal geometry?
int GetPlotPoints(int i)
void SetPlotLabel(int i, const char *label)
void RemoveDataSetInputConnection(vtkAlgorithmOutput *in)
char ** SelectedInputScalars
virtual void SetAxisLabelBold(int)
virtual void SetAxisTitleFontSize(int)
virtual void SetAxisTitleBold(int)
virtual void SetXLabelFormat(const char *)
Set/Get the format with which to print the X label.
vtkActor2D ** PlotActor
virtual void SetXAxisColor(double, double, double)
Set axes properties.
void AddDataObjectInput(vtkDataObject *in)
Add a data object to the list of data to display.
vtkActor2D * TitleActor
void ViewportToPlotCoordinate(vtkViewport *viewport, double &u, double &v)
Given a position within the viewport used by the plot, return the the plot coordinates (XAxis value,...
virtual void SetLineWidth(double)
void ClipPlotData(int *pos, int *pos2, vtkPolyData *pd)
vtkIntArray * YComponent
void SetPlotLines(int i, int)
void GenerateClipPlanes(int *pos, int *pos2)
vtkAxisActor2D * GetYAxisActor2D()
int GetNumberOfYMinorTicks()
virtual void SetAxisLabelJustification(int)
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)
void RemoveDataObjectInputConnection(vtkAlgorithmOutput *aout)
Remove a dataset from the list of data to display.
vtkIntArray * SelectedInputScalarsComponent
vtkActor2D * ChartBorderActor
virtual void SetLegendBackgroundColor(double, double, double)
virtual void SetAxisLabelFontSize(int)
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 PlaceAxes(vtkViewport *viewport, int *size, int pos[2], int pos2[2])
void SetYTitlePositionToTop()
void SetPlotColor(int i, const double color[3])
vtkPolyDataMapper2D * ChartBoxMapper
int GetPointComponent(int i)
virtual void SetTitleColor(double, double, double)
Set title properties.
int GetNumberOfXMinorTicks()
vtkAxisActor2D * XAxis
virtual void SetAxisTitleColor(double, double, double)
Set axis title properties.
void PlotToViewportCoordinate(vtkViewport *viewport, double &u, double &v)
Given a plot coordinate, return the viewpoint position.
virtual void SetTitleShadow(int)
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()
double GetXTitlePosition()
vtkPolyDataMapper2D * ChartBorderMapper
vtkPolyData * ChartBoxPolyData
double * GetPlotColor(int i)
vtkIntArray * LinesOn
vtkPolyDataMapper2D ** PlotMapper
vtkTimeStamp BuildTime
void RemoveDataSetInput(vtkDataSet *ds)
void SetXValuesToArcLength()
void ReleaseGraphicsResources(vtkWindow *)
Release any graphics resources that are being consumed by this actor.
int GetDataObjectYComponent(int i)
void SetDataObjectPlotModeToRows()
void SetNumberOfYMinorTicks(int num)
vtkSmartPointer< vtkDoubleArray > ActiveCurve
vtkTextProperty * AxisTitleTextProperty
const char * GetDataObjectPlotModeAsString()
vtkAppendPolyData ** PlotAppend
void AddDataSetInputConnection(vtkAlgorithmOutput *in)
void ViewportToPlotCoordinate(vtkViewport *viewport)
An alternate form of ViewportToPlotCoordinate() above.
vtkMTimeType GetMTime()
Take into account the modified time of internal helper classes.
void SetAdjustXLabels(int adjust)
Set/Get the flag that controls whether the labels and ticks are adjusted for "nice" numerical values ...
const char * GetLabelFormat()
virtual void SetAxisLabelTextProperty(vtkTextProperty *p)
Set/Get the labels text property of all axes.
double ReferenceXValue
virtual void SetAxisLabelFontFamily(int)
void ComputeDORange(double xrange[2], double yrange[2], double *lengths)
@ component
Definition: vtkX3D.h:175
@ range
Definition: vtkX3D.h:238
@ color
Definition: vtkX3D.h:221
@ position
Definition: vtkX3D.h:261
@ size
Definition: vtkX3D.h:253
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkBooleanMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkGetStringMacro(ExtensionsString)
Returns a string listing all available extensions.
vtkTypeUInt64 vtkMTimeType
Definition: vtkType.h:248
#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