VTK  9.1.0
vtkXYPlotRepresentation.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: Visualization Toolkit
4 Module: vtkScalarBarRepresentation.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=========================================================================*/
15
33#ifndef vtkXYPlotRepresentation_h
34#define vtkXYPlotRepresentation_h
35
37#include "vtkInteractionWidgetsModule.h" // For export macro
38
39class vtkXYPlotActor;
40
41class VTKINTERACTIONWIDGETS_EXPORT vtkXYPlotRepresentation : public vtkBorderRepresentation
42{
43public:
45 virtual void PrintSelf(ostream& os, vtkIndent indent);
47
49
52 vtkGetObjectMacro(XYPlotActor, vtkXYPlotActor);
55
57
60 void BuildRepresentation() override;
61 void WidgetInteraction(double eventPos[2]) override;
62 void GetSize(double size[2]) override
63 {
64 size[0] = 2.0;
65 size[1] = 2.0;
66 }
68
70
74 virtual int GetVisibility();
75 virtual void SetVisibility(int);
76 virtual void GetActors2D(vtkPropCollection* collection);
77 virtual void ReleaseGraphicsResources(vtkWindow* window);
83
85
88 void SetGlyphSize(double x);
89 void SetPlotGlyphType(int curve, int glyph);
91
93
96 void SetTitle(const char* title);
97 void SetTitleColor(double r, double g, double b);
98 void SetTitleFontFamily(int x);
99 void SetTitleBold(int x);
100 void SetTitleItalic(int x);
101 void SetTitleShadow(int x);
102 void SetTitleFontSize(int x);
106 void SetTitlePosition(double x, double y);
108
110
113 void SetXAxisColor(double r, double g, double b);
114 void SetYAxisColor(double r, double g, double b);
115 void SetXTitle(const char* ytitle);
116 char* GetXTitle();
117 void SetXRange(double min, double max);
118 void SetYTitle(const char* ytitle);
119 char* GetYTitle();
120 void SetYRange(double min, double max);
121 void SetYTitlePosition(int pos);
122 int GetYTitlePosition() const;
123 void SetXValues(int x);
125
127
130 void SetAxisTitleColor(double r, double g, double b);
132 void SetAxisTitleBold(int x);
139
141
144 void SetAxisLabelColor(double r, double g, double b);
146 void SetAxisLabelBold(int x);
152 void SetXLabelFormat(const char* _arg);
153 void SetYLabelFormat(const char* _arg);
155
157
160 void SetBorder(int x);
162 void AddUserCurvesPoint(double c, double x, double y);
163 void SetLegend(int x);
164 void SetLegendBorder(int b);
165 void SetLegendBox(int b);
166 void SetLegendBoxColor(double r, double g, double b);
167 void SetLegendPosition(double x, double y);
168 void SetLegendPosition2(double x, double y);
169 void SetLineWidth(double w);
170 void SetPlotColor(int i, int r, int g, int b);
171 void SetPlotLines(int i);
172 void SetPlotPoints(int i);
173 void SetPlotLabel(int i, const char* label);
175
176protected:
179
181
182private:
184 void operator=(const vtkXYPlotRepresentation&) = delete;
185};
186
187#endif // vtkXYPlotRepresentation_h
represent a vtkBorderWidget
a simple class to control print indentation
Definition: vtkIndent.h:113
an ordered list of Props
abstract specification for Viewports
Definition: vtkViewport.h:47
window superclass for vtkRenderWindow
Definition: vtkWindow.h:36
generate an x-y plot from input dataset(s) or field data
represent XY plot for vtkXYPlotWidget
void SetLegendBox(int b)
Set various properties.
virtual void ReleaseGraphicsResources(vtkWindow *window)
These methods are necessary to make this representation behave as a vtkProp.
void SetTitle(const char *title)
Set title properties.
void SetLegendBorder(int b)
Set various properties.
virtual int GetVisibility()
These methods are necessary to make this representation behave as a vtkProp.
void SetAxisTitleShadow(int x)
Set axis title properties.
void SetLineWidth(double w)
Set various properties.
void SetAxisLabelFontSize(int x)
Set axis label properties.
void SetXAxisColor(double r, double g, double b)
Set/Get axis properties.
virtual void GetActors2D(vtkPropCollection *collection)
These methods are necessary to make this representation behave as a vtkProp.
void SetTitleFontSize(int x)
Set title properties.
void SetTitleColor(double r, double g, double b)
Set title properties.
~vtkXYPlotRepresentation() override
void SetYTitlePosition(int pos)
Set/Get axis properties.
void SetLegendPosition2(double x, double y)
Set various properties.
virtual int RenderOpaqueGeometry(vtkViewport *)
These methods are necessary to make this representation behave as a vtkProp.
void SetAxisLabelJustification(int x)
Set axis label properties.
void SetAxisLabelFontFamily(int x)
Set axis label properties.
virtual int RenderOverlay(vtkViewport *)
These methods are necessary to make this representation behave as a vtkProp.
virtual int RenderTranslucentPolygonalGeometry(vtkViewport *)
These methods are necessary to make this representation behave as a vtkProp.
void SetTitleJustification(int x)
Set title properties.
void SetBorder(int x)
Set various properties.
void SetPlotGlyphType(int curve, int glyph)
Set glyph properties.
void BuildRepresentation() override
Satisfy the superclass' API.
void SetAxisLabelItalic(int x)
Set axis label properties.
void SetGlyphSize(double x)
Set glyph properties.
void AddUserCurvesPoint(double c, double x, double y)
Set various properties.
void SetAdjustTitlePosition(int x)
Set title properties.
virtual vtkTypeBool HasTranslucentPolygonalGeometry()
These methods are necessary to make this representation behave as a vtkProp.
void SetTitleVerticalJustification(int x)
Set title properties.
void SetPlotLines(int i)
Set various properties.
void SetTitlePosition(double x, double y)
Set title properties.
void SetPlotLabel(int i, const char *label)
Set various properties.
virtual void PrintSelf(ostream &os, vtkIndent indent)
Define standard methods.
char * GetXTitle()
Set/Get axis properties.
void SetTitleFontFamily(int x)
Set title properties.
char * GetYTitle()
Set/Get axis properties.
void SetLegendBoxColor(double r, double g, double b)
Set various properties.
virtual void SetVisibility(int)
These methods are necessary to make this representation behave as a vtkProp.
void SetAxisLabelBold(int x)
Set axis label properties.
void SetAxisTitleJustification(int x)
Set axis title properties.
void SetAxisTitleFontFamily(int x)
Set axis title properties.
void SetAxisLabelVerticalJustification(int x)
Set axis label properties.
void SetAxisLabelShadow(int x)
Set axis label properties.
void SetXTitle(const char *ytitle)
Set/Get axis properties.
int GetYTitlePosition() const
Set/Get axis properties.
void SetPlotColor(int i, int r, int g, int b)
Set various properties.
void SetTitleItalic(int x)
Set title properties.
void SetLegendPosition(double x, double y)
Set various properties.
void SetAxisTitleColor(double r, double g, double b)
Set axis title properties.
void SetYRange(double min, double max)
Set/Get axis properties.
void SetAxisLabelColor(double r, double g, double b)
Set axis label properties.
void SetXValues(int x)
Set/Get axis properties.
virtual void SetXYPlotActor(vtkXYPlotActor *)
The prop that is placed in the renderer.
void SetYAxisColor(double r, double g, double b)
Set/Get axis properties.
void SetTitleBold(int x)
Set title properties.
void SetYLabelFormat(const char *_arg)
Set axis label properties.
void WidgetInteraction(double eventPos[2]) override
Satisfy the superclass' API.
void SetXRange(double min, double max)
Set/Get axis properties.
void SetAxisTitleBold(int x)
Set axis title properties.
static vtkXYPlotRepresentation * New()
void SetTitleShadow(int x)
Set title properties.
void SetAxisTitleItalic(int x)
Set axis title properties.
void SetXLabelFormat(const char *_arg)
Set axis label properties.
void RemoveAllActiveCurves()
Set various properties.
void SetLegend(int x)
Set various properties.
void SetPlotPoints(int i)
Set various properties.
void SetYTitle(const char *ytitle)
Set/Get axis properties.
void SetAxisTitleVerticalJustification(int x)
Set axis title properties.
void SetAxisTitleFontSize(int x)
Set axis title properties.
void GetSize(double size[2]) override
Satisfy the superclass' API.
@ size
Definition: vtkX3D.h:259
@ title
Definition: vtkX3D.h:506
int vtkTypeBool
Definition: vtkABI.h:69
#define max(a, b)