Go to the documentation of this file.
93 #ifndef vtkXYPlotActor_h
94 #define vtkXYPlotActor_h
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
101 #define VTK_XYPLOT_ROW 0
102 #define VTK_XYPLOT_COLUMN 1
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)
112 class vtkXYPlotActorConnections;
169 this->RemoveDataSetInputConnection(
in, NULL, 0);
369 {this->SetXRange(xmin,xmax); this->SetYRange(ymin,ymax);}
383 {this->SetNumberOfXLabels(
num); this->SetNumberOfYLabels(
num);}
438 AlignAxisLeft = 0x100,
439 AlignAxisRight = 0x200,
440 AlignAxisHCenter = 0x400,
441 AlignAxisTop = 0x1000,
442 AlignAxisBottom = 0x2000,
443 AlignAxisVCenter = 0x4000
502 return this->GetXLabelFormat();
753 double XComputedRange[2];
754 double YComputedRange[2];
766 double TitlePosition[2];
779 double ViewportCoordinate[2];
780 double PlotCoordinate[2];
803 double LegendPosition[2];
804 double LegendPosition2[2];
839 double yRange[2],
double *norms,
840 int numDS,
int numDO);
861 const char* arrayName,
virtual void SetAxisTitleFontSize(int)
double * GetPlotColor(int i)
const char * GetPlotLabel(int i)
#define vtkGetObjectMacro(name, type)
create 2D glyphs represented by vtkPolyData
virtual void SetAxisLabelShadow(int)
draw vtkPolyData onto the image plane
const char * GetDataObjectPlotModeAsString()
virtual void SetLabelFormat(const char *)
#define vtkSetVector2Macro(name, type)
virtual void SetAxisLabelTextProperty(vtkTextProperty *p)
GLboolean GLboolean GLboolean b
virtual void SetXAxisColor(double, double, double)
int GetNumberOfYMinorTicks()
void AddDataObjectInputConnection(vtkAlgorithmOutput *alg)
int GetPointComponent(int i)
virtual void SetAxisLabelVerticalJustification(int)
virtual void SetLegendBackgroundColor(double, double, double)
double * TransformPoint(int pos[2], int pos2[2], double x[3], double xNew[3])
void AddDataObjectInput(vtkDataObject *in)
#define vtkGetVector2Macro(name, type)
vtkAxisActor2D * GetYAxisActor2D()
void SetPointComponent(int i, int comp)
void RemoveAllDataSetInputConnections()
void SetNumberOfXMinorTicks(int num)
void AddDataSetInput(vtkDataSet *ds)
virtual void SetYLabelFormat(const char *)
maintain an unordered list of data objects
virtual void SetAxisTitleColor(double, double, double)
record modification and/or execution time
virtual void SetAxisLabelFontFamily(int)
virtual void SetTitleShadow(int)
void PrintSelf(ostream &os, vtkIndent indent)
int GetNumberOfXMinorTicks()
vtkTextMapper * TitleMapper
void SetPlotLabel(int i, const char *label)
void SetXValuesToArcLength()
virtual void SetAxisLabelBold(int)
#define vtkTypeMacro(thisClass, superclass)
copy oriented and scaled glyph geometry to every input point (2D specialization)
void SetNumberOfYMinorTicks(int num)
void SetPlotSymbol(int i, vtkPolyData *input)
virtual void SetYAxisColor(double, double, double)
void RemoveDataSetInput(vtkDataSet *ds, const char *arrayName, int component)
virtual void SetAxisTitleBold(int)
vtkGlyphSource2D * GlyphSource
GLint GLint GLint GLint GLint x
vtkPolyData * ReferenceLinesPolyData
virtual void SetYTitle(const char *)
double ComputeGlyphScale(int i, int *pos, int *pos2)
vtkActor2D * ChartBorderActor
virtual void SetLegendUseBackground(int)
void RemoveDataSetInputConnection(vtkAlgorithmOutput *in, const char *arrayName, int component)
void PlotToViewportCoordinate(vtkViewport *viewport, double &u, double &v)
void SetYTitlePositionToVCenter()
virtual void SetTitleFontSize(int)
void SetYTitlePositionToTop()
virtual void SetAxisTitleTextProperty(vtkTextProperty *p)
void RemoveDataObjectInputConnection(vtkAlgorithmOutput *aout)
virtual void SetXLabelFormat(const char *)
GLenum GLenum GLenum input
#define VTK_XYPLOT_Y_AXIS_TOP
implicit function for convex set of planes
#define vtkGetVectorMacro(name, type, count)
virtual void SetTitleTextProperty(vtkTextProperty *p)
virtual void RemoveAllActiveCurves()
void RemoveDataObjectInput(vtkDataObject *in)
int RenderOverlay(vtkViewport *)
virtual void SetTitleVerticalJustification(int)
void PlotToViewportCoordinate(vtkViewport *viewport)
vtkTextProperty * TitleTextProperty
virtual void SetAxisTitleVerticalJustification(int)
virtual void SetTitleBold(int)
window superclass for vtkRenderWindow
void SetAdjustYLabels(int adjust)
virtual int HasTranslucentPolygonalGeometry()
void SetXValuesToNormalizedArcLength()
void RemoveDataSetInputConnection(vtkAlgorithmOutput *in)
virtual void SetPlotGlyphType(int, int)
vtkAppendPolyData ** PlotAppend
appends one or more polygonal datasets together
#define vtkSetClampMacro(name, type, min, max)
virtual void SetAxisLabelItalic(int)
virtual void SetAxisTitleItalic(int)
virtual void SetTitleJustification(int)
vtkPolyDataMapper2D * ChartBoxMapper
void PrintAsCSV(ostream &os)
virtual void AddUserCurvesPoint(double, double, double)
virtual void SetAxisLabelFontSize(int)
void AddDataSetInput(vtkDataSet *ds, const char *arrayName, int component)
void GenerateClipPlanes(int *pos, int *pos2)
vtkXYPlotActorConnections * DataObjectInputConnectionHolder
static vtkXYPlotActor * New()
void ComputeYRange(double range[2])
void SetDataObjectXComponent(int i, int comp)
virtual void SetTitleItalic(int)
#define VTK_XYPLOT_ARC_LENGTH
vtkTextProperty * AxisTitleTextProperty
An actor that displays text. Scaled or unscaled.
a simple class to control print indentation
#define vtkSetStringMacro(name)
dynamic, self-adjusting array of int
virtual void SetAxisTitleShadow(int)
void ComputeXRange(double range[2], double *lengths)
vtkPolyData * ChartBoxPolyData
char ** SelectedInputScalars
int RenderOpaqueGeometry(vtkViewport *)
vtkActor2D * ReferenceLinesActor
void ComputeDORange(double xrange[2], double yrange[2], double *lengths)
void SetXTitlePosition(double position)
virtual void SetAxisTitleJustification(int)
#define vtkGetMacro(name, type)
virtual void SetTitleFontFamily(int)
virtual void SetAxisTitleFontFamily(int)
vtkGetStringMacro(ExtensionsString)
void SetPlotColor(int i, double r, double g, double b)
void AddDataSetInputConnection(vtkAlgorithmOutput *in)
virtual void SetLegendBox(int)
void PlaceAxes(vtkViewport *viewport, int *size, int pos[2], int pos2[2])
abstract specification for Viewports
#define VTK_XYPLOT_Y_AXIS_HCENTER
virtual void SetAxisLabelColor(double, double, double)
vtkProperty2D * GetChartBoxProperty()
void SetAdjustXLabels(int adjust)
virtual int RenderTranslucentPolygonalGeometry(vtkViewport *)
vtkPolyData * ChartBorderPolyData
vtkLegendBoxActor * LegendActor
abstract class to specify dataset behavior
represent text properties.
vtkBooleanMacro(IgnoreDriverBugs, bool)
generate an x-y plot from input dataset(s) or field data
vtkActor2D * ChartBoxActor
vtkSetMacro(IgnoreDriverBugs, bool)
represent surface properties of a 2D image
vtkPolyDataMapper2D * ReferenceLinesMapper
GLdouble GLdouble GLdouble r
a actor that draws 2D data
void SetDataObjectYComponent(int i, int comp)
void SetDataObjectPlotModeToColumns()
GLsizei GLenum GLenum GLuint GLenum GLsizei * lengths
virtual void CreatePlotData(int *pos, int *pos2, double xRange[2], double yRange[2], double *norms, int numDS, int numDO)
Proxy object to connect input/output ports.
void AddDataSetInputConnection(vtkAlgorithmOutput *in, const char *arrayName, int component)
const char * GetLabelFormat()
void ViewportToPlotCoordinate(vtkViewport *viewport)
#define VTK_XYPLOT_COLUMN
#define VTK_XYPLOT_Y_AXIS_VCENTER
void RemoveDataSetInput(vtkDataSet *ds)
vtkTextActor * YTitleActor
concrete dataset represents vertices, lines, polygons, and triangle strips
Create an axis with tick marks and labels.
const char * GetXValuesAsString()
vtkAxisActor2D * GetXAxisActor2D()
maintain an unordered list of dataset objects
int GetDataObjectXComponent(int i)
void SetPlotPoints(int i, int)
double GetXTitlePosition()
virtual void SetLineWidth(double)
void SetPlotColor(int i, const double color[3])
dynamic, self-adjusting array of double
void ReleaseGraphicsResources(vtkWindow *)
virtual void SetTitleColor(double, double, double)
vtkXYPlotActorConnections * InputConnectionHolder
vtkTextProperty * AxisLabelTextProperty
vtkPolyDataMapper2D ** PlotMapper
void ClipPlotData(int *pos, int *pos2, vtkPolyData *pd)
int GetDataObjectYComponent(int i)
virtual void SetLegendBorder(int)
int AdjustTitlePositionMode
general representation of visualization data
vtkPolyData * GetPlotSymbol(int i)
vtkSmartPointer< vtkDoubleArray > ActiveCurve
void SetNumberOfLabels(int num)
int IsInPlot(vtkViewport *viewport, double u, double v)
void ViewportToPlotCoordinate(vtkViewport *viewport, double &u, double &v)
void SetYTitlePositionToHCenter()
#define VTK_XYPLOT_NORMALIZED_ARC_LENGTH
void SetDataObjectPlotModeToRows()
void SetPlotLines(int i, int)
void SetPlotRange(double xmin, double ymin, double xmax, double ymax)
#define VTKRENDERINGANNOTATION_EXPORT
virtual void SetAxisLabelJustification(int)
vtkIntArray * SelectedInputScalarsComponent
vtkPolyDataMapper2D * ChartBorderMapper