94#ifndef vtkXYPlotActor_h
95#define vtkXYPlotActor_h
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
102#define VTK_XYPLOT_ROW 0
103#define VTK_XYPLOT_COLUMN 1
105#define VTK_XYPLOT_Y_AXIS_TOP 0
106#define VTK_XYPLOT_Y_AXIS_HCENTER 1
107#define VTK_XYPLOT_Y_AXIS_VCENTER 2
109#include "vtkRenderingAnnotationModule.h"
113class vtkXYPlotActorConnections;
176 this->RemoveDataSetInputConnection(in, NULL, 0);
208 vtkGetMacro(XValues,
int);
245 vtkGetMacro(DataObjectPlotMode,
int);
297 vtkGetMacro(PlotCurvePoints,
int);
301 vtkGetMacro(PlotCurveLines,
int);
318 vtkGetMacro(ExchangeAxes,
int);
329 vtkGetMacro(ReverseXAxis,
int);
340 vtkGetMacro(ReverseYAxis,
int);
359 vtkSetStringMacro(Title);
367 vtkSetStringMacro(XTitle);
403 vtkSetVector2Macro(XRange,
double);
404 vtkGetVectorMacro(XRange,
double,2);
405 vtkSetVector2Macro(YRange,
double);
406 vtkGetVectorMacro(YRange,
double,2);
408 {this->SetXRange(xmin,xmax); this->SetYRange(ymin,ymax);}
418 vtkSetClampMacro(NumberOfXLabels,
int, 0, 50);
419 vtkGetMacro(NumberOfXLabels,
int);
420 vtkSetClampMacro(NumberOfYLabels,
int, 0, 50);
421 vtkGetMacro(NumberOfYLabels,
int);
423 {this->SetNumberOfXLabels(num); this->SetNumberOfYLabels(num);}
435 vtkGetMacro( AdjustXLabels,
int );
437 vtkGetMacro( AdjustYLabels,
int );
457 vtkGetMacro(Legend,
int);
466 vtkSetVector2Macro(TitlePosition,
double);
467 vtkGetVector2Macro(TitlePosition,
double);
476 vtkGetMacro(AdjustTitlePosition,
int);
487 AlignAxisLeft = 0x100,
488 AlignAxisRight = 0x200,
489 AlignAxisHCenter = 0x400,
490 AlignAxisTop = 0x1000,
491 AlignAxisBottom = 0x2000,
492 AlignAxisVCenter = 0x4000
504 vtkGetMacro(AdjustTitlePositionMode,
int);
516 vtkSetVector2Macro(LegendPosition,
double);
517 vtkGetVector2Macro(LegendPosition,
double);
518 vtkSetVector2Macro(LegendPosition2,
double);
519 vtkGetVector2Macro(LegendPosition2,
double);
553 vtkGetMacro(Logx,
int);
565 return this->GetXLabelFormat();
590 vtkSetClampMacro(Border,
int, 0, 50);
591 vtkGetMacro(Border,
int);
600 vtkGetMacro(PlotPoints,
int);
610 vtkGetMacro(PlotLines,
int);
621 vtkSetClampMacro(GlyphSize,
double, 0.0, 0.2);
622 vtkGetMacro(GlyphSize,
double);
638 vtkSetVector2Macro(PlotCoordinate,
double);
639 vtkGetVector2Macro(PlotCoordinate,
double);
655 vtkSetVector2Macro(ViewportCoordinate,
double);
656 vtkGetVector2Macro(ViewportCoordinate,
double);
671 vtkGetMacro(ChartBox,
int);
681 vtkGetMacro(ChartBorder,
int);
695 vtkGetMacro(ShowReferenceXLine,
int);
704 vtkGetMacro(ReferenceXValue,
double);
712 vtkGetMacro(ShowReferenceYLine,
int);
721 vtkGetMacro(ReferenceYValue,
double);
770 vtkGetMacro(YTitlePosition,
int);
874 double XComputedRange[2];
875 double YComputedRange[2];
887 double TitlePosition[2];
900 double ViewportCoordinate[2];
901 double PlotCoordinate[2];
924 double LegendPosition[2];
925 double LegendPosition2[2];
960 double yRange[2],
double *norms,
961 int numDS,
int numDO);
981 const char* arrayName,
a actor that draws 2D data
Proxy object to connect input/output ports.
appends one or more polygonal datasets together
Create an axis with tick marks and labels.
maintain an unordered list of data objects
general representation of visualization data
maintain an unordered list of dataset objects
abstract class to specify dataset behavior
dynamic, self-adjusting array of double
copy oriented and scaled glyph geometry to every input point (2D specialization)
create 2D glyphs represented by vtkPolyData
a simple class to control print indentation
dynamic, self-adjusting array of int
implicit function for convex set of planes
draw vtkPolyData onto the image plane
concrete dataset represents vertices, lines, polygons, and triangle strips
represent surface properties of a 2D image
An actor that displays text.
represent text properties.
record modification and/or execution time
abstract specification for Viewports
window superclass for vtkRenderWindow
generate an x-y plot from input dataset(s) or field data
void RemoveAllDataSetInputConnections()
This removes all of the data set inputs, but does not change the data object inputs.
void AddDataSetInputConnection(vtkAlgorithmOutput *in, const char *arrayName, int component)
int IsInPlot(vtkViewport *viewport, double u, double v)
Is the specified viewport position within the plot area (as opposed to the region used by the plot pl...
virtual void SetTitleVerticalJustification(int)
static vtkXYPlotActor * New()
Instantiate object with autorange computation; bold, italic, and shadows on; arial font family; the n...
int GetDataObjectXComponent(int i)
void SetNumberOfLabels(int num)
virtual void SetLegendBox(int)
void SetPlotPoints(int i, int)
void SetAdjustYLabels(int adjust)
void ComputeXRange(double range[2], double *lengths)
virtual void SetTitleFontSize(int)
void SetXValuesToNormalizedArcLength()
vtkXYPlotActorConnections * DataObjectInputConnectionHolder
vtkTextActor * YTitleActor
vtkPolyData * ReferenceLinesPolyData
virtual void SetTitleFontFamily(int)
virtual void SetAxisLabelItalic(int)
vtkGlyphSource2D * GlyphSource
const char * GetXValuesAsString()
virtual void SetTitleTextProperty(vtkTextProperty *p)
Set/Get the title text property.
virtual void SetAxisTitleTextProperty(vtkTextProperty *p)
Set/Get the title text property of all axes.
void AddDataSetInput(vtkDataSet *ds, const char *arrayName, int component)
Add a dataset to the list of data to append.
void SetPlotRange(double xmin, double ymin, double xmax, double ymax)
void PlotToViewportCoordinate(vtkViewport *viewport)
An alternate form of PlotToViewportCoordinate() above.
int RenderOpaqueGeometry(vtkViewport *)
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE DO NOT USE THIS METHOD OUTSIDE OF THE RENDERI...
vtkPolyData * GetPlotSymbol(int i)
virtual void SetTitleBold(int)
virtual void SetAxisTitleItalic(int)
virtual void SetYTitle(const char *)
Set/Get the title of the y axis.
virtual void SetAxisLabelShadow(int)
virtual int RenderTranslucentPolygonalGeometry(vtkViewport *)
virtual void SetYLabelFormat(const char *)
Set/Get the format with which to print the Y label.
vtkXYPlotActorConnections * InputConnectionHolder
int RenderOverlay(vtkViewport *)
Support the standard render methods.
vtkActor2D * ReferenceLinesActor
virtual void CreatePlotData(int *pos, int *pos2, double xRange[2], double yRange[2], double *norms, int numDS, int numDO)
virtual void SetLegendUseBackground(int)
void SetPointComponent(int i, int comp)
If plotting points by value, which component to use to determine the value.
vtkTextProperty * AxisLabelTextProperty
void SetPlotColor(int i, double r, double g, double b)
int AdjustTitlePositionMode
void SetYTitlePositionToVCenter()
vtkPolyDataMapper2D * ReferenceLinesMapper
vtkActor2D * ChartBoxActor
void SetYTitlePositionToHCenter()
virtual void RemoveAllActiveCurves()
void PrintAsCSV(ostream &os)
Write the XY Ploat Actor as a CSV (comma separated value) representation.
void SetPlotSymbol(int i, vtkPolyData *input)
void SetDataObjectPlotModeToColumns()
void ComputeYRange(double range[2])
void SetDataObjectYComponent(int i, int comp)
Specify which component of the input data object to use as the dependent variable for the ith input d...
virtual void SetAxisTitleVerticalJustification(int)
void SetNumberOfXMinorTicks(int num)
Set/Get the number of minor ticks in X or Y.
void AddDataSetInput(vtkDataSet *ds)
virtual void SetLegendBorder(int)
Set legend properties.
const char * GetPlotLabel(int i)
virtual void SetYAxisColor(double, double, double)
double ComputeGlyphScale(int i, int *pos, int *pos2)
void SetXTitlePosition(double position)
Set/Get the position of the title of X axis.
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
virtual void SetAxisTitleFontFamily(int)
double * TransformPoint(int pos[2], int pos2[2], double x[3], double xNew[3])
virtual void SetPlotGlyphType(int, int)
Set plot properties.
void AddDataObjectInputConnection(vtkAlgorithmOutput *alg)
void RemoveDataSetInputConnection(vtkAlgorithmOutput *in, const char *arrayName, int component)
virtual void SetAxisLabelVerticalJustification(int)
virtual void SetAxisTitleShadow(int)
virtual void SetAxisLabelColor(double, double, double)
Set axis label properties.
vtkTextProperty * TitleTextProperty
void RemoveDataObjectInput(vtkDataObject *in)
virtual void SetTitleItalic(int)
virtual void AddUserCurvesPoint(double, double, double)
virtual void SetAxisTitleJustification(int)
virtual int HasTranslucentPolygonalGeometry()
Does this prop have some translucent polygonal geometry?
void SetPlotLabel(int i, const char *label)
void RemoveDataSetInputConnection(vtkAlgorithmOutput *in)
char ** SelectedInputScalars
virtual void SetAxisLabelBold(int)
virtual void SetAxisTitleFontSize(int)
virtual void SetAxisTitleBold(int)
virtual void SetXLabelFormat(const char *)
Set/Get the format with which to print the X label.
virtual void SetXAxisColor(double, double, double)
Set axes properties.
void AddDataObjectInput(vtkDataObject *in)
Add a data object to the list of data to display.
void ViewportToPlotCoordinate(vtkViewport *viewport, double &u, double &v)
Given a position within the viewport used by the plot, return the the plot coordinates (XAxis value,...
virtual void SetLineWidth(double)
void ClipPlotData(int *pos, int *pos2, vtkPolyData *pd)
void SetPlotLines(int i, int)
void GenerateClipPlanes(int *pos, int *pos2)
vtkAxisActor2D * GetYAxisActor2D()
int GetNumberOfYMinorTicks()
virtual void SetAxisLabelJustification(int)
vtkAxisActor2D * GetXAxisActor2D()
Retrieve handles to the X and Y axis (so that you can set their text properties for example)
vtkTextMapper * TitleMapper
vtkPolyData * ChartBorderPolyData
virtual void SetTitleJustification(int)
void RemoveDataObjectInputConnection(vtkAlgorithmOutput *aout)
Remove a dataset from the list of data to display.
vtkIntArray * SelectedInputScalarsComponent
vtkActor2D * ChartBorderActor
virtual void SetLegendBackgroundColor(double, double, double)
virtual void SetAxisLabelFontSize(int)
vtkProperty2D * GetChartBoxProperty()
Get the box vtkProperty2D.
virtual void SetLabelFormat(const char *)
Set/Get the format with which to print the labels .
void RemoveDataSetInput(vtkDataSet *ds, const char *arrayName, int component)
Remove a dataset from the list of data to append.
void PlaceAxes(vtkViewport *viewport, int *size, int pos[2], int pos2[2])
void SetYTitlePositionToTop()
void SetPlotColor(int i, const double color[3])
vtkPolyDataMapper2D * ChartBoxMapper
int GetPointComponent(int i)
virtual void SetTitleColor(double, double, double)
Set title properties.
int GetNumberOfXMinorTicks()
virtual void SetAxisTitleColor(double, double, double)
Set axis title properties.
void PlotToViewportCoordinate(vtkViewport *viewport, double &u, double &v)
Given a plot coordinate, return the viewpoint position.
virtual void SetTitleShadow(int)
void SetDataObjectXComponent(int i, int comp)
Specify which component of the input data object to use as the independent variable for the ith input...
vtkLegendBoxActor * LegendActor
double GetXTitlePosition()
vtkPolyDataMapper2D * ChartBorderMapper
vtkPolyData * ChartBoxPolyData
double * GetPlotColor(int i)
vtkPolyDataMapper2D ** PlotMapper
void RemoveDataSetInput(vtkDataSet *ds)
void SetXValuesToArcLength()
void ReleaseGraphicsResources(vtkWindow *)
Release any graphics resources that are being consumed by this actor.
int GetDataObjectYComponent(int i)
void SetDataObjectPlotModeToRows()
void SetNumberOfYMinorTicks(int num)
vtkSmartPointer< vtkDoubleArray > ActiveCurve
vtkTextProperty * AxisTitleTextProperty
const char * GetDataObjectPlotModeAsString()
vtkAppendPolyData ** PlotAppend
void AddDataSetInputConnection(vtkAlgorithmOutput *in)
void ViewportToPlotCoordinate(vtkViewport *viewport)
An alternate form of ViewportToPlotCoordinate() above.
vtkMTimeType GetMTime()
Take into account the modified time of internal helper classes.
void SetAdjustXLabels(int adjust)
Set/Get the flag that controls whether the labels and ticks are adjusted for "nice" numerical values ...
const char * GetLabelFormat()
virtual void SetAxisLabelTextProperty(vtkTextProperty *p)
Set/Get the labels text property of all axes.
virtual void SetAxisLabelFontFamily(int)
void ComputeDORange(double xrange[2], double yrange[2], double *lengths)
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkBooleanMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkGetStringMacro(ExtensionsString)
Returns a string listing all available extensions.
vtkTypeUInt64 vtkMTimeType
#define VTK_XYPLOT_Y_AXIS_HCENTER
#define VTK_XYPLOT_Y_AXIS_VCENTER
#define VTK_XYPLOT_COLUMN
#define VTK_XYPLOT_Y_AXIS_TOP
#define VTK_XYPLOT_NORMALIZED_ARC_LENGTH
#define VTK_XYPLOT_ARC_LENGTH