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 
113 class vtkXYPlotActorConnections;
114 class vtkAlgorithmOutput;
115 class vtkAppendPolyData;
116 class vtkAxisActor2D;
117 class vtkDataObject;
119 class vtkDataSet;
121 class vtkDoubleArray;
122 class vtkGlyph2D;
123 class vtkGlyphSource2D;
124 class vtkIntArray;
125 class vtkLegendBoxActor;
126 class vtkPlanes;
127 class vtkPolyData;
128 class vtkPolyDataMapper2D;
129 class vtkTextActor;
130 class vtkTextMapper;
131 class vtkTextProperty;
132 
133 class VTKRENDERINGANNOTATION_EXPORT vtkXYPlotActor : public vtkActor2D
134 {
135 public:
136  vtkTypeMacro(vtkXYPlotActor,vtkActor2D);
137  void PrintSelf(ostream& os, vtkIndent indent);
138 
145  static vtkXYPlotActor *New();
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);
192  int GetPointComponent(int i);
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 
444  void SetNumberOfXMinorTicks(int num);
446  void SetNumberOfYMinorTicks(int num);
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 
480 enum Alignment {
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, 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 
855 protected:
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;
866  int XValues;
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
876  int Border;
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.
923  int Legend;
924  double LegendPosition[2];
925  double LegendPosition2[2];
929  double GlyphSize;
930 
931  // Background box
932  int ChartBox;
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 
974 private:
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
vtkXYPlotActor::SetAxisTitleFontSize
virtual void SetAxisTitleFontSize(int)
vtkXYPlotActor::GetPlotColor
double * GetPlotColor(int i)
vtkXYPlotActor::ShowReferenceXLine
int ShowReferenceXLine
Definition: vtkXYPlotActor.h:942
vtkXYPlotActor::GetPlotLabel
const char * GetPlotLabel(int i)
vtkXYPlotActor::PlotData
vtkPolyData ** PlotData
Definition: vtkXYPlotActor.h:914
VTK_XYPLOT_VALUE
#define VTK_XYPLOT_VALUE
Definition: vtkXYPlotActor.h:100
vtkGlyphSource2D
create 2D glyphs represented by vtkPolyData
Definition: vtkGlyphSource2D.h:63
vtkXYPlotActor::SetAxisLabelShadow
virtual void SetAxisLabelShadow(int)
vtkXYPlotActor::XAxis
vtkAxisActor2D * XAxis
Definition: vtkXYPlotActor.h:894
vtkPolyDataMapper2D
draw vtkPolyData onto the image plane
Definition: vtkPolyDataMapper2D.h:52
vtkXYPlotActor::GetDataObjectPlotModeAsString
const char * GetDataObjectPlotModeAsString()
vtkXYPlotActor::SetLabelFormat
virtual void SetLabelFormat(const char *)
Set/Get the format with which to print the labels .
vtkXYPlotActor::XTitle
char * XTitle
Definition: vtkXYPlotActor.h:864
vtkXYPlotActor::SetAxisLabelTextProperty
virtual void SetAxisLabelTextProperty(vtkTextProperty *p)
Set/Get the labels text property of all axes.
vtkXYPlotActor::ReverseYAxis
int ReverseYAxis
Definition: vtkXYPlotActor.h:883
vtkXYPlotActor::SetXAxisColor
virtual void SetXAxisColor(double, double, double)
Set axes properties.
vtkX3D::component
@ component
Definition: vtkX3D.h:175
vtkXYPlotActor::GetNumberOfYMinorTicks
int GetNumberOfYMinorTicks()
vtkXYPlotActor::AddDataObjectInputConnection
void AddDataObjectInputConnection(vtkAlgorithmOutput *alg)
vtkXYPlotActor::GetPointComponent
int GetPointComponent(int i)
vtkXYPlotActor::SetAxisLabelVerticalJustification
virtual void SetAxisLabelVerticalJustification(int)
vtkXYPlotActor::SetLegendBackgroundColor
virtual void SetLegendBackgroundColor(double, double, double)
vtkXYPlotActor::TransformPoint
double * TransformPoint(int pos[2], int pos2[2], double x[3], double xNew[3])
vtkXYPlotActor::AddDataObjectInput
void AddDataObjectInput(vtkDataObject *in)
Add a data object to the list of data to display.
vtkXYPlotActor::BuildTime
vtkTimeStamp BuildTime
Definition: vtkXYPlotActor.h:953
vtkXYPlotActor::GetYAxisActor2D
vtkAxisActor2D * GetYAxisActor2D()
Definition: vtkXYPlotActor.h:388
vtkXYPlotActor::SetPointComponent
void SetPointComponent(int i, int comp)
If plotting points by value, which component to use to determine the value.
vtkXYPlotActor::RemoveAllDataSetInputConnections
void RemoveAllDataSetInputConnections()
This removes all of the data set inputs, but does not change the data object inputs.
vtkXYPlotActor::SetNumberOfXMinorTicks
void SetNumberOfXMinorTicks(int num)
Set/Get the number of minor ticks in X or Y.
vtkXYPlotActor::AddDataSetInput
void AddDataSetInput(vtkDataSet *ds)
Definition: vtkXYPlotActor.h:162
vtkXYPlotActor::SetYLabelFormat
virtual void SetYLabelFormat(const char *)
Set/Get the format with which to print the Y label.
vtkDataObjectCollection
maintain an unordered list of data objects
Definition: vtkDataObjectCollection.h:35
vtkXYPlotActor::SetAxisTitleColor
virtual void SetAxisTitleColor(double, double, double)
Set axis title properties.
vtkLegendBoxActor
draw symbols with text
Definition: vtkLegendBoxActor.h:62
vtkTimeStamp
record modification and/or execution time
Definition: vtkTimeStamp.h:36
vtkXYPlotActor::SetAxisLabelFontFamily
virtual void SetAxisLabelFontFamily(int)
vtkXYPlotActor::SetTitleShadow
virtual void SetTitleShadow(int)
vtkXYPlotActor::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
vtkXYPlotActor::GetNumberOfXMinorTicks
int GetNumberOfXMinorTicks()
vtkXYPlotActor::PlotActor
vtkActor2D ** PlotActor
Definition: vtkXYPlotActor.h:918
vtkXYPlotActor::TitleMapper
vtkTextMapper * TitleMapper
Definition: vtkXYPlotActor.h:890
vtkXYPlotActor::XValues
int XValues
Definition: vtkXYPlotActor.h:866
vtkXYPlotActor::SetPlotLabel
void SetPlotLabel(int i, const char *label)
vtkXYPlotActor::SetXValuesToArcLength
void SetXValuesToArcLength()
Definition: vtkXYPlotActor.h:210
vtkXYPlotActor::XLabelFormat
char * XLabelFormat
Definition: vtkXYPlotActor.h:870
vtkXYPlotActor::NumberOfXLabels
int NumberOfXLabels
Definition: vtkXYPlotActor.h:867
vtkXYPlotActor::Title
char * Title
Definition: vtkXYPlotActor.h:863
vtkXYPlotActor::SetAxisLabelBold
virtual void SetAxisLabelBold(int)
vtkGlyph2D
copy oriented and scaled glyph geometry to every input point (2D specialization)
Definition: vtkGlyph2D.h:40
vtkX3D::range
@ range
Definition: vtkX3D.h:238
vtkXYPlotActor::SetNumberOfYMinorTicks
void SetNumberOfYMinorTicks(int num)
vtkXYPlotActor::SetXValuesToValue
void SetXValuesToValue()
Definition: vtkXYPlotActor.h:213
vtkSmartPointer< vtkDoubleArray >
vtkXYPlotActor::SetPlotSymbol
void SetPlotSymbol(int i, vtkPolyData *input)
vtkXYPlotActor::SetYAxisColor
virtual void SetYAxisColor(double, double, double)
vtkXYPlotActor::RemoveDataSetInput
void RemoveDataSetInput(vtkDataSet *ds, const char *arrayName, int component)
Remove a dataset from the list of data to append.
vtkXYPlotActor::SetAxisTitleBold
virtual void SetAxisTitleBold(int)
vtkXYPlotActor::GlyphSource
vtkGlyphSource2D * GlyphSource
Definition: vtkXYPlotActor.h:927
vtkXYPlotActor::ReferenceLinesPolyData
vtkPolyData * ReferenceLinesPolyData
Definition: vtkXYPlotActor.h:947
vtkXYPlotActor::SetYTitle
virtual void SetYTitle(const char *)
Set/Get the title of the y axis.
vtkXYPlotActor::ComputeGlyphScale
double ComputeGlyphScale(int i, int *pos, int *pos2)
vtkXYPlotActor::ChartBorderActor
vtkActor2D * ChartBorderActor
Definition: vtkXYPlotActor.h:939
vtkXYPlotActor::SetLegendUseBackground
virtual void SetLegendUseBackground(int)
vtkXYPlotActor::RemoveDataSetInputConnection
void RemoveDataSetInputConnection(vtkAlgorithmOutput *in, const char *arrayName, int component)
vtkXYPlotActor::PlotToViewportCoordinate
void PlotToViewportCoordinate(vtkViewport *viewport, double &u, double &v)
Given a plot coordinate, return the viewpoint position.
vtkXYPlotActor::AdjustTitlePosition
int AdjustTitlePosition
Definition: vtkXYPlotActor.h:886
vtkXYPlotActor::SetYTitlePositionToVCenter
void SetYTitlePositionToVCenter()
Definition: vtkXYPlotActor.h:779
vtkXYPlotActor::XComponent
vtkIntArray * XComponent
Definition: vtkXYPlotActor.h:905
vtkXYPlotActor::SetTitleFontSize
virtual void SetTitleFontSize(int)
vtkXYPlotActor::SetYTitlePositionToTop
void SetYTitlePositionToTop()
Definition: vtkXYPlotActor.h:771
vtkXYPlotActor::SetAxisTitleTextProperty
virtual void SetAxisTitleTextProperty(vtkTextProperty *p)
Set/Get the title text property of all axes.
vtkXYPlotActor::RemoveDataObjectInputConnection
void RemoveDataObjectInputConnection(vtkAlgorithmOutput *aout)
Remove a dataset from the list of data to display.
vtkXYPlotActor::SetXLabelFormat
virtual void SetXLabelFormat(const char *)
Set/Get the format with which to print the X label.
VTK_XYPLOT_Y_AXIS_TOP
#define VTK_XYPLOT_Y_AXIS_TOP
Definition: vtkXYPlotActor.h:105
vtkPlanes
implicit function for convex set of planes
Definition: vtkPlanes.h:55
vtkXYPlotActor::SetTitleTextProperty
virtual void SetTitleTextProperty(vtkTextProperty *p)
Set/Get the title text property.
vtkXYPlotActor::RemoveAllActiveCurves
virtual void RemoveAllActiveCurves()
vtkXYPlotActor::RemoveDataObjectInput
void RemoveDataObjectInput(vtkDataObject *in)
vtkXYPlotActor::RenderOverlay
int RenderOverlay(vtkViewport *)
Support the standard render methods.
vtkXYPlotActor::SetTitleVerticalJustification
virtual void SetTitleVerticalJustification(int)
vtkXYPlotActor::GetPlotPoints
int GetPlotPoints(int i)
VTK_XYPLOT_INDEX
#define VTK_XYPLOT_INDEX
Definition: vtkXYPlotActor.h:97
vtkXYPlotActor::PlotToViewportCoordinate
void PlotToViewportCoordinate(vtkViewport *viewport)
An alternate form of PlotToViewportCoordinate() above.
vtkXYPlotActor::TitleTextProperty
vtkTextProperty * TitleTextProperty
Definition: vtkXYPlotActor.h:892
vtkXYPlotActor::SetAxisTitleVerticalJustification
virtual void SetAxisTitleVerticalJustification(int)
vtkXYPlotActor::SetTitleBold
virtual void SetTitleBold(int)
vtkWindow
window superclass for vtkRenderWindow
Definition: vtkWindow.h:35
vtkXYPlotActor::SetAdjustYLabels
void SetAdjustYLabels(int adjust)
vtkXYPlotActor::HasTranslucentPolygonalGeometry
virtual int HasTranslucentPolygonalGeometry()
Does this prop have some translucent polygonal geometry?
vtkXYPlotActor::SetXValuesToNormalizedArcLength
void SetXValuesToNormalizedArcLength()
Definition: vtkXYPlotActor.h:211
vtkMTimeType
vtkTypeUInt64 vtkMTimeType
Definition: vtkType.h:248
vtkXYPlotActor::YAxis
vtkAxisActor2D * YAxis
Definition: vtkXYPlotActor.h:895
vtkXYPlotActor::RemoveDataSetInputConnection
void RemoveDataSetInputConnection(vtkAlgorithmOutput *in)
Definition: vtkXYPlotActor.h:174
vtkXYPlotActor::PlotPoints
int PlotPoints
Definition: vtkXYPlotActor.h:878
vtkXYPlotActor::SetPlotGlyphType
virtual void SetPlotGlyphType(int, int)
Set plot properties.
vtkXYPlotActor::Legend
int Legend
Definition: vtkXYPlotActor.h:923
vtkXYPlotActor::PlotAppend
vtkAppendPolyData ** PlotAppend
Definition: vtkXYPlotActor.h:916
vtkAppendPolyData
appends one or more polygonal datasets together
Definition: vtkAppendPolyData.h:49
vtkX3D::position
@ position
Definition: vtkX3D.h:261
vtkX3D::color
@ color
Definition: vtkX3D.h:221
vtkXYPlotActor::SetAxisLabelItalic
virtual void SetAxisLabelItalic(int)
vtkXYPlotActor::TitleActor
vtkActor2D * TitleActor
Definition: vtkXYPlotActor.h:891
vtkXYPlotActor::SetAxisTitleItalic
virtual void SetAxisTitleItalic(int)
vtkTextMapper
2D text annotation
Definition: vtkTextMapper.h:54
vtkXYPlotActor::SetTitleJustification
virtual void SetTitleJustification(int)
vtkXYPlotActor::PlotGlyph
vtkGlyph2D ** PlotGlyph
Definition: vtkXYPlotActor.h:915
vtkXYPlotActor::ActiveCurveIndex
int ActiveCurveIndex
Definition: vtkXYPlotActor.h:971
vtkXYPlotActor::PlotLines
int PlotLines
Definition: vtkXYPlotActor.h:877
vtkXYPlotActor::ChartBoxMapper
vtkPolyDataMapper2D * ChartBoxMapper
Definition: vtkXYPlotActor.h:934
vtkXYPlotActor::PrintAsCSV
void PrintAsCSV(ostream &os)
Write the XY Ploat Actor as a CSV (comma separated value) representation.
vtkXYPlotActor::AddUserCurvesPoint
virtual void AddUserCurvesPoint(double, double, double)
vtkXYPlotActor::SetAxisLabelFontSize
virtual void SetAxisLabelFontSize(int)
vtkXYPlotActor::AddDataSetInput
void AddDataSetInput(vtkDataSet *ds, const char *arrayName, int component)
Add a dataset to the list of data to append.
vtkXYPlotActor::GenerateClipPlanes
void GenerateClipPlanes(int *pos, int *pos2)
vtkXYPlotActor::DataObjectInputConnectionHolder
vtkXYPlotActorConnections * DataObjectInputConnectionHolder
Definition: vtkXYPlotActor.h:862
vtkXYPlotActor::AdjustYLabels
int AdjustYLabels
Definition: vtkXYPlotActor.h:885
vtkXYPlotActor::New
static vtkXYPlotActor * New()
Instantiate object with autorange computation; bold, italic, and shadows on; arial font family; the n...
vtkXYPlotActor::ComputeYRange
void ComputeYRange(double range[2])
vtkXYPlotActor::ExchangeAxes
int ExchangeAxes
Definition: vtkXYPlotActor.h:881
vtkXYPlotActor::SetDataObjectXComponent
void SetDataObjectXComponent(int i, int comp)
Specify which component of the input data object to use as the independent variable for the ith input...
vtkXYPlotActor::GlyphSize
double GlyphSize
Definition: vtkXYPlotActor.h:929
vtkXYPlotActor::SetTitleItalic
virtual void SetTitleItalic(int)
VTK_XYPLOT_ARC_LENGTH
#define VTK_XYPLOT_ARC_LENGTH
Definition: vtkXYPlotActor.h:98
vtkXYPlotActor::AxisTitleTextProperty
vtkTextProperty * AxisTitleTextProperty
Definition: vtkXYPlotActor.h:897
vtkXYPlotActor::ReferenceYValue
double ReferenceYValue
Definition: vtkXYPlotActor.h:945
vtkTextActor
An actor that displays text.
Definition: vtkTextActor.h:57
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:40
vtkIntArray
dynamic, self-adjusting array of int
Definition: vtkIntArray.h:46
vtkXYPlotActor::~vtkXYPlotActor
~vtkXYPlotActor()
vtkXYPlotActor::SetAxisTitleShadow
virtual void SetAxisTitleShadow(int)
vtkXYPlotActor::ComputeXRange
void ComputeXRange(double range[2], double *lengths)
vtkSmartPointer.h
vtkXYPlotActor::ChartBoxPolyData
vtkPolyData * ChartBoxPolyData
Definition: vtkXYPlotActor.h:933
vtkXYPlotActor::SelectedInputScalars
char ** SelectedInputScalars
Definition: vtkXYPlotActor.h:860
vtkXYPlotActor::RenderOpaqueGeometry
int RenderOpaqueGeometry(vtkViewport *)
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE DO NOT USE THIS METHOD OUTSIDE OF THE RENDERI...
vtkX3D::size
@ size
Definition: vtkX3D.h:253
vtkXYPlotActor::LinesOn
vtkIntArray * LinesOn
Definition: vtkXYPlotActor.h:907
vtkXYPlotActor::ReferenceLinesActor
vtkActor2D * ReferenceLinesActor
Definition: vtkXYPlotActor.h:949
vtkXYPlotActor::ReferenceXValue
double ReferenceXValue
Definition: vtkXYPlotActor.h:944
vtkXYPlotActor::ComputeDORange
void ComputeDORange(double xrange[2], double yrange[2], double *lengths)
vtkXYPlotActor::SetXTitlePosition
void SetXTitlePosition(double position)
Set/Get the position of the title of X axis.
vtkXYPlotActor::PlotColorIndex
int PlotColorIndex
Definition: vtkXYPlotActor.h:972
vtkXYPlotActor::SetAxisTitleJustification
virtual void SetAxisTitleJustification(int)
vtkXYPlotActor::SetTitleFontFamily
virtual void SetTitleFontFamily(int)
vtkXYPlotActor::SetAxisTitleFontFamily
virtual void SetAxisTitleFontFamily(int)
vtkGetStringMacro
vtkGetStringMacro(ExtensionsString)
Returns a string listing all available extensions.
vtkXYPlotActor::SetPlotColor
void SetPlotColor(int i, double r, double g, double b)
vtkXYPlotActor::AddDataSetInputConnection
void AddDataSetInputConnection(vtkAlgorithmOutput *in)
Definition: vtkXYPlotActor.h:164
vtkXYPlotActor::GetYTitle
char * GetYTitle()
vtkXYPlotActor::SetLegendBox
virtual void SetLegendBox(int)
vtkXYPlotActor::NumberOfInputs
int NumberOfInputs
Definition: vtkXYPlotActor.h:913
vtkXYPlotActor::PlaceAxes
void PlaceAxes(vtkViewport *viewport, int *size, int pos[2], int pos2[2])
vtkViewport
abstract specification for Viewports
Definition: vtkViewport.h:48
vtkXYPlotActor::PointsOn
vtkIntArray * PointsOn
Definition: vtkXYPlotActor.h:908
VTK_XYPLOT_Y_AXIS_HCENTER
#define VTK_XYPLOT_Y_AXIS_HCENTER
Definition: vtkXYPlotActor.h:106
vtkXYPlotActor::SetAxisLabelColor
virtual void SetAxisLabelColor(double, double, double)
Set axis label properties.
vtkXYPlotActor::GetChartBoxProperty
vtkProperty2D * GetChartBoxProperty()
Get the box vtkProperty2D.
Definition: vtkXYPlotActor.h:688
vtkXYPlotActor::YLabelFormat
char * YLabelFormat
Definition: vtkXYPlotActor.h:871
VTK_XYPLOT_ROW
#define VTK_XYPLOT_ROW
Definition: vtkXYPlotActor.h:102
vtkXYPlotActor::SetAdjustXLabels
void SetAdjustXLabels(int adjust)
Set/Get the flag that controls whether the labels and ticks are adjusted for "nice" numerical values ...
vtkXYPlotActor::RenderTranslucentPolygonalGeometry
virtual int RenderTranslucentPolygonalGeometry(vtkViewport *)
Definition: vtkXYPlotActor.h:742
vtkXYPlotActor::ChartBorderPolyData
vtkPolyData * ChartBorderPolyData
Definition: vtkXYPlotActor.h:937
vtkXYPlotActor::InitializeEntries
void InitializeEntries()
vtkXYPlotActor::LegendActor
vtkLegendBoxActor * LegendActor
Definition: vtkXYPlotActor.h:926
vtkXYPlotActor::Logx
int Logx
Definition: vtkXYPlotActor.h:869
vtkDataSet
abstract class to specify dataset behavior
Definition: vtkDataSet.h:63
vtkTextProperty
represent text properties.
Definition: vtkTextProperty.h:40
vtkBooleanMacro
vtkBooleanMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkXYPlotActor
generate an x-y plot from input dataset(s) or field data
Definition: vtkXYPlotActor.h:134
vtkXYPlotActor::ChartBoxActor
vtkActor2D * ChartBoxActor
Definition: vtkXYPlotActor.h:935
vtkSetMacro
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkXYPlotActor::ChartBox
int ChartBox
Definition: vtkXYPlotActor.h:932
vtkXYPlotActor::SetXValuesToIndex
void SetXValuesToIndex()
Definition: vtkXYPlotActor.h:209
vtkProperty2D
represent surface properties of a 2D image
Definition: vtkProperty2D.h:41
vtkXYPlotActor::ReferenceLinesMapper
vtkPolyDataMapper2D * ReferenceLinesMapper
Definition: vtkXYPlotActor.h:948
vtkActor2D
a actor that draws 2D data
Definition: vtkActor2D.h:46
vtkXYPlotActor::SetDataObjectYComponent
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...
vtkActor2D.h
vtkXYPlotActor::SetDataObjectPlotModeToColumns
void SetDataObjectPlotModeToColumns()
Definition: vtkXYPlotActor.h:248
vtkXYPlotActor::DataObjectPlotMode
int DataObjectPlotMode
Definition: vtkXYPlotActor.h:904
vtkXYPlotActor::CreatePlotData
virtual void CreatePlotData(int *pos, int *pos2, double xRange[2], double yRange[2], double *norms, int numDS, int numDO)
vtkAlgorithmOutput
Proxy object to connect input/output ports.
Definition: vtkAlgorithmOutput.h:40
vtkXYPlotActor::AddDataSetInputConnection
void AddDataSetInputConnection(vtkAlgorithmOutput *in, const char *arrayName, int component)
vtkXYPlotActor::GetLabelFormat
const char * GetLabelFormat()
Definition: vtkXYPlotActor.h:563
vtkXYPlotActor::ViewportToPlotCoordinate
void ViewportToPlotCoordinate(vtkViewport *viewport)
An alternate form of ViewportToPlotCoordinate() above.
vtkXYPlotActor::ReverseXAxis
int ReverseXAxis
Definition: vtkXYPlotActor.h:882
vtkXYPlotActor::vtkXYPlotActor
vtkXYPlotActor()
VTK_XYPLOT_COLUMN
#define VTK_XYPLOT_COLUMN
Definition: vtkXYPlotActor.h:103
VTK_XYPLOT_Y_AXIS_VCENTER
#define VTK_XYPLOT_Y_AXIS_VCENTER
Definition: vtkXYPlotActor.h:107
vtkXYPlotActor::RemoveDataSetInput
void RemoveDataSetInput(vtkDataSet *ds)
Definition: vtkXYPlotActor.h:172
vtkXYPlotActor::YTitleActor
vtkTextActor * YTitleActor
Definition: vtkXYPlotActor.h:865
vtkPolyData
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:86
vtkAxisActor2D
Create an axis with tick marks and labels.
Definition: vtkAxisActor2D.h:73
vtkXYPlotActor::GetPlotLines
int GetPlotLines(int i)
vtkXYPlotActor::GetXValuesAsString
const char * GetXValuesAsString()
vtkXYPlotActor::GetXAxisActor2D
vtkAxisActor2D * GetXAxisActor2D()
Retrieve handles to the X and Y axis (so that you can set their text properties for example)
Definition: vtkXYPlotActor.h:384
vtkDataSetCollection
maintain an unordered list of dataset objects
Definition: vtkDataSetCollection.h:32
vtkXYPlotActor::GetDataObjectXComponent
int GetDataObjectXComponent(int i)
vtkXYPlotActor::YAxisTitleSize
int YAxisTitleSize
Definition: vtkXYPlotActor.h:970
vtkXYPlotActor::SetPlotPoints
void SetPlotPoints(int i, int)
vtkXYPlotActor::GetXTitlePosition
double GetXTitlePosition()
vtkXYPlotActor::SetLineWidth
virtual void SetLineWidth(double)
vtkXYPlotActor::SetPlotColor
void SetPlotColor(int i, const double color[3])
Definition: vtkXYPlotActor.h:286
vtkXYPlotActor::ShowReferenceYLine
int ShowReferenceYLine
Definition: vtkXYPlotActor.h:943
vtkDoubleArray
dynamic, self-adjusting array of double
Definition: vtkDoubleArray.h:42
vtkXYPlotActor::ReleaseGraphicsResources
void ReleaseGraphicsResources(vtkWindow *)
Release any graphics resources that are being consumed by this actor.
vtkXYPlotActor::GetMTime
vtkMTimeType GetMTime()
Take into account the modified time of internal helper classes.
vtkXYPlotActor::SetTitleColor
virtual void SetTitleColor(double, double, double)
Set title properties.
vtkXYPlotActor::InputConnectionHolder
vtkXYPlotActorConnections * InputConnectionHolder
Definition: vtkXYPlotActor.h:859
vtkXYPlotActor::AxisLabelTextProperty
vtkTextProperty * AxisLabelTextProperty
Definition: vtkXYPlotActor.h:898
vtkXYPlotActor::PlotMapper
vtkPolyDataMapper2D ** PlotMapper
Definition: vtkXYPlotActor.h:917
vtkXYPlotActor::AdjustXLabels
int AdjustXLabels
Definition: vtkXYPlotActor.h:884
vtkXYPlotActor::NumberOfYLabels
int NumberOfYLabels
Definition: vtkXYPlotActor.h:868
vtkXYPlotActor::Border
int Border
Definition: vtkXYPlotActor.h:876
vtkXYPlotActor::ClipPlotData
void ClipPlotData(int *pos, int *pos2, vtkPolyData *pd)
vtkXYPlotActor::GetDataObjectYComponent
int GetDataObjectYComponent(int i)
vtkXYPlotActor::SetLegendBorder
virtual void SetLegendBorder(int)
Set legend properties.
vtkXYPlotActor::AdjustTitlePositionMode
int AdjustTitlePositionMode
Definition: vtkXYPlotActor.h:888
vtkDataObject
general representation of visualization data
Definition: vtkDataObject.h:65
vtkXYPlotActor::GetPlotSymbol
vtkPolyData * GetPlotSymbol(int i)
vtkXYPlotActor::PlotCurvePoints
int PlotCurvePoints
Definition: vtkXYPlotActor.h:880
vtkXYPlotActor::ActiveCurve
vtkSmartPointer< vtkDoubleArray > ActiveCurve
Definition: vtkXYPlotActor.h:968
vtkXYPlotActor::SetNumberOfLabels
void SetNumberOfLabels(int num)
Definition: vtkXYPlotActor.h:422
vtkXYPlotActor::IsInPlot
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...
vtkXYPlotActor::ViewportToPlotCoordinate
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,...
vtkXYPlotActor::YComponent
vtkIntArray * YComponent
Definition: vtkXYPlotActor.h:906
vtkXYPlotActor::ChartBorder
int ChartBorder
Definition: vtkXYPlotActor.h:936
vtkXYPlotActor::SetYTitlePositionToHCenter
void SetYTitlePositionToHCenter()
Definition: vtkXYPlotActor.h:775
VTK_XYPLOT_NORMALIZED_ARC_LENGTH
#define VTK_XYPLOT_NORMALIZED_ARC_LENGTH
Definition: vtkXYPlotActor.h:99
vtkXYPlotActor::Alignment
Alignment
Definition: vtkXYPlotActor.h:480
vtkXYPlotActor::SetDataObjectPlotModeToRows
void SetDataObjectPlotModeToRows()
Definition: vtkXYPlotActor.h:246
vtkXYPlotActor::ClipPlanes
vtkPlanes * ClipPlanes
Definition: vtkXYPlotActor.h:928
vtkXYPlotActor::SetPlotLines
void SetPlotLines(int i, int)
vtkXYPlotActor::SetPlotRange
void SetPlotRange(double xmin, double ymin, double xmax, double ymax)
Definition: vtkXYPlotActor.h:407
vtkXYPlotActor::SetAxisLabelJustification
virtual void SetAxisLabelJustification(int)
vtkXYPlotActor::SelectedInputScalarsComponent
vtkIntArray * SelectedInputScalarsComponent
Definition: vtkXYPlotActor.h:861
vtkXYPlotActor::ChartBorderMapper
vtkPolyDataMapper2D * ChartBorderMapper
Definition: vtkXYPlotActor.h:938
vtkXYPlotActor::PlotCurveLines
int PlotCurveLines
Definition: vtkXYPlotActor.h:879