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 =========================================================================*/
93 #ifndef vtkXYPlotActor_h
94 #define vtkXYPlotActor_h
95 
96 #define VTK_XYPLOT_INDEX 0
97 #define VTK_XYPLOT_ARC_LENGTH 1
98 #define VTK_XYPLOT_NORMALIZED_ARC_LENGTH 2
99 #define VTK_XYPLOT_VALUE 3
100 
101 #define VTK_XYPLOT_ROW 0
102 #define VTK_XYPLOT_COLUMN 1
103 
104 #define VTK_XYPLOT_Y_AXIS_TOP 0
105 #define VTK_XYPLOT_Y_AXIS_HCENTER 1
106 #define VTK_XYPLOT_Y_AXIS_VCENTER 2 // rotate by 90 degrees (y-axis aligned)
107 
108 #include "vtkRenderingAnnotationModule.h" // For export macro
109 #include "vtkActor2D.h"
110 #include "vtkSmartPointer.h" // For SP
111 
112 class vtkXYPlotActorConnections;
113 class vtkAlgorithmOutput;
114 class vtkAppendPolyData;
115 class vtkAxisActor2D;
116 class vtkDataObject;
118 class vtkDataSet;
120 class vtkDoubleArray;
121 class vtkGlyph2D;
122 class vtkGlyphSource2D;
123 class vtkIntArray;
124 class vtkLegendBoxActor;
125 class vtkPlanes;
126 class vtkPolyData;
127 class vtkPolyDataMapper2D;
128 class vtkTextActor;
129 class vtkTextMapper;
130 class vtkTextProperty;
131 
133 {
134 public:
136  void PrintSelf(ostream& os, vtkIndent indent);
137 
142  static vtkXYPlotActor *New();
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 
156  void AddDataSetInput(vtkDataSet *ds, const char* arrayName, int component);
157  void AddDataSetInput(vtkDataSet *ds) {this->AddDataSetInput(ds, NULL, 0);}
158  void AddDataSetInputConnection(vtkAlgorithmOutput *in, const char* arrayName, int component);
161 
163 
164  void RemoveDataSetInput(vtkDataSet *ds, const char* arrayName, int component);
165  void RemoveDataSetInput(vtkDataSet *ds) {this->RemoveDataSetInput(ds, NULL, 0);}
166  void RemoveDataSetInputConnection(vtkAlgorithmOutput *in, const char* arrayName, int component);
168  {
169  this->RemoveDataSetInputConnection(in, NULL, 0);
170  }
172 
176 
178 
181  void SetPointComponent(int i, int comp);
182  int GetPointComponent(int i);
183  //---end Data Set Input-----------------------------------------------------
185 
187 
196  vtkGetMacro(XValues,int);
197  void SetXValuesToIndex(){this->SetXValues(VTK_XYPLOT_INDEX);};
198  void SetXValuesToArcLength() {this->SetXValues(VTK_XYPLOT_ARC_LENGTH);};
200  {this->SetXValues(VTK_XYPLOT_NORMALIZED_ARC_LENGTH);};
201  void SetXValuesToValue() {this->SetXValues(VTK_XYPLOT_VALUE);};
202  const char *GetXValuesAsString();
204 
205  //---Data Object Input------------------------------------------------------
206  // The following methods are used to plot input data objects. Datasets will
207  // be plotted in preference to data objects if set as input; otherwise the
208  // input data objects will be plotted (if defined).
209 
211 
215 
217 
221 
223 
226  vtkGetMacro(DataObjectPlotMode,int);
228  {this->SetDataObjectPlotMode(VTK_XYPLOT_ROW);}
230  {this->SetDataObjectPlotMode(VTK_XYPLOT_COLUMN);}
233 
235 
241  void SetDataObjectXComponent(int i, int comp);
244 
246 
252  void SetDataObjectYComponent(int i, int comp);
254  //---end Data Object Input--------------------------------------------------
256 
257  //---Per Curve Properties---------------------------------------------------
258  // The following methods are used to set properties on each curve that is
259  // plotted. Each input dataset (or data object) results in one curve. The
260  // methods that follow have an index i that corresponds to the input dataset
261  // or data object.
262  void SetPlotColor(int i, double r, double g, double b);
263  void SetPlotColor(int i, const double color[3]) {
264  this->SetPlotColor(i, color[0], color[1], color[2]); };
265  double *GetPlotColor(int i);
268  void SetPlotLabel(int i, const char *label);
269  const char *GetPlotLabel(int i);
270 
271  // Allow per-curve specification of line and point rendering. These override
272  // global settings PlotPoints and PlotLines. If not on, the default behavior
273  // is governed by PlotPoints and PlotLines ivars.
274  vtkGetMacro(PlotCurvePoints, int);
275  vtkSetMacro(PlotCurvePoints, int);
276  vtkBooleanMacro(PlotCurvePoints, int);
277 
278  vtkGetMacro(PlotCurveLines, int);
279  vtkSetMacro(PlotCurveLines, int);
280  vtkBooleanMacro(PlotCurveLines, int);
281 
282  void SetPlotLines(int i, int);
283  int GetPlotLines(int i);
284 
285  void SetPlotPoints(int i, int);
286  int GetPlotPoints(int i);
287  //---end Per Curve Properties-----------------------------------------------
288 
290 
292  vtkSetMacro(ExchangeAxes, int);
293  vtkGetMacro(ExchangeAxes, int);
294  vtkBooleanMacro(ExchangeAxes, int);
296 
298 
302  vtkSetMacro(ReverseXAxis, int);
303  vtkGetMacro(ReverseXAxis, int);
304  vtkBooleanMacro(ReverseXAxis, int);
306 
308 
312  vtkSetMacro(ReverseYAxis, int);
313  vtkGetMacro(ReverseYAxis, int);
314  vtkBooleanMacro(ReverseYAxis, int);
316 
318 
325 
327 
331 
333 
337 
339 
340  virtual void SetYTitle( const char* );
341  char* GetYTitle();
343 
345 
348  {
349  return this->XAxis;
350  }
352  {
353  return this->YAxis;
354  }
356 
358 
364  vtkSetVector2Macro(XRange,double);
365  vtkGetVectorMacro(XRange,double,2);
366  vtkSetVector2Macro(YRange,double);
367  vtkGetVectorMacro(YRange,double,2);
368  void SetPlotRange(double xmin, double ymin, double xmax, double ymax)
369  {this->SetXRange(xmin,xmax); this->SetYRange(ymin,ymax);}
371 
373 
378  vtkSetClampMacro(NumberOfXLabels, int, 0, 50);
379  vtkGetMacro(NumberOfXLabels, int);
380  vtkSetClampMacro(NumberOfYLabels, int, 0, 50);
381  vtkGetMacro(NumberOfYLabels, int);
383  {this->SetNumberOfXLabels(num); this->SetNumberOfYLabels(num);}
385 
387 
392  void SetAdjustXLabels(int adjust);
393  vtkGetMacro( AdjustXLabels, int );
394  void SetAdjustYLabels(int adjust);
395  vtkGetMacro( AdjustYLabels, int );
397 
399 
405 
407 
410  vtkSetMacro(Legend, int);
411  vtkGetMacro(Legend, int);
412  vtkBooleanMacro(Legend, int);
414 
416 
418  vtkSetVector2Macro(TitlePosition,double);
419  vtkGetVector2Macro(TitlePosition,double);
421 
423 
425  vtkSetMacro(AdjustTitlePosition, int);
426  vtkGetMacro(AdjustTitlePosition, int);
427  vtkBooleanMacro(AdjustTitlePosition, int);
429 
430 //BTX
431 enum Alignment {
432  AlignLeft = 0x1,
433  AlignRight = 0x2,
434  AlignHCenter = 0x4,
435  AlignTop = 0x10,
436  AlignBottom = 0x20,
437  AlignVCenter = 0x40,
438  AlignAxisLeft = 0x100,
439  AlignAxisRight = 0x200,
440  AlignAxisHCenter = 0x400,
441  AlignAxisTop = 0x1000,
442  AlignAxisBottom = 0x2000,
443  AlignAxisVCenter = 0x4000
444 };
445 //ETX
447 
452  vtkSetMacro(AdjustTitlePositionMode, int);
453  vtkGetMacro(AdjustTitlePositionMode, int);
455 
457 
463  vtkSetVector2Macro(LegendPosition,double);
464  vtkGetVector2Macro(LegendPosition,double);
465  vtkSetVector2Macro(LegendPosition2,double);
466  vtkGetVector2Macro(LegendPosition2,double);
468 
470 
472  vtkGetObjectMacro(TitleTextProperty,vtkTextProperty);
474 
476 
479  vtkGetObjectMacro(AxisTitleTextProperty,vtkTextProperty);
481 
483 
486  vtkGetObjectMacro(AxisLabelTextProperty,vtkTextProperty);
488 
490 
491  vtkSetMacro(Logx, int);
492  vtkGetMacro(Logx, int);
493  vtkBooleanMacro(Logx, int);
495 
497 
499  virtual void SetLabelFormat ( const char* );
500  const char* GetLabelFormat()
501  {
502  return this->GetXLabelFormat();
503  }
505 
507 
508  virtual void SetXLabelFormat ( const char* );
509  vtkGetStringMacro(XLabelFormat);
511 
513 
514  virtual void SetYLabelFormat ( const char* );
515  vtkGetStringMacro(YLabelFormat);
517 
519 
521  vtkSetClampMacro(Border, int, 0, 50);
522  vtkGetMacro(Border, int);
524 
526 
529  vtkGetMacro(PlotPoints, int);
530  vtkSetMacro(PlotPoints, int);
531  vtkBooleanMacro(PlotPoints, int);
533 
535 
537  vtkGetMacro(PlotLines, int);
538  vtkSetMacro(PlotLines, int);
539  vtkBooleanMacro(PlotLines, int);
541 
543 
546  vtkSetClampMacro(GlyphSize, double, 0.0, 0.2);
547  vtkGetMacro(GlyphSize, double);
549 
552  void ViewportToPlotCoordinate(vtkViewport *viewport, double &u, double &v);
553 
555 
559  vtkSetVector2Macro(PlotCoordinate,double);
560  vtkGetVector2Macro(PlotCoordinate,double);
562 
564  void PlotToViewportCoordinate(vtkViewport *viewport, double &u, double &v);
565 
567 
572  vtkSetVector2Macro(ViewportCoordinate,double);
573  vtkGetVector2Macro(ViewportCoordinate,double);
575 
578  int IsInPlot(vtkViewport *viewport, double u, double v);
579 
581 
583  vtkSetMacro(ChartBox, int);
584  vtkGetMacro(ChartBox, int);
585  vtkBooleanMacro(ChartBox, int);
587 
589 
591  vtkSetMacro(ChartBorder, int);
592  vtkGetMacro(ChartBorder, int);
593  vtkBooleanMacro(ChartBorder, int);
595 
597  vtkProperty2D* GetChartBoxProperty() { return this->ChartBoxActor->GetProperty(); };
598 
600 
601  vtkSetMacro(ShowReferenceXLine, int);
602  vtkGetMacro(ShowReferenceXLine, int);
603  vtkBooleanMacro(ShowReferenceXLine, int);
605 
607 
608  vtkSetMacro(ReferenceXValue, double);
609  vtkGetMacro(ReferenceXValue, double);
611 
613 
614  vtkSetMacro(ShowReferenceYLine, int);
615  vtkGetMacro(ShowReferenceYLine, int);
616  vtkBooleanMacro(ShowReferenceYLine, int);
618 
620 
621  vtkSetMacro(ReferenceYValue, double);
622  vtkGetMacro(ReferenceYValue, double);
624 
626  unsigned long GetMTime();
627 
630  void PrintAsCSV(ostream &os);
631 
632 //BTX
634 
640 
643 
645 
649 //ETX
651 
653 
657 
659 
660  vtkSetMacro(YTitlePosition,int);
661  vtkGetMacro(YTitlePosition,int);
663  {
664  this->SetYTitlePosition( VTK_XYPLOT_Y_AXIS_TOP );
665  }
667  {
668  this->SetYTitlePosition( VTK_XYPLOT_Y_AXIS_HCENTER );
669  }
671  {
672  this->SetYTitlePosition( VTK_XYPLOT_Y_AXIS_VCENTER );
673  }
675 
677 
678  virtual void SetPlotGlyphType( int, int );
679  virtual void SetLineWidth( double );
680  virtual void AddUserCurvesPoint( double, double, double );
681  virtual void RemoveAllActiveCurves();
683 
685 
686  virtual void SetLegendBorder( int );
687  virtual void SetLegendBox( int );
688  virtual void SetLegendUseBackground( int );
689  virtual void SetLegendBackgroundColor( double, double, double );
691 
693 
694  virtual void SetTitleColor( double, double, double );
695  virtual void SetTitleFontFamily( int );
696  virtual void SetTitleBold( int );
697  virtual void SetTitleItalic( int );
698  virtual void SetTitleShadow( int );
699  virtual void SetTitleFontSize( int );
700  virtual void SetTitleJustification( int );
701  virtual void SetTitleVerticalJustification( int );
703 
705 
706  virtual void SetXAxisColor( double, double, double );
707  virtual void SetYAxisColor( double, double, double );
709 
711 
712  virtual void SetAxisTitleColor( double, double, double );
713  virtual void SetAxisTitleFontFamily( int );
714  virtual void SetAxisTitleBold( int );
715  virtual void SetAxisTitleItalic( int );
716  virtual void SetAxisTitleShadow( int );
717  virtual void SetAxisTitleFontSize( int );
718  virtual void SetAxisTitleJustification( int );
721 
723 
724  virtual void SetAxisLabelColor( double, double, double );
725  virtual void SetAxisLabelFontFamily( int );
726  virtual void SetAxisLabelBold( int );
727  virtual void SetAxisLabelItalic( int );
728  virtual void SetAxisLabelShadow( int );
729  virtual void SetAxisLabelFontSize( int );
730  virtual void SetAxisLabelJustification( int );
733 
734 protected:
737 
738  vtkXYPlotActorConnections* InputConnectionHolder;
739  char** SelectedInputScalars; // list of data set arrays to plot
741  vtkXYPlotActorConnections *DataObjectInputConnectionHolder; //list of data objects to plot
742  char* Title;
743  char* XTitle;
745  int XValues;
748  int Logx;
751  double XRange[2];
752  double YRange[2];
753  double XComputedRange[2]; //range actually used by plot
754  double YComputedRange[2]; //range actually used by plot
755  int Border;
766  double TitlePosition[2];
768 
772 
775 
778 
779  double ViewportCoordinate[2];
780  double PlotCoordinate[2];
781 
782  //Handle data objects and datasets
788 
789  //The data drawn within the axes. Each curve is one polydata.
790  //color is controlled by scalar data. The curves are appended
791  //together, possibly glyphed with point symbols.
799 
800  // Legends and plot symbols. The legend also keeps track of
801  // the symbols and such.
802  int Legend;
803  double LegendPosition[2];
804  double LegendPosition2[2];
808  double GlyphSize;
809 
810  // Background box
811  int ChartBox;
819 
820  // Reference lines
825 
829 
830  // Keep track of changes.
831  int CachedSize[2];
833 
834  void ComputeXRange(double range[2], double *lengths);
835  void ComputeYRange(double range[2]);
836  void ComputeDORange(double xrange[2], double yrange[2], double *lengths);
837 
838  virtual void CreatePlotData(int *pos, int *pos2, double xRange[2],
839  double yRange[2], double *norms,
840  int numDS, int numDO);
841  void PlaceAxes(vtkViewport *viewport, int *size, int pos[2], int pos2[2]);
842  void GenerateClipPlanes(int *pos, int *pos2);
843  double ComputeGlyphScale(int i, int *pos, int *pos2);
844  void ClipPlotData(int *pos, int *pos2, vtkPolyData *pd);
845  double *TransformPoint(int pos[2], int pos2[2], double x[3], double xNew[3]);
846 
847 //BTX
849 //ETX
853 
854 private:
855  vtkXYPlotActor(const vtkXYPlotActor&); // Not implemented.
856  void operator=(const vtkXYPlotActor&); // Not implemented.
857 
858  bool DoesConnectionMatch(int i, vtkAlgorithmOutput* in);
859 
860  int IsInputPresent(vtkAlgorithmOutput* in,
861  const char* arrayName,
862  int component);
863 
865  int YTitleSize[2];
866 
868  int YTitlePosition;
869 
871 
872  int YTitleDelta;
873 };
875 
876 
877 #endif
vtkXYPlotActor::SetAxisTitleFontSize
virtual void SetAxisTitleFontSize(int)
vtkXYPlotActor::GetPlotColor
double * GetPlotColor(int i)
vtkXYPlotActor::ShowReferenceXLine
int ShowReferenceXLine
Definition: vtkXYPlotActor.h:821
vtkXYPlotActor::GetPlotLabel
const char * GetPlotLabel(int i)
vtkXYPlotActor::PlotData
vtkPolyData ** PlotData
Definition: vtkXYPlotActor.h:793
vtkRenderingAnnotationModule.h
vtkGetObjectMacro
#define vtkGetObjectMacro(name, type)
Definition: vtkSetGet.h:232
VTK_XYPLOT_VALUE
#define VTK_XYPLOT_VALUE
Definition: vtkXYPlotActor.h:99
vtkGlyphSource2D
create 2D glyphs represented by vtkPolyData
Definition: vtkGlyphSource2D.h:62
vtkXYPlotActor::SetAxisLabelShadow
virtual void SetAxisLabelShadow(int)
vtkXYPlotActor::XAxis
vtkAxisActor2D * XAxis
Definition: vtkXYPlotActor.h:773
vtkPolyDataMapper2D
draw vtkPolyData onto the image plane
Definition: vtkPolyDataMapper2D.h:51
vtkXYPlotActor::GetDataObjectPlotModeAsString
const char * GetDataObjectPlotModeAsString()
vtkXYPlotActor::SetLabelFormat
virtual void SetLabelFormat(const char *)
vtkSetVector2Macro
#define vtkSetVector2Macro(name, type)
Definition: vtkSetGet.h:254
vtkXYPlotActor::XTitle
char * XTitle
Definition: vtkXYPlotActor.h:743
vtkXYPlotActor::SetAxisLabelTextProperty
virtual void SetAxisLabelTextProperty(vtkTextProperty *p)
vtkXYPlotActor::ReverseYAxis
int ReverseYAxis
Definition: vtkXYPlotActor.h:762
vtkgl::b
GLboolean GLboolean GLboolean b
Definition: vtkgl.h:12312
vtkXYPlotActor::SetXAxisColor
virtual void SetXAxisColor(double, double, double)
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)
vtkGetVector2Macro
#define vtkGetVector2Macro(name, type)
Definition: vtkSetGet.h:270
vtkXYPlotActor::BuildTime
vtkTimeStamp BuildTime
Definition: vtkXYPlotActor.h:832
vtkXYPlotActor::GetYAxisActor2D
vtkAxisActor2D * GetYAxisActor2D()
Definition: vtkXYPlotActor.h:351
vtkXYPlotActor::SetPointComponent
void SetPointComponent(int i, int comp)
vtkXYPlotActor::RemoveAllDataSetInputConnections
void RemoveAllDataSetInputConnections()
vtkXYPlotActor::SetNumberOfXMinorTicks
void SetNumberOfXMinorTicks(int num)
vtkXYPlotActor::AddDataSetInput
void AddDataSetInput(vtkDataSet *ds)
Definition: vtkXYPlotActor.h:157
vtkXYPlotActor::SetYLabelFormat
virtual void SetYLabelFormat(const char *)
vtkDataObjectCollection
maintain an unordered list of data objects
Definition: vtkDataObjectCollection.h:34
vtkXYPlotActor::SetAxisTitleColor
virtual void SetAxisTitleColor(double, double, double)
vtkLegendBoxActor
draw symbols with text
Definition: vtkLegendBoxActor.h:61
vtkTimeStamp
record modification and/or execution time
Definition: vtkTimeStamp.h:35
vtkXYPlotActor::SetAxisLabelFontFamily
virtual void SetAxisLabelFontFamily(int)
vtkXYPlotActor::SetTitleShadow
virtual void SetTitleShadow(int)
vtkXYPlotActor::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
vtkXYPlotActor::GetNumberOfXMinorTicks
int GetNumberOfXMinorTicks()
vtkXYPlotActor::PlotActor
vtkActor2D ** PlotActor
Definition: vtkXYPlotActor.h:797
vtkXYPlotActor::TitleMapper
vtkTextMapper * TitleMapper
Definition: vtkXYPlotActor.h:769
vtkXYPlotActor::XValues
int XValues
Definition: vtkXYPlotActor.h:745
vtkXYPlotActor::SetPlotLabel
void SetPlotLabel(int i, const char *label)
vtkXYPlotActor::SetXValuesToArcLength
void SetXValuesToArcLength()
Definition: vtkXYPlotActor.h:198
vtkXYPlotActor::XLabelFormat
char * XLabelFormat
Definition: vtkXYPlotActor.h:749
vtkXYPlotActor::NumberOfXLabels
int NumberOfXLabels
Definition: vtkXYPlotActor.h:746
vtkXYPlotActor::Title
char * Title
Definition: vtkXYPlotActor.h:742
vtkXYPlotActor::SetAxisLabelBold
virtual void SetAxisLabelBold(int)
vtkTypeMacro
#define vtkTypeMacro(thisClass, superclass)
Definition: vtkSetGet.h:642
vtkGlyph2D
copy oriented and scaled glyph geometry to every input point (2D specialization)
Definition: vtkGlyph2D.h:39
vtkXYPlotActor::SetNumberOfYMinorTicks
void SetNumberOfYMinorTicks(int num)
vtkXYPlotActor::SetXValuesToValue
void SetXValuesToValue()
Definition: vtkXYPlotActor.h:201
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)
vtkgl::v
const GLdouble * v
Definition: vtkgl.h:11595
vtkXYPlotActor::SetAxisTitleBold
virtual void SetAxisTitleBold(int)
vtkXYPlotActor::GlyphSource
vtkGlyphSource2D * GlyphSource
Definition: vtkXYPlotActor.h:806
vtkgl::x
GLint GLint GLint GLint GLint x
Definition: vtkgl.h:11318
vtkXYPlotActor::ReferenceLinesPolyData
vtkPolyData * ReferenceLinesPolyData
Definition: vtkXYPlotActor.h:826
vtkXYPlotActor::SetYTitle
virtual void SetYTitle(const char *)
vtkXYPlotActor::ComputeGlyphScale
double ComputeGlyphScale(int i, int *pos, int *pos2)
vtkXYPlotActor::ChartBorderActor
vtkActor2D * ChartBorderActor
Definition: vtkXYPlotActor.h:818
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)
vtkXYPlotActor::AdjustTitlePosition
int AdjustTitlePosition
Definition: vtkXYPlotActor.h:765
vtkXYPlotActor::SetYTitlePositionToVCenter
void SetYTitlePositionToVCenter()
Definition: vtkXYPlotActor.h:670
vtkXYPlotActor::XComponent
vtkIntArray * XComponent
Definition: vtkXYPlotActor.h:784
vtkXYPlotActor::SetTitleFontSize
virtual void SetTitleFontSize(int)
vtkXYPlotActor::SetYTitlePositionToTop
void SetYTitlePositionToTop()
Definition: vtkXYPlotActor.h:662
vtkXYPlotActor::SetAxisTitleTextProperty
virtual void SetAxisTitleTextProperty(vtkTextProperty *p)
vtkXYPlotActor::RemoveDataObjectInputConnection
void RemoveDataObjectInputConnection(vtkAlgorithmOutput *aout)
vtkXYPlotActor::SetXLabelFormat
virtual void SetXLabelFormat(const char *)
vtkgl::input
GLenum GLenum GLenum input
Definition: vtkgl.h:15941
VTK_XYPLOT_Y_AXIS_TOP
#define VTK_XYPLOT_Y_AXIS_TOP
Definition: vtkXYPlotActor.h:104
vtkPlanes
implicit function for convex set of planes
Definition: vtkPlanes.h:54
vtkGetVectorMacro
#define vtkGetVectorMacro(name, type, count)
Definition: vtkSetGet.h:424
vtkXYPlotActor::SetTitleTextProperty
virtual void SetTitleTextProperty(vtkTextProperty *p)
vtkXYPlotActor::RemoveAllActiveCurves
virtual void RemoveAllActiveCurves()
vtkgl::range
GLenum GLint * range
Definition: vtkgl.h:14180
vtkgl::in
GLuint in
Definition: vtkgl.h:16905
vtkXYPlotActor::RemoveDataObjectInput
void RemoveDataObjectInput(vtkDataObject *in)
vtkXYPlotActor::RenderOverlay
int RenderOverlay(vtkViewport *)
vtkXYPlotActor::SetTitleVerticalJustification
virtual void SetTitleVerticalJustification(int)
vtkXYPlotActor::GetPlotPoints
int GetPlotPoints(int i)
VTK_XYPLOT_INDEX
#define VTK_XYPLOT_INDEX
Definition: vtkXYPlotActor.h:96
vtkXYPlotActor::PlotToViewportCoordinate
void PlotToViewportCoordinate(vtkViewport *viewport)
vtkXYPlotActor::TitleTextProperty
vtkTextProperty * TitleTextProperty
Definition: vtkXYPlotActor.h:771
vtkXYPlotActor::SetAxisTitleVerticalJustification
virtual void SetAxisTitleVerticalJustification(int)
vtkXYPlotActor::SetTitleBold
virtual void SetTitleBold(int)
vtkWindow
window superclass for vtkRenderWindow
Definition: vtkWindow.h:34
vtkXYPlotActor::SetAdjustYLabels
void SetAdjustYLabels(int adjust)
vtkXYPlotActor::HasTranslucentPolygonalGeometry
virtual int HasTranslucentPolygonalGeometry()
vtkXYPlotActor::SetXValuesToNormalizedArcLength
void SetXValuesToNormalizedArcLength()
Definition: vtkXYPlotActor.h:199
vtkXYPlotActor::YAxis
vtkAxisActor2D * YAxis
Definition: vtkXYPlotActor.h:774
vtkXYPlotActor::RemoveDataSetInputConnection
void RemoveDataSetInputConnection(vtkAlgorithmOutput *in)
Definition: vtkXYPlotActor.h:167
vtkXYPlotActor::PlotPoints
int PlotPoints
Definition: vtkXYPlotActor.h:757
vtkXYPlotActor::SetPlotGlyphType
virtual void SetPlotGlyphType(int, int)
vtkXYPlotActor::Legend
int Legend
Definition: vtkXYPlotActor.h:802
vtkXYPlotActor::PlotAppend
vtkAppendPolyData ** PlotAppend
Definition: vtkXYPlotActor.h:795
vtkAppendPolyData
appends one or more polygonal datasets together
Definition: vtkAppendPolyData.h:48
vtkX3D::position
@ position
Definition: vtkX3D.h:261
vtkSetClampMacro
#define vtkSetClampMacro(name, type, min, max)
Definition: vtkSetGet.h:143
vtkXYPlotActor::GetMTime
unsigned long GetMTime()
vtkXYPlotActor::SetAxisLabelItalic
virtual void SetAxisLabelItalic(int)
vtkXYPlotActor::TitleActor
vtkActor2D * TitleActor
Definition: vtkXYPlotActor.h:770
vtkXYPlotActor::SetAxisTitleItalic
virtual void SetAxisTitleItalic(int)
vtkTextMapper
2D text annotation
Definition: vtkTextMapper.h:53
vtkXYPlotActor::SetTitleJustification
virtual void SetTitleJustification(int)
vtkXYPlotActor::PlotGlyph
vtkGlyph2D ** PlotGlyph
Definition: vtkXYPlotActor.h:794
vtkXYPlotActor::ActiveCurveIndex
int ActiveCurveIndex
Definition: vtkXYPlotActor.h:851
vtkXYPlotActor::PlotLines
int PlotLines
Definition: vtkXYPlotActor.h:756
vtkXYPlotActor::ChartBoxMapper
vtkPolyDataMapper2D * ChartBoxMapper
Definition: vtkXYPlotActor.h:813
vtkXYPlotActor::PrintAsCSV
void PrintAsCSV(ostream &os)
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)
vtkXYPlotActor::GenerateClipPlanes
void GenerateClipPlanes(int *pos, int *pos2)
vtkXYPlotActor::DataObjectInputConnectionHolder
vtkXYPlotActorConnections * DataObjectInputConnectionHolder
Definition: vtkXYPlotActor.h:741
vtkXYPlotActor::AdjustYLabels
int AdjustYLabels
Definition: vtkXYPlotActor.h:764
vtkXYPlotActor::New
static vtkXYPlotActor * New()
vtkXYPlotActor::ComputeYRange
void ComputeYRange(double range[2])
vtkXYPlotActor::ExchangeAxes
int ExchangeAxes
Definition: vtkXYPlotActor.h:760
vtkXYPlotActor::SetDataObjectXComponent
void SetDataObjectXComponent(int i, int comp)
vtkXYPlotActor::GlyphSize
double GlyphSize
Definition: vtkXYPlotActor.h:808
vtkXYPlotActor::SetTitleItalic
virtual void SetTitleItalic(int)
VTK_XYPLOT_ARC_LENGTH
#define VTK_XYPLOT_ARC_LENGTH
Definition: vtkXYPlotActor.h:97
vtkXYPlotActor::AxisTitleTextProperty
vtkTextProperty * AxisTitleTextProperty
Definition: vtkXYPlotActor.h:776
vtkgl::num
GLuint GLuint num
Definition: vtkgl.h:16907
vtkXYPlotActor::ReferenceYValue
double ReferenceYValue
Definition: vtkXYPlotActor.h:824
vtkTextActor
An actor that displays text. Scaled or unscaled.
Definition: vtkTextActor.h:55
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkSetStringMacro
#define vtkSetStringMacro(name)
Definition: vtkSetGet.h:104
vtkIntArray
dynamic, self-adjusting array of int
Definition: vtkIntArray.h:53
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:812
vtkXYPlotActor::SelectedInputScalars
char ** SelectedInputScalars
Definition: vtkXYPlotActor.h:739
vtkXYPlotActor::RenderOpaqueGeometry
int RenderOpaqueGeometry(vtkViewport *)
vtkXYPlotActor::LinesOn
vtkIntArray * LinesOn
Definition: vtkXYPlotActor.h:786
vtkXYPlotActor::ReferenceLinesActor
vtkActor2D * ReferenceLinesActor
Definition: vtkXYPlotActor.h:828
vtkXYPlotActor::ReferenceXValue
double ReferenceXValue
Definition: vtkXYPlotActor.h:823
vtkXYPlotActor::ComputeDORange
void ComputeDORange(double xrange[2], double yrange[2], double *lengths)
vtkXYPlotActor::SetXTitlePosition
void SetXTitlePosition(double position)
vtkXYPlotActor::PlotColorIndex
int PlotColorIndex
Definition: vtkXYPlotActor.h:852
vtkXYPlotActor::SetAxisTitleJustification
virtual void SetAxisTitleJustification(int)
vtkGetMacro
#define vtkGetMacro(name, type)
Definition: vtkSetGet.h:93
vtkXYPlotActor::SetTitleFontFamily
virtual void SetTitleFontFamily(int)
vtkXYPlotActor::SetAxisTitleFontFamily
virtual void SetAxisTitleFontFamily(int)
vtkGetStringMacro
vtkGetStringMacro(ExtensionsString)
vtkgl::color
GLuint color
Definition: vtkgl.h:12351
vtkXYPlotActor::SetPlotColor
void SetPlotColor(int i, double r, double g, double b)
vtkXYPlotActor::AddDataSetInputConnection
void AddDataSetInputConnection(vtkAlgorithmOutput *in)
Definition: vtkXYPlotActor.h:159
vtkXYPlotActor::GetYTitle
char * GetYTitle()
vtkXYPlotActor::SetLegendBox
virtual void SetLegendBox(int)
vtkXYPlotActor::NumberOfInputs
int NumberOfInputs
Definition: vtkXYPlotActor.h:792
vtkXYPlotActor::PlaceAxes
void PlaceAxes(vtkViewport *viewport, int *size, int pos[2], int pos2[2])
vtkViewport
abstract specification for Viewports
Definition: vtkViewport.h:47
vtkXYPlotActor::PointsOn
vtkIntArray * PointsOn
Definition: vtkXYPlotActor.h:787
VTK_XYPLOT_Y_AXIS_HCENTER
#define VTK_XYPLOT_Y_AXIS_HCENTER
Definition: vtkXYPlotActor.h:105
vtkXYPlotActor::SetAxisLabelColor
virtual void SetAxisLabelColor(double, double, double)
vtkXYPlotActor::GetChartBoxProperty
vtkProperty2D * GetChartBoxProperty()
Definition: vtkXYPlotActor.h:597
vtkXYPlotActor::YLabelFormat
char * YLabelFormat
Definition: vtkXYPlotActor.h:750
VTK_XYPLOT_ROW
#define VTK_XYPLOT_ROW
Definition: vtkXYPlotActor.h:101
vtkXYPlotActor::SetAdjustXLabels
void SetAdjustXLabels(int adjust)
vtkXYPlotActor::RenderTranslucentPolygonalGeometry
virtual int RenderTranslucentPolygonalGeometry(vtkViewport *)
Definition: vtkXYPlotActor.h:638
vtkXYPlotActor::ChartBorderPolyData
vtkPolyData * ChartBorderPolyData
Definition: vtkXYPlotActor.h:816
vtkXYPlotActor::InitializeEntries
void InitializeEntries()
vtkXYPlotActor::LegendActor
vtkLegendBoxActor * LegendActor
Definition: vtkXYPlotActor.h:805
vtkXYPlotActor::Logx
int Logx
Definition: vtkXYPlotActor.h:748
vtkDataSet
abstract class to specify dataset behavior
Definition: vtkDataSet.h:62
vtkTextProperty
represent text properties.
Definition: vtkTextProperty.h:39
vtkBooleanMacro
vtkBooleanMacro(IgnoreDriverBugs, bool)
vtkXYPlotActor
generate an x-y plot from input dataset(s) or field data
Definition: vtkXYPlotActor.h:133
vtkXYPlotActor::ChartBoxActor
vtkActor2D * ChartBoxActor
Definition: vtkXYPlotActor.h:814
vtkSetMacro
vtkSetMacro(IgnoreDriverBugs, bool)
vtkXYPlotActor::ChartBox
int ChartBox
Definition: vtkXYPlotActor.h:811
vtkXYPlotActor::SetXValuesToIndex
void SetXValuesToIndex()
Definition: vtkXYPlotActor.h:197
vtkProperty2D
represent surface properties of a 2D image
Definition: vtkProperty2D.h:40
vtkXYPlotActor::ReferenceLinesMapper
vtkPolyDataMapper2D * ReferenceLinesMapper
Definition: vtkXYPlotActor.h:827
vtkgl::r
GLdouble GLdouble GLdouble r
Definition: vtkgl.h:11610
vtkActor2D
a actor that draws 2D data
Definition: vtkActor2D.h:45
vtkXYPlotActor::SetDataObjectYComponent
void SetDataObjectYComponent(int i, int comp)
vtkActor2D.h
vtkXYPlotActor::SetDataObjectPlotModeToColumns
void SetDataObjectPlotModeToColumns()
Definition: vtkXYPlotActor.h:229
vtkgl::lengths
GLsizei GLenum GLenum GLuint GLenum GLsizei * lengths
Definition: vtkgl.h:14417
vtkgl::g
GLboolean GLboolean g
Definition: vtkgl.h:12312
vtkXYPlotActor::DataObjectPlotMode
int DataObjectPlotMode
Definition: vtkXYPlotActor.h:783
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:39
vtkXYPlotActor::AddDataSetInputConnection
void AddDataSetInputConnection(vtkAlgorithmOutput *in, const char *arrayName, int component)
vtkXYPlotActor::GetLabelFormat
const char * GetLabelFormat()
Definition: vtkXYPlotActor.h:500
vtkXYPlotActor::ViewportToPlotCoordinate
void ViewportToPlotCoordinate(vtkViewport *viewport)
vtkXYPlotActor::ReverseXAxis
int ReverseXAxis
Definition: vtkXYPlotActor.h:761
vtkXYPlotActor::vtkXYPlotActor
vtkXYPlotActor()
VTK_XYPLOT_COLUMN
#define VTK_XYPLOT_COLUMN
Definition: vtkXYPlotActor.h:102
VTK_XYPLOT_Y_AXIS_VCENTER
#define VTK_XYPLOT_Y_AXIS_VCENTER
Definition: vtkXYPlotActor.h:106
vtkXYPlotActor::RemoveDataSetInput
void RemoveDataSetInput(vtkDataSet *ds)
Definition: vtkXYPlotActor.h:165
vtkXYPlotActor::YTitleActor
vtkTextActor * YTitleActor
Definition: vtkXYPlotActor.h:744
vtkPolyData
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:84
vtkAxisActor2D
Create an axis with tick marks and labels.
Definition: vtkAxisActor2D.h:74
vtkXYPlotActor::GetPlotLines
int GetPlotLines(int i)
vtkXYPlotActor::GetXValuesAsString
const char * GetXValuesAsString()
vtkXYPlotActor::GetXAxisActor2D
vtkAxisActor2D * GetXAxisActor2D()
Definition: vtkXYPlotActor.h:347
vtkDataSetCollection
maintain an unordered list of dataset objects
Definition: vtkDataSetCollection.h:31
vtkXYPlotActor::GetDataObjectXComponent
int GetDataObjectXComponent(int i)
vtkXYPlotActor::YAxisTitleSize
int YAxisTitleSize
Definition: vtkXYPlotActor.h:850
vtkXYPlotActor::SetPlotPoints
void SetPlotPoints(int i, int)
vtkXYPlotActor::GetXTitlePosition
double GetXTitlePosition()
vtkgl::p
GLfloat GLfloat p
Definition: vtkgl.h:15717
vtkXYPlotActor::SetLineWidth
virtual void SetLineWidth(double)
vtkXYPlotActor::SetPlotColor
void SetPlotColor(int i, const double color[3])
Definition: vtkXYPlotActor.h:263
vtkXYPlotActor::ShowReferenceYLine
int ShowReferenceYLine
Definition: vtkXYPlotActor.h:822
vtkDoubleArray
dynamic, self-adjusting array of double
Definition: vtkDoubleArray.h:49
vtkXYPlotActor::ReleaseGraphicsResources
void ReleaseGraphicsResources(vtkWindow *)
vtkXYPlotActor::SetTitleColor
virtual void SetTitleColor(double, double, double)
vtkXYPlotActor::InputConnectionHolder
vtkXYPlotActorConnections * InputConnectionHolder
Definition: vtkXYPlotActor.h:738
vtkXYPlotActor::AxisLabelTextProperty
vtkTextProperty * AxisLabelTextProperty
Definition: vtkXYPlotActor.h:777
vtkXYPlotActor::PlotMapper
vtkPolyDataMapper2D ** PlotMapper
Definition: vtkXYPlotActor.h:796
vtkXYPlotActor::AdjustXLabels
int AdjustXLabels
Definition: vtkXYPlotActor.h:763
vtkXYPlotActor::NumberOfYLabels
int NumberOfYLabels
Definition: vtkXYPlotActor.h:747
vtkXYPlotActor::Border
int Border
Definition: vtkXYPlotActor.h:755
vtkXYPlotActor::ClipPlotData
void ClipPlotData(int *pos, int *pos2, vtkPolyData *pd)
vtkXYPlotActor::GetDataObjectYComponent
int GetDataObjectYComponent(int i)
vtkXYPlotActor::SetLegendBorder
virtual void SetLegendBorder(int)
vtkXYPlotActor::AdjustTitlePositionMode
int AdjustTitlePositionMode
Definition: vtkXYPlotActor.h:767
vtkDataObject
general representation of visualization data
Definition: vtkDataObject.h:65
vtkXYPlotActor::GetPlotSymbol
vtkPolyData * GetPlotSymbol(int i)
vtkXYPlotActor::PlotCurvePoints
int PlotCurvePoints
Definition: vtkXYPlotActor.h:759
vtkXYPlotActor::ActiveCurve
vtkSmartPointer< vtkDoubleArray > ActiveCurve
Definition: vtkXYPlotActor.h:848
vtkXYPlotActor::SetNumberOfLabels
void SetNumberOfLabels(int num)
Definition: vtkXYPlotActor.h:382
vtkXYPlotActor::IsInPlot
int IsInPlot(vtkViewport *viewport, double u, double v)
vtkXYPlotActor::ViewportToPlotCoordinate
void ViewportToPlotCoordinate(vtkViewport *viewport, double &u, double &v)
vtkXYPlotActor::YComponent
vtkIntArray * YComponent
Definition: vtkXYPlotActor.h:785
vtkXYPlotActor::ChartBorder
int ChartBorder
Definition: vtkXYPlotActor.h:815
vtkXYPlotActor::SetYTitlePositionToHCenter
void SetYTitlePositionToHCenter()
Definition: vtkXYPlotActor.h:666
VTK_XYPLOT_NORMALIZED_ARC_LENGTH
#define VTK_XYPLOT_NORMALIZED_ARC_LENGTH
Definition: vtkXYPlotActor.h:98
vtkXYPlotActor::Alignment
Alignment
Definition: vtkXYPlotActor.h:431
vtkXYPlotActor::SetDataObjectPlotModeToRows
void SetDataObjectPlotModeToRows()
Definition: vtkXYPlotActor.h:227
vtkXYPlotActor::ClipPlanes
vtkPlanes * ClipPlanes
Definition: vtkXYPlotActor.h:807
vtkXYPlotActor::SetPlotLines
void SetPlotLines(int i, int)
vtkXYPlotActor::SetPlotRange
void SetPlotRange(double xmin, double ymin, double xmax, double ymax)
Definition: vtkXYPlotActor.h:368
VTKRENDERINGANNOTATION_EXPORT
#define VTKRENDERINGANNOTATION_EXPORT
Definition: vtkRenderingAnnotationModule.h:15
vtkXYPlotActor::SetAxisLabelJustification
virtual void SetAxisLabelJustification(int)
vtkgl::size
GLsizeiptr size
Definition: vtkgl.h:11843
vtkXYPlotActor::SelectedInputScalarsComponent
vtkIntArray * SelectedInputScalarsComponent
Definition: vtkXYPlotActor.h:740
vtkXYPlotActor::ChartBorderMapper
vtkPolyDataMapper2D * ChartBorderMapper
Definition: vtkXYPlotActor.h:817
vtkXYPlotActor::PlotCurveLines
int PlotCurveLines
Definition: vtkXYPlotActor.h:758