VTK  9.0.1
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 
39 class vtkXYPlotActor;
40 
41 class VTKINTERACTIONWIDGETS_EXPORT vtkXYPlotRepresentation : public vtkBorderRepresentation
42 {
43 public:
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);
78  virtual int RenderOverlay(vtkViewport*);
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);
133  void SetAxisTitleItalic(int x);
134  void SetAxisTitleShadow(int x);
135  void SetAxisTitleFontSize(int x);
139 
141 
144  void SetAxisLabelColor(double r, double g, double b);
146  void SetAxisLabelBold(int x);
147  void SetAxisLabelItalic(int x);
148  void SetAxisLabelShadow(int x);
149  void SetAxisLabelFontSize(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 
176 protected:
179 
181 
182 private:
184  void operator=(const vtkXYPlotRepresentation&) = delete;
185 };
186 
187 #endif // vtkXYPlotRepresentation_h
vtkXYPlotRepresentation::SetLegend
void SetLegend(int x)
vtkXYPlotRepresentation::SetTitle
void SetTitle(const char *title)
Set title properties.
vtkXYPlotRepresentation::SetXRange
void SetXRange(double min, double max)
vtkXYPlotRepresentation::SetPlotColor
void SetPlotColor(int i, int r, int g, int b)
vtkXYPlotRepresentation::SetAxisTitleColor
void SetAxisTitleColor(double r, double g, double b)
Set axis title properties.
vtkBorderRepresentation
represent a vtkBorderWidget
Definition: vtkBorderRepresentation.h:55
vtkXYPlotRepresentation::GetYTitle
char * GetYTitle()
vtkXYPlotRepresentation::SetAxisTitleItalic
void SetAxisTitleItalic(int x)
vtkXYPlotRepresentation::AddUserCurvesPoint
void AddUserCurvesPoint(double c, double x, double y)
vtkXYPlotRepresentation::RemoveAllActiveCurves
void RemoveAllActiveCurves()
vtkXYPlotRepresentation::GetYTitlePosition
int GetYTitlePosition() const
vtkXYPlotRepresentation::XYPlotActor
vtkXYPlotActor * XYPlotActor
Definition: vtkXYPlotRepresentation.h:180
vtkXYPlotRepresentation::SetPlotLabel
void SetPlotLabel(int i, const char *label)
vtkXYPlotRepresentation::SetTitleColor
void SetTitleColor(double r, double g, double b)
vtkXYPlotRepresentation::RenderOverlay
virtual int RenderOverlay(vtkViewport *)
vtkXYPlotRepresentation::SetAxisLabelColor
void SetAxisLabelColor(double r, double g, double b)
Set axis label properties.
vtkXYPlotRepresentation::SetAxisLabelItalic
void SetAxisLabelItalic(int x)
vtkXYPlotRepresentation::SetLineWidth
void SetLineWidth(double w)
vtkXYPlotRepresentation::SetAxisTitleBold
void SetAxisTitleBold(int x)
vtkXYPlotRepresentation::SetAxisLabelFontFamily
void SetAxisLabelFontFamily(int x)
vtkXYPlotRepresentation::RenderTranslucentPolygonalGeometry
virtual int RenderTranslucentPolygonalGeometry(vtkViewport *)
vtkXYPlotRepresentation::SetYTitle
void SetYTitle(const char *ytitle)
vtkXYPlotRepresentation::ReleaseGraphicsResources
virtual void ReleaseGraphicsResources(vtkWindow *window)
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE Release any graphics resources that are being...
vtkXYPlotRepresentation::SetTitlePosition
void SetTitlePosition(double x, double y)
vtkXYPlotRepresentation::SetLegendBorder
void SetLegendBorder(int b)
max
#define max(a, b)
Definition: vtkX3DExporterFIWriterHelper.h:31
vtkWindow
window superclass for vtkRenderWindow
Definition: vtkWindow.h:35
vtkXYPlotRepresentation::SetYLabelFormat
void SetYLabelFormat(const char *_arg)
vtkXYPlotRepresentation::SetAxisLabelJustification
void SetAxisLabelJustification(int x)
vtkX3D::title
@ title
Definition: vtkX3D.h:506
vtkXYPlotRepresentation::SetAxisTitleJustification
void SetAxisTitleJustification(int x)
vtkXYPlotRepresentation::SetAxisLabelShadow
void SetAxisLabelShadow(int x)
vtkXYPlotRepresentation::SetYTitlePosition
void SetYTitlePosition(int pos)
vtkBorderRepresentation.h
vtkXYPlotRepresentation::SetPlotPoints
void SetPlotPoints(int i)
vtkXYPlotRepresentation::SetAxisLabelBold
void SetAxisLabelBold(int x)
vtkXYPlotRepresentation::~vtkXYPlotRepresentation
~vtkXYPlotRepresentation() override
vtkXYPlotRepresentation::BuildRepresentation
void BuildRepresentation() override
Satisfy the superclass' API.
vtkXYPlotRepresentation::SetTitleVerticalJustification
void SetTitleVerticalJustification(int x)
vtkXYPlotRepresentation::PrintSelf
virtual void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
vtkXYPlotRepresentation::SetYRange
void SetYRange(double min, double max)
vtkXYPlotRepresentation::GetXTitle
char * GetXTitle()
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:34
vtkXYPlotRepresentation::RenderOpaqueGeometry
virtual int RenderOpaqueGeometry(vtkViewport *)
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE DO NOT USE THESE METHODS OUTSIDE OF THE RENDE...
vtkXYPlotRepresentation::SetXYPlotActor
virtual void SetXYPlotActor(vtkXYPlotActor *)
vtkXYPlotRepresentation::SetYAxisColor
void SetYAxisColor(double r, double g, double b)
vtkXYPlotRepresentation::SetAxisTitleFontSize
void SetAxisTitleFontSize(int x)
vtkXYPlotRepresentation::SetAxisLabelFontSize
void SetAxisLabelFontSize(int x)
vtkXYPlotRepresentation::SetTitleItalic
void SetTitleItalic(int x)
vtkXYPlotRepresentation::New
static vtkXYPlotRepresentation * New()
vtkX3D::size
@ size
Definition: vtkX3D.h:259
vtkXYPlotRepresentation::SetLegendBoxColor
void SetLegendBoxColor(double r, double g, double b)
vtkXYPlotRepresentation::GetSize
void GetSize(double size[2]) override
Definition: vtkXYPlotRepresentation.h:62
vtkXYPlotRepresentation::SetAxisTitleShadow
void SetAxisTitleShadow(int x)
vtkXYPlotRepresentation::WidgetInteraction
void WidgetInteraction(double eventPos[2]) override
vtkXYPlotRepresentation::SetXLabelFormat
void SetXLabelFormat(const char *_arg)
vtkViewport
abstract specification for Viewports
Definition: vtkViewport.h:45
vtkXYPlotRepresentation::GetVisibility
virtual int GetVisibility()
These methods are necessary to make this representation behave as a vtkProp.
vtkXYPlotActor
generate an x-y plot from input dataset(s) or field data
Definition: vtkXYPlotActor.h:128
vtkXYPlotRepresentation::SetLegendPosition2
void SetLegendPosition2(double x, double y)
vtkXYPlotRepresentation::SetAxisTitleFontFamily
void SetAxisTitleFontFamily(int x)
vtkXYPlotRepresentation::SetXTitle
void SetXTitle(const char *ytitle)
vtkXYPlotRepresentation::SetPlotLines
void SetPlotLines(int i)
vtkXYPlotRepresentation::SetGlyphSize
void SetGlyphSize(double x)
Set glyph properties.
vtkXYPlotRepresentation::SetTitleBold
void SetTitleBold(int x)
vtkXYPlotRepresentation::SetTitleJustification
void SetTitleJustification(int x)
vtkXYPlotRepresentation::SetAxisLabelVerticalJustification
void SetAxisLabelVerticalJustification(int x)
vtkXYPlotRepresentation::SetTitleFontSize
void SetTitleFontSize(int x)
vtkXYPlotRepresentation::SetLegendPosition
void SetLegendPosition(double x, double y)
vtkXYPlotRepresentation::SetBorder
void SetBorder(int x)
Set various properties.
vtkXYPlotRepresentation
represent XY plot for vtkXYPlotWidget
Definition: vtkXYPlotRepresentation.h:42
vtkXYPlotRepresentation::SetXAxisColor
void SetXAxisColor(double r, double g, double b)
Set/Get axis properties.
vtkXYPlotRepresentation::SetAdjustTitlePosition
void SetAdjustTitlePosition(int x)
vtkXYPlotRepresentation::HasTranslucentPolygonalGeometry
virtual vtkTypeBool HasTranslucentPolygonalGeometry()
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE DO NOT USE THESE METHODS OUTSIDE OF THE RENDE...
vtkXYPlotRepresentation::SetPlotGlyphType
void SetPlotGlyphType(int curve, int glyph)
vtkPropCollection
an ordered list of Props
Definition: vtkPropCollection.h:36
vtkXYPlotRepresentation::SetXValues
void SetXValues(int x)
vtkXYPlotRepresentation::SetTitleShadow
void SetTitleShadow(int x)
vtkXYPlotRepresentation::SetLegendBox
void SetLegendBox(int b)
vtkXYPlotRepresentation::vtkXYPlotRepresentation
vtkXYPlotRepresentation()
vtkTypeBool
int vtkTypeBool
Definition: vtkABI.h:69
vtkXYPlotRepresentation::SetAxisTitleVerticalJustification
void SetAxisTitleVerticalJustification(int x)
vtkXYPlotRepresentation::GetActors2D
virtual void GetActors2D(vtkPropCollection *collection)
These methods are necessary to make this representation behave as a vtkProp.
vtkXYPlotRepresentation::SetTitleFontFamily
void SetTitleFontFamily(int x)
vtkXYPlotRepresentation::SetVisibility
virtual void SetVisibility(int)
Set/Get visibility of this vtkProp.