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 =========================================================================*/
88 #ifndef vtkXYPlotActor_h
89 #define vtkXYPlotActor_h
90 
91 #define VTK_XYPLOT_INDEX 0
92 #define VTK_XYPLOT_ARC_LENGTH 1
93 #define VTK_XYPLOT_NORMALIZED_ARC_LENGTH 2
94 #define VTK_XYPLOT_VALUE 3
95 
96 #define VTK_XYPLOT_ROW 0
97 #define VTK_XYPLOT_COLUMN 1
98 
99 #define VTK_XYPLOT_Y_AXIS_TOP 0
100 #define VTK_XYPLOT_Y_AXIS_HCENTER 1
101 #define VTK_XYPLOT_Y_AXIS_VCENTER 2 // rotate by 90 degrees (y-axis aligned)
102 
103 #include "vtkRenderingAnnotationModule.h" // For export macro
104 #include "vtkActor2D.h"
105 #include "vtkSmartPointer.h" // For SP
106 
107 class vtkXYPlotActorConnections;
108 class vtkAlgorithmOutput;
109 class vtkAppendPolyData;
110 class vtkAxisActor2D;
111 class vtkDataObject;
113 class vtkDataSet;
115 class vtkDoubleArray;
116 class vtkGlyph2D;
117 class vtkGlyphSource2D;
118 class vtkIntArray;
119 class vtkLegendBoxActor;
120 class vtkPlanes;
121 class vtkPolyData;
122 class vtkPolyDataMapper2D;
123 class vtkTextActor;
124 class vtkTextMapper;
125 class vtkTextProperty;
126 
127 class VTKRENDERINGANNOTATION_EXPORT vtkXYPlotActor : public vtkActor2D
128 {
129 public:
130  vtkTypeMacro(vtkXYPlotActor,vtkActor2D);
131  void PrintSelf(ostream& os, vtkIndent indent) override;
132 
139  static vtkXYPlotActor *New();
140 
141  //---Data Set Input----------------------------------------------------------
142  // The following methods are used to plot input datasets. Datasets
143  // will be plotted if set as input; otherwise the input data objects
144  // will be plotted (if defined).
145 
147 
155  void AddDataSetInput(vtkDataSet *ds, const char* arrayName, int component);
156  void AddDataSetInput(vtkDataSet *ds) {this->AddDataSetInput(ds, nullptr, 0);}
157  void AddDataSetInputConnection(vtkAlgorithmOutput *in, const char* arrayName, int component);
160 
162 
165  void RemoveDataSetInput(vtkDataSet *ds, const char* arrayName, int component);
166  void RemoveDataSetInput(vtkDataSet *ds) {this->RemoveDataSetInput(ds, nullptr, 0);}
167  void RemoveDataSetInputConnection(vtkAlgorithmOutput *in, const char* arrayName, int component);
169  {
170  this->RemoveDataSetInputConnection(in, nullptr, 0);
171  }
173 
178  void RemoveAllDataSetInputConnections();
179 
181 
185  void SetPointComponent(int i, int comp);
186  int GetPointComponent(int i);
187  //---end Data Set Input-----------------------------------------------------
189 
191 
201  vtkSetClampMacro(XValues,int,VTK_XYPLOT_INDEX,VTK_XYPLOT_VALUE);
202  vtkGetMacro(XValues,int);
203  void SetXValuesToIndex(){this->SetXValues(VTK_XYPLOT_INDEX);};
204  void SetXValuesToArcLength() {this->SetXValues(VTK_XYPLOT_ARC_LENGTH);};
206  {this->SetXValues(VTK_XYPLOT_NORMALIZED_ARC_LENGTH);};
207  void SetXValuesToValue() {this->SetXValues(VTK_XYPLOT_VALUE);};
208  const char *GetXValuesAsString();
210 
211  //---Data Object Input------------------------------------------------------
212  // The following methods are used to plot input data objects. Datasets will
213  // be plotted in preference to data objects if set as input; otherwise the
214  // input data objects will be plotted (if defined).
215 
217 
220  void AddDataObjectInput(vtkDataObject *in);
221  void AddDataObjectInputConnection(vtkAlgorithmOutput *alg);
223 
225 
228  void RemoveDataObjectInputConnection(vtkAlgorithmOutput *aout);
229  void RemoveDataObjectInput(vtkDataObject *in);
231 
233 
238  vtkSetClampMacro(DataObjectPlotMode,int,VTK_XYPLOT_ROW,VTK_XYPLOT_COLUMN);
239  vtkGetMacro(DataObjectPlotMode,int);
241  {this->SetDataObjectPlotMode(VTK_XYPLOT_ROW);}
243  {this->SetDataObjectPlotMode(VTK_XYPLOT_COLUMN);}
244  const char *GetDataObjectPlotModeAsString();
246 
248 
256  void SetDataObjectXComponent(int i, int comp);
257  int GetDataObjectXComponent(int i);
259 
261 
269  void SetDataObjectYComponent(int i, int comp);
270  int GetDataObjectYComponent(int i);
271  //---end Data Object Input--------------------------------------------------
273 
274  //---Per Curve Properties---------------------------------------------------
275  // The following methods are used to set properties on each curve that is
276  // plotted. Each input dataset (or data object) results in one curve. The
277  // methods that follow have an index i that corresponds to the input dataset
278  // or data object.
279  void SetPlotColor(int i, double r, double g, double b);
280  void SetPlotColor(int i, const double color[3]) {
281  this->SetPlotColor(i, color[0], color[1], color[2]); };
282  double *GetPlotColor(int i) VTK_SIZEHINT(3);
283  void SetPlotSymbol(int i,vtkPolyData *input);
284  vtkPolyData *GetPlotSymbol(int i);
285  void SetPlotLabel(int i, const char *label);
286  const char *GetPlotLabel(int i);
287 
288  // Allow per-curve specification of line and point rendering. These override
289  // global settings PlotPoints and PlotLines. If not on, the default behavior
290  // is governed by PlotPoints and PlotLines ivars.
291  vtkGetMacro(PlotCurvePoints, vtkTypeBool);
292  vtkSetMacro(PlotCurvePoints, vtkTypeBool);
293  vtkBooleanMacro(PlotCurvePoints, vtkTypeBool);
294 
295  vtkGetMacro(PlotCurveLines, vtkTypeBool);
296  vtkSetMacro(PlotCurveLines, vtkTypeBool);
297  vtkBooleanMacro(PlotCurveLines, vtkTypeBool);
298 
299  void SetPlotLines(int i, int);
300  int GetPlotLines(int i);
301 
302  void SetPlotPoints(int i, int);
303  int GetPlotPoints(int i);
304  //---end Per Curve Properties-----------------------------------------------
305 
307 
311  vtkSetMacro(ExchangeAxes, vtkTypeBool);
312  vtkGetMacro(ExchangeAxes, vtkTypeBool);
313  vtkBooleanMacro(ExchangeAxes, vtkTypeBool);
315 
317 
322  vtkSetMacro(ReverseXAxis, vtkTypeBool);
323  vtkGetMacro(ReverseXAxis, vtkTypeBool);
324  vtkBooleanMacro(ReverseXAxis, vtkTypeBool);
326 
328 
333  vtkSetMacro(ReverseYAxis, vtkTypeBool);
334  vtkGetMacro(ReverseYAxis, vtkTypeBool);
335  vtkBooleanMacro(ReverseYAxis, vtkTypeBool);
337 
339 
345  vtkGetObjectMacro(LegendActor,vtkLegendBoxActor);
346  vtkGetObjectMacro(GlyphSource,vtkGlyphSource2D);
348 
350 
353  vtkSetStringMacro(Title);
354  vtkGetStringMacro(Title);
356 
358 
361  vtkSetStringMacro(XTitle);
362  vtkGetStringMacro(XTitle);
364 
366 
369  virtual void SetYTitle( const char* );
370  char* GetYTitle();
372 
374 
379  {
380  return this->XAxis;
381  }
383  {
384  return this->YAxis;
385  }
387 
389 
397  vtkSetVector2Macro(XRange,double);
398  vtkGetVectorMacro(XRange,double,2);
399  vtkSetVector2Macro(YRange,double);
400  vtkGetVectorMacro(YRange,double,2);
401  void SetPlotRange(double xmin, double ymin, double xmax, double ymax)
402  {this->SetXRange(xmin,xmax); this->SetYRange(ymin,ymax);}
404 
406 
412  vtkSetClampMacro(NumberOfXLabels, int, 0, 50);
413  vtkGetMacro(NumberOfXLabels, int);
414  vtkSetClampMacro(NumberOfYLabels, int, 0, 50);
415  vtkGetMacro(NumberOfYLabels, int);
416  void SetNumberOfLabels(int num)
417  {this->SetNumberOfXLabels(num); this->SetNumberOfYLabels(num);}
419 
421 
428  void SetAdjustXLabels(int adjust);
429  vtkGetMacro( AdjustXLabels, int );
430  void SetAdjustYLabels(int adjust);
431  vtkGetMacro( AdjustYLabels, int );
433 
435 
438  void SetNumberOfXMinorTicks(int num);
439  int GetNumberOfXMinorTicks();
440  void SetNumberOfYMinorTicks(int num);
441  int GetNumberOfYMinorTicks();
443 
445 
450  vtkSetMacro(Legend, vtkTypeBool);
451  vtkGetMacro(Legend, vtkTypeBool);
452  vtkBooleanMacro(Legend, vtkTypeBool);
454 
456 
460  vtkSetVector2Macro(TitlePosition,double);
461  vtkGetVector2Macro(TitlePosition,double);
463 
465 
469  vtkSetMacro(AdjustTitlePosition, vtkTypeBool);
470  vtkGetMacro(AdjustTitlePosition, vtkTypeBool);
471  vtkBooleanMacro(AdjustTitlePosition, vtkTypeBool);
473 
474 enum Alignment {
475  AlignLeft = 0x1,
476  AlignRight = 0x2,
477  AlignHCenter = 0x4,
478  AlignTop = 0x10,
479  AlignBottom = 0x20,
480  AlignVCenter = 0x40,
481  AlignAxisLeft = 0x100,
482  AlignAxisRight = 0x200,
483  AlignAxisHCenter = 0x400,
484  AlignAxisTop = 0x1000,
485  AlignAxisBottom = 0x2000,
486  AlignAxisVCenter = 0x4000
487 };
488 
490 
497  vtkSetMacro(AdjustTitlePositionMode, int);
498  vtkGetMacro(AdjustTitlePositionMode, int);
500 
502 
510  vtkSetVector2Macro(LegendPosition,double);
511  vtkGetVector2Macro(LegendPosition,double);
512  vtkSetVector2Macro(LegendPosition2,double);
513  vtkGetVector2Macro(LegendPosition2,double);
515 
517 
520  virtual void SetTitleTextProperty(vtkTextProperty *p);
521  vtkGetObjectMacro(TitleTextProperty,vtkTextProperty);
523 
525 
529  virtual void SetAxisTitleTextProperty(vtkTextProperty *p);
530  vtkGetObjectMacro(AxisTitleTextProperty,vtkTextProperty);
532 
534 
538  virtual void SetAxisLabelTextProperty(vtkTextProperty *p);
539  vtkGetObjectMacro(AxisLabelTextProperty,vtkTextProperty);
541 
543 
546  vtkSetMacro(Logx, vtkTypeBool);
547  vtkGetMacro(Logx, vtkTypeBool);
548  vtkBooleanMacro(Logx, vtkTypeBool);
550 
552 
556  virtual void SetLabelFormat ( const char* );
557  const char* GetLabelFormat()
558  {
559  return this->GetXLabelFormat();
560  }
562 
564 
567  virtual void SetXLabelFormat ( const char* );
568  vtkGetStringMacro(XLabelFormat);
570 
572 
575  virtual void SetYLabelFormat ( const char* );
576  vtkGetStringMacro(YLabelFormat);
578 
580 
584  vtkSetClampMacro(Border, int, 0, 50);
585  vtkGetMacro(Border, int);
587 
589 
594  vtkGetMacro(PlotPoints, vtkTypeBool);
595  vtkSetMacro(PlotPoints, vtkTypeBool);
596  vtkBooleanMacro(PlotPoints, vtkTypeBool);
598 
600 
604  vtkGetMacro(PlotLines, vtkTypeBool);
605  vtkSetMacro(PlotLines, vtkTypeBool);
606  vtkBooleanMacro(PlotLines, vtkTypeBool);
608 
610 
615  vtkSetClampMacro(GlyphSize, double, 0.0, 0.2);
616  vtkGetMacro(GlyphSize, double);
618 
623  void ViewportToPlotCoordinate(vtkViewport *viewport, double &u, double &v);
624 
626 
631  void ViewportToPlotCoordinate(vtkViewport *viewport);
632  vtkSetVector2Macro(PlotCoordinate,double);
633  vtkGetVector2Macro(PlotCoordinate,double);
635 
639  void PlotToViewportCoordinate(vtkViewport *viewport, double &u, double &v);
640 
642 
648  void PlotToViewportCoordinate(vtkViewport *viewport);
649  vtkSetVector2Macro(ViewportCoordinate,double);
650  vtkGetVector2Macro(ViewportCoordinate,double);
652 
657  int IsInPlot(vtkViewport *viewport, double u, double v);
658 
660 
664  vtkSetMacro(ChartBox, vtkTypeBool);
665  vtkGetMacro(ChartBox, vtkTypeBool);
666  vtkBooleanMacro(ChartBox, vtkTypeBool);
668 
670 
674  vtkSetMacro(ChartBorder, vtkTypeBool);
675  vtkGetMacro(ChartBorder, vtkTypeBool);
676  vtkBooleanMacro(ChartBorder, vtkTypeBool);
678 
682  vtkProperty2D* GetChartBoxProperty() { return this->ChartBoxActor->GetProperty(); };
683 
685 
688  vtkSetMacro(ShowReferenceXLine, vtkTypeBool);
689  vtkGetMacro(ShowReferenceXLine, vtkTypeBool);
690  vtkBooleanMacro(ShowReferenceXLine, vtkTypeBool);
692 
694 
697  vtkSetMacro(ReferenceXValue, double);
698  vtkGetMacro(ReferenceXValue, double);
700 
702 
705  vtkSetMacro(ShowReferenceYLine, vtkTypeBool);
706  vtkGetMacro(ShowReferenceYLine, vtkTypeBool);
707  vtkBooleanMacro(ShowReferenceYLine, vtkTypeBool);
709 
711 
714  vtkSetMacro(ReferenceYValue, double);
715  vtkGetMacro(ReferenceYValue, double);
717 
721  vtkMTimeType GetMTime() override;
722 
726  void PrintAsCSV(ostream &os);
727 
729 
734  int RenderOpaqueGeometry(vtkViewport*) override;
735  int RenderOverlay(vtkViewport*) override;
738 
742  int HasTranslucentPolygonalGeometry() override;
743 
749  void ReleaseGraphicsResources(vtkWindow *) override;
750 
752 
755  void SetXTitlePosition(double position);
756  double GetXTitlePosition();
758 
760 
763  vtkSetMacro(YTitlePosition,int);
764  vtkGetMacro(YTitlePosition,int);
766  {
767  this->SetYTitlePosition( VTK_XYPLOT_Y_AXIS_TOP );
768  }
770  {
771  this->SetYTitlePosition( VTK_XYPLOT_Y_AXIS_HCENTER );
772  }
774  {
775  this->SetYTitlePosition( VTK_XYPLOT_Y_AXIS_VCENTER );
776  }
778 
780 
783  virtual void SetPlotGlyphType( int, int );
784  virtual void SetLineWidth( double );
785  virtual void AddUserCurvesPoint( double, double, double );
786  virtual void RemoveAllActiveCurves();
788 
790 
793  virtual void SetLegendBorder( int );
794  virtual void SetLegendBox( int );
795  virtual void SetLegendUseBackground( int );
796  virtual void SetLegendBackgroundColor( double, double, double );
798 
800 
803  virtual void SetTitleColor( double, double, double );
804  virtual void SetTitleFontFamily( int );
805  virtual void SetTitleBold( int );
806  virtual void SetTitleItalic( int );
807  virtual void SetTitleShadow( int );
808  virtual void SetTitleFontSize( int );
809  virtual void SetTitleJustification( int );
810  virtual void SetTitleVerticalJustification( int );
812 
814 
817  virtual void SetXAxisColor( double, double, double );
818  virtual void SetYAxisColor( double, double, double );
820 
822 
825  virtual void SetAxisTitleColor( double, double, double );
826  virtual void SetAxisTitleFontFamily( int );
827  virtual void SetAxisTitleBold( int );
828  virtual void SetAxisTitleItalic( int );
829  virtual void SetAxisTitleShadow( int );
830  virtual void SetAxisTitleFontSize( int );
831  virtual void SetAxisTitleJustification( int );
832  virtual void SetAxisTitleVerticalJustification( int );
834 
836 
839  virtual void SetAxisLabelColor( double, double, double );
840  virtual void SetAxisLabelFontFamily( int );
841  virtual void SetAxisLabelBold( int );
842  virtual void SetAxisLabelItalic( int );
843  virtual void SetAxisLabelShadow( int );
844  virtual void SetAxisLabelFontSize( int );
845  virtual void SetAxisLabelJustification( int );
846  virtual void SetAxisLabelVerticalJustification( int );
848 
849 protected:
850  vtkXYPlotActor();
851  ~vtkXYPlotActor() override;
852 
853  vtkXYPlotActorConnections* InputConnectionHolder;
854  char** SelectedInputScalars; // list of data set arrays to plot
856  vtkXYPlotActorConnections *DataObjectInputConnectionHolder; //list of data objects to plot
857  char* Title;
858  char* XTitle;
860  int XValues;
866  double XRange[2];
867  double YRange[2];
868  double XComputedRange[2]; //range actually used by plot
869  double YComputedRange[2]; //range actually used by plot
870  int Border;
881  double TitlePosition[2];
883 
887 
890 
893 
894  double ViewportCoordinate[2];
895  double PlotCoordinate[2];
896 
897  //Handle data objects and datasets
903 
904  //The data drawn within the axes. Each curve is one polydata.
905  //color is controlled by scalar data. The curves are appended
906  //together, possibly glyphed with point symbols.
913  void InitializeEntries();
914 
915  // Legends and plot symbols. The legend also keeps track of
916  // the symbols and such.
918  double LegendPosition[2];
919  double LegendPosition2[2];
923  double GlyphSize;
924 
925  // Background box
934 
935  // Reference lines
940 
944 
945  // Keep track of changes.
946  int CachedSize[2];
948 
949  void ComputeXRange(double range[2], double *lengths);
950  void ComputeYRange(double range[2]);
951  void ComputeDORange(double xrange[2], double yrange[2], double *lengths);
952 
953  virtual void CreatePlotData(int *pos, int *pos2, double xRange[2],
954  double yRange[2], double *norms,
955  int numDS, int numDO);
956  void PlaceAxes(vtkViewport *viewport, int *size, int pos[2], int pos2[2]);
957  void GenerateClipPlanes(int *pos, int *pos2);
958  double ComputeGlyphScale(int i, int *pos, int *pos2);
959  void ClipPlotData(int *pos, int *pos2, vtkPolyData *pd);
960  double *TransformPoint(int pos[2], int pos2[2], double x[3], double xNew[3]);
961 
963 
967 
968 private:
969  vtkXYPlotActor(const vtkXYPlotActor&) = delete;
970  void operator=(const vtkXYPlotActor&) = delete;
971 
972  bool DoesConnectionMatch(int i, vtkAlgorithmOutput* in);
973 
974  int IsInputPresent(vtkAlgorithmOutput* in,
975  const char* arrayName,
976  int component);
977 
981  int YTitleSize[2];
982 
986  int YTitlePosition;
987 
989 
992  int YTitleDelta;
993 };
995 
996 
997 #endif
vtkXYPlotActor::PlotData
vtkPolyData ** PlotData
Definition: vtkXYPlotActor.h:908
vtkActor2D::RenderOpaqueGeometry
int RenderOpaqueGeometry(vtkViewport *viewport) override
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE DO NOT USE THESE METHODS OUTSIDE OF THE RENDE...
VTK_XYPLOT_VALUE
#define VTK_XYPLOT_VALUE
Definition: vtkXYPlotActor.h:94
vtkGlyphSource2D
create 2D glyphs represented by vtkPolyData
Definition: vtkGlyphSource2D.h:56
vtkXYPlotActor::XAxis
vtkAxisActor2D * XAxis
Definition: vtkXYPlotActor.h:888
vtkPolyDataMapper2D
draw vtkPolyData onto the image plane
Definition: vtkPolyDataMapper2D.h:45
vtkXYPlotActor::XTitle
char * XTitle
Definition: vtkXYPlotActor.h:858
vtkXYPlotActor::Legend
vtkTypeBool Legend
Definition: vtkXYPlotActor.h:917
vtkX3D::component
Definition: vtkX3D.h:175
vtkXYPlotActor::BuildTime
vtkTimeStamp BuildTime
Definition: vtkXYPlotActor.h:947
vtkXYPlotActor::GetYAxisActor2D
vtkAxisActor2D * GetYAxisActor2D()
Definition: vtkXYPlotActor.h:382
vtkXYPlotActor::AddDataSetInput
void AddDataSetInput(vtkDataSet *ds)
Definition: vtkXYPlotActor.h:156
vtkDataObjectCollection
maintain an unordered list of data objects
Definition: vtkDataObjectCollection.h:31
vtkXYPlotActor::ShowReferenceYLine
vtkTypeBool ShowReferenceYLine
Definition: vtkXYPlotActor.h:937
vtkLegendBoxActor
draw symbols with text
Definition: vtkLegendBoxActor.h:58
vtkTimeStamp
record modification and/or execution time
Definition: vtkTimeStamp.h:32
vtkXYPlotActor::PlotActor
vtkActor2D ** PlotActor
Definition: vtkXYPlotActor.h:912
vtkXYPlotActor::TitleMapper
vtkTextMapper * TitleMapper
Definition: vtkXYPlotActor.h:884
vtkXYPlotActor::XValues
int XValues
Definition: vtkXYPlotActor.h:860
vtkXYPlotActor::SetXValuesToArcLength
void SetXValuesToArcLength()
Definition: vtkXYPlotActor.h:204
vtkXYPlotActor::XLabelFormat
char * XLabelFormat
Definition: vtkXYPlotActor.h:864
vtkXYPlotActor::NumberOfXLabels
int NumberOfXLabels
Definition: vtkXYPlotActor.h:861
vtkXYPlotActor::Title
char * Title
Definition: vtkXYPlotActor.h:857
vtkActor2D::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkGlyph2D
copy oriented and scaled glyph geometry to every input point (2D specialization)
Definition: vtkGlyph2D.h:36
vtkX3D::range
Definition: vtkX3D.h:238
vtkXYPlotActor::SetXValuesToValue
void SetXValuesToValue()
Definition: vtkXYPlotActor.h:207
vtkSmartPointer< vtkDoubleArray >
vtkXYPlotActor::GlyphSource
vtkGlyphSource2D * GlyphSource
Definition: vtkXYPlotActor.h:921
vtkXYPlotActor::ReferenceLinesPolyData
vtkPolyData * ReferenceLinesPolyData
Definition: vtkXYPlotActor.h:941
vtkXYPlotActor::ChartBorderActor
vtkActor2D * ChartBorderActor
Definition: vtkXYPlotActor.h:933
vtkXYPlotActor::SetYTitlePositionToVCenter
void SetYTitlePositionToVCenter()
Definition: vtkXYPlotActor.h:773
vtkXYPlotActor::XComponent
vtkIntArray * XComponent
Definition: vtkXYPlotActor.h:899
vtkXYPlotActor::SetYTitlePositionToTop
void SetYTitlePositionToTop()
Definition: vtkXYPlotActor.h:765
VTK_XYPLOT_Y_AXIS_TOP
#define VTK_XYPLOT_Y_AXIS_TOP
Definition: vtkXYPlotActor.h:99
vtkPlanes
implicit function for convex set of planes
Definition: vtkPlanes.h:49
VTK_XYPLOT_INDEX
#define VTK_XYPLOT_INDEX
Definition: vtkXYPlotActor.h:91
vtkActor2D::GetMTime
vtkMTimeType GetMTime() override
Return this objects MTime.
vtkXYPlotActor::TitleTextProperty
vtkTextProperty * TitleTextProperty
Definition: vtkXYPlotActor.h:886
vtkWindow
window superclass for vtkRenderWindow
Definition: vtkWindow.h:34
vtkXYPlotActor::ShowReferenceXLine
vtkTypeBool ShowReferenceXLine
Definition: vtkXYPlotActor.h:936
vtkXYPlotActor::SetXValuesToNormalizedArcLength
void SetXValuesToNormalizedArcLength()
Definition: vtkXYPlotActor.h:205
vtkXYPlotActor::YAxis
vtkAxisActor2D * YAxis
Definition: vtkXYPlotActor.h:889
vtkXYPlotActor::RemoveDataSetInputConnection
void RemoveDataSetInputConnection(vtkAlgorithmOutput *in)
Definition: vtkXYPlotActor.h:168
vtkXYPlotActor::PlotAppend
vtkAppendPolyData ** PlotAppend
Definition: vtkXYPlotActor.h:910
vtkAppendPolyData
appends one or more polygonal datasets together
Definition: vtkAppendPolyData.h:42
vtkX3D::position
Definition: vtkX3D.h:261
vtkX3D::color
Definition: vtkX3D.h:221
vtkActor2D::ReleaseGraphicsResources
void ReleaseGraphicsResources(vtkWindow *) override
Release any graphics resources that are being consumed by this actor.
vtkXYPlotActor::TitleActor
vtkActor2D * TitleActor
Definition: vtkXYPlotActor.h:885
vtkTextMapper
2D text annotation
Definition: vtkTextMapper.h:47
vtkXYPlotActor::ExchangeAxes
vtkTypeBool ExchangeAxes
Definition: vtkXYPlotActor.h:875
VTK_SIZEHINT
#define VTK_SIZEHINT(...)
Definition: vtkWrappingHints.h:42
vtkXYPlotActor::PlotGlyph
vtkGlyph2D ** PlotGlyph
Definition: vtkXYPlotActor.h:909
vtkXYPlotActor::ActiveCurveIndex
int ActiveCurveIndex
Definition: vtkXYPlotActor.h:965
vtkXYPlotActor::ChartBoxMapper
vtkPolyDataMapper2D * ChartBoxMapper
Definition: vtkXYPlotActor.h:928
vtkXYPlotActor::DataObjectInputConnectionHolder
vtkXYPlotActorConnections * DataObjectInputConnectionHolder
Definition: vtkXYPlotActor.h:856
vtkXYPlotActor::AdjustYLabels
int AdjustYLabels
Definition: vtkXYPlotActor.h:879
vtkXYPlotActor::GlyphSize
double GlyphSize
Definition: vtkXYPlotActor.h:923
vtkXYPlotActor::AdjustTitlePosition
vtkTypeBool AdjustTitlePosition
Definition: vtkXYPlotActor.h:880
vtkXYPlotActor::RenderTranslucentPolygonalGeometry
int RenderTranslucentPolygonalGeometry(vtkViewport *) override
Definition: vtkXYPlotActor.h:736
VTK_XYPLOT_ARC_LENGTH
#define VTK_XYPLOT_ARC_LENGTH
Definition: vtkXYPlotActor.h:92
vtkXYPlotActor::ChartBorder
vtkTypeBool ChartBorder
Definition: vtkXYPlotActor.h:930
vtkXYPlotActor::AxisTitleTextProperty
vtkTextProperty * AxisTitleTextProperty
Definition: vtkXYPlotActor.h:891
vtkActor2D::RenderOverlay
int RenderOverlay(vtkViewport *viewport) override
Support the standard render methods.
vtkXYPlotActor::ReferenceYValue
double ReferenceYValue
Definition: vtkXYPlotActor.h:939
vtkTextActor
An actor that displays text. Scaled or unscaled.
Definition: vtkTextActor.h:50
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:33
vtkIntArray
dynamic, self-adjusting array of int
Definition: vtkIntArray.h:39
vtkSmartPointer.h
vtkXYPlotActor::ChartBoxPolyData
vtkPolyData * ChartBoxPolyData
Definition: vtkXYPlotActor.h:927
vtkActor2D::HasTranslucentPolygonalGeometry
int HasTranslucentPolygonalGeometry() override
Does this prop have some translucent polygonal geometry?
vtkXYPlotActor::SelectedInputScalars
char ** SelectedInputScalars
Definition: vtkXYPlotActor.h:854
vtkX3D::size
Definition: vtkX3D.h:253
vtkXYPlotActor::LinesOn
vtkIntArray * LinesOn
Definition: vtkXYPlotActor.h:901
vtkXYPlotActor::ReferenceLinesActor
vtkActor2D * ReferenceLinesActor
Definition: vtkXYPlotActor.h:943
vtkXYPlotActor::ReferenceXValue
double ReferenceXValue
Definition: vtkXYPlotActor.h:938
vtkXYPlotActor::PlotColorIndex
int PlotColorIndex
Definition: vtkXYPlotActor.h:966
vtkXYPlotActor::AddDataSetInputConnection
void AddDataSetInputConnection(vtkAlgorithmOutput *in)
Definition: vtkXYPlotActor.h:158
vtkXYPlotActor::PlotCurveLines
vtkTypeBool PlotCurveLines
Definition: vtkXYPlotActor.h:873
vtkXYPlotActor::NumberOfInputs
int NumberOfInputs
Definition: vtkXYPlotActor.h:907
vtkXYPlotActor::Logx
vtkTypeBool Logx
Definition: vtkXYPlotActor.h:863
vtkViewport
abstract specification for Viewports
Definition: vtkViewport.h:44
vtkXYPlotActor::PointsOn
vtkIntArray * PointsOn
Definition: vtkXYPlotActor.h:902
VTK_XYPLOT_Y_AXIS_HCENTER
#define VTK_XYPLOT_Y_AXIS_HCENTER
Definition: vtkXYPlotActor.h:100
vtkXYPlotActor::GetChartBoxProperty
vtkProperty2D * GetChartBoxProperty()
Get the box vtkProperty2D.
Definition: vtkXYPlotActor.h:682
vtkXYPlotActor::YLabelFormat
char * YLabelFormat
Definition: vtkXYPlotActor.h:865
VTK_XYPLOT_ROW
#define VTK_XYPLOT_ROW
Definition: vtkXYPlotActor.h:96
vtkXYPlotActor::ChartBorderPolyData
vtkPolyData * ChartBorderPolyData
Definition: vtkXYPlotActor.h:931
vtkXYPlotActor::LegendActor
vtkLegendBoxActor * LegendActor
Definition: vtkXYPlotActor.h:920
vtkXYPlotActor::ReverseXAxis
vtkTypeBool ReverseXAxis
Definition: vtkXYPlotActor.h:876
vtkDataSet
abstract class to specify dataset behavior
Definition: vtkDataSet.h:56
vtkTextProperty
represent text properties.
Definition: vtkTextProperty.h:33
vtkXYPlotActor
generate an x-y plot from input dataset(s) or field data
Definition: vtkXYPlotActor.h:127
vtkXYPlotActor::ChartBoxActor
vtkActor2D * ChartBoxActor
Definition: vtkXYPlotActor.h:929
vtkXYPlotActor::SetXValuesToIndex
void SetXValuesToIndex()
Definition: vtkXYPlotActor.h:203
vtkProperty2D
represent surface properties of a 2D image
Definition: vtkProperty2D.h:37
vtkXYPlotActor::ReferenceLinesMapper
vtkPolyDataMapper2D * ReferenceLinesMapper
Definition: vtkXYPlotActor.h:942
vtkActor2D
a actor that draws 2D data
Definition: vtkActor2D.h:39
vtkActor2D.h
vtkXYPlotActor::SetDataObjectPlotModeToColumns
void SetDataObjectPlotModeToColumns()
Definition: vtkXYPlotActor.h:242
vtkActor2D::New
static vtkActor2D * New()
Creates an actor2D with the following defaults: position (0,0) (coordinate system is viewport); at la...
vtkXYPlotActor::DataObjectPlotMode
int DataObjectPlotMode
Definition: vtkXYPlotActor.h:898
vtkAlgorithmOutput
Proxy object to connect input/output ports.
Definition: vtkAlgorithmOutput.h:36
vtkXYPlotActor::GetLabelFormat
const char * GetLabelFormat()
Definition: vtkXYPlotActor.h:557
VTK_XYPLOT_COLUMN
#define VTK_XYPLOT_COLUMN
Definition: vtkXYPlotActor.h:97
VTK_XYPLOT_Y_AXIS_VCENTER
#define VTK_XYPLOT_Y_AXIS_VCENTER
Definition: vtkXYPlotActor.h:101
vtkXYPlotActor::RemoveDataSetInput
void RemoveDataSetInput(vtkDataSet *ds)
Definition: vtkXYPlotActor.h:166
vtkXYPlotActor::YTitleActor
vtkTextActor * YTitleActor
Definition: vtkXYPlotActor.h:859
vtkPolyData
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:79
vtkAxisActor2D
Create an axis with tick marks and labels.
Definition: vtkAxisActor2D.h:69
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:378
vtkDataSetCollection
maintain an unordered list of dataset objects
Definition: vtkDataSetCollection.h:31
vtkXYPlotActor::YAxisTitleSize
int YAxisTitleSize
Definition: vtkXYPlotActor.h:964
vtkXYPlotActor::SetPlotColor
void SetPlotColor(int i, const double color[3])
Definition: vtkXYPlotActor.h:280
vtkDoubleArray
dynamic, self-adjusting array of double
Definition: vtkDoubleArray.h:35
vtkXYPlotActor::InputConnectionHolder
vtkXYPlotActorConnections * InputConnectionHolder
Definition: vtkXYPlotActor.h:853
vtkXYPlotActor::AxisLabelTextProperty
vtkTextProperty * AxisLabelTextProperty
Definition: vtkXYPlotActor.h:892
vtkXYPlotActor::PlotPoints
vtkTypeBool PlotPoints
Definition: vtkXYPlotActor.h:872
vtkXYPlotActor::PlotMapper
vtkPolyDataMapper2D ** PlotMapper
Definition: vtkXYPlotActor.h:911
vtkXYPlotActor::AdjustXLabels
int AdjustXLabels
Definition: vtkXYPlotActor.h:878
vtkXYPlotActor::NumberOfYLabels
int NumberOfYLabels
Definition: vtkXYPlotActor.h:862
vtkXYPlotActor::ChartBox
vtkTypeBool ChartBox
Definition: vtkXYPlotActor.h:926
vtkXYPlotActor::Border
int Border
Definition: vtkXYPlotActor.h:870
vtkXYPlotActor::AdjustTitlePositionMode
int AdjustTitlePositionMode
Definition: vtkXYPlotActor.h:882
vtkXYPlotActor::PlotLines
vtkTypeBool PlotLines
Definition: vtkXYPlotActor.h:871
vtkDataObject
general representation of visualization data
Definition: vtkDataObject.h:58
vtkXYPlotActor::ActiveCurve
vtkSmartPointer< vtkDoubleArray > ActiveCurve
Definition: vtkXYPlotActor.h:962
vtkXYPlotActor::SetNumberOfLabels
void SetNumberOfLabels(int num)
Definition: vtkXYPlotActor.h:416
vtkXYPlotActor::YComponent
vtkIntArray * YComponent
Definition: vtkXYPlotActor.h:900
vtkTypeBool
int vtkTypeBool
Definition: vtkABI.h:69
vtkXYPlotActor::SetYTitlePositionToHCenter
void SetYTitlePositionToHCenter()
Definition: vtkXYPlotActor.h:769
VTK_XYPLOT_NORMALIZED_ARC_LENGTH
#define VTK_XYPLOT_NORMALIZED_ARC_LENGTH
Definition: vtkXYPlotActor.h:93
vtkXYPlotActor::Alignment
Alignment
Definition: vtkXYPlotActor.h:474
vtkXYPlotActor::SetDataObjectPlotModeToRows
void SetDataObjectPlotModeToRows()
Definition: vtkXYPlotActor.h:240
vtkXYPlotActor::ClipPlanes
vtkPlanes * ClipPlanes
Definition: vtkXYPlotActor.h:922
vtkXYPlotActor::SetPlotRange
void SetPlotRange(double xmin, double ymin, double xmax, double ymax)
Definition: vtkXYPlotActor.h:401
vtkXYPlotActor::PlotCurvePoints
vtkTypeBool PlotCurvePoints
Definition: vtkXYPlotActor.h:874
vtkMTimeType
vtkTypeUInt32 vtkMTimeType
Definition: vtkType.h:302
vtkXYPlotActor::SelectedInputScalarsComponent
vtkIntArray * SelectedInputScalarsComponent
Definition: vtkXYPlotActor.h:855
vtkXYPlotActor::ChartBorderMapper
vtkPolyDataMapper2D * ChartBorderMapper
Definition: vtkXYPlotActor.h:932
vtkXYPlotActor::ReverseYAxis
vtkTypeBool ReverseYAxis
Definition: vtkXYPlotActor.h:877