VTK
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 
32 #ifndef vtkXYPlotRepresentation_h
33 #define vtkXYPlotRepresentation_h
34 
35 #include "vtkInteractionWidgetsModule.h" // For export macro
37 
38 class vtkXYPlotActor;
39 
41 {
42 public:
44  virtual void PrintSelf(ostream &os, vtkIndent indent);
45  static vtkXYPlotRepresentation *New();
46 
48 
49  vtkGetObjectMacro(XYPlotActor, vtkXYPlotActor);
50  virtual void SetXYPlotActor(vtkXYPlotActor *);
52 
54 
55  virtual void BuildRepresentation();
56  virtual void WidgetInteraction(double eventPos[2]);
57  virtual void GetSize(double size[2])
58  {size[0]=2.0; size[1]=2.0;}
60 
62 
64  virtual int GetVisibility();
65  virtual void SetVisibility(int);
66  virtual void GetActors2D(vtkPropCollection *collection);
67  virtual void ReleaseGraphicsResources(vtkWindow *window);
68  virtual int RenderOverlay(vtkViewport*);
69  virtual int RenderOpaqueGeometry(vtkViewport*);
71  virtual int HasTranslucentPolygonalGeometry();
73 
75 
76  void SetGlyphSize(double x);
77  void SetPlotGlyphType(int curve, int glyph);
79 
81 
82  void SetTitle(const char* title);
83  void SetTitleColor(double r, double g, double b);
84  void SetTitleFontFamily(int x);
85  void SetTitleBold(int x);
86  void SetTitleItalic(int x);
87  void SetTitleShadow(int x);
88  void SetTitleFontSize(int x);
89  void SetTitleJustification(int x);
90  void SetTitleVerticalJustification(int x);
91  void SetAdjustTitlePosition(int x);
92  void SetTitlePosition(double x, double y);
94 
96 
97  void SetXAxisColor(double r, double g, double b);
98  void SetYAxisColor(double r, double g, double b);
99  void SetXTitle( const char* ytitle );
100  char* GetXTitle();
101  void SetXRange(double min, double max);
102  void SetYTitle( const char* ytitle );
103  char* GetYTitle();
104  void SetYRange(double min, double max);
105  void SetYTitlePosition (int pos);
106  int GetYTitlePosition() const;
107  void SetXValues(int x);
109 
111 
112  void SetAxisTitleColor(double r, double g, double b);
113  void SetAxisTitleFontFamily(int x);
114  void SetAxisTitleBold(int x);
115  void SetAxisTitleItalic(int x);
116  void SetAxisTitleShadow(int x);
117  void SetAxisTitleFontSize(int x);
118  void SetAxisTitleJustification(int x);
119  void SetAxisTitleVerticalJustification(int x);
121 
123 
124  void SetAxisLabelColor(double r, double g, double b);
125  void SetAxisLabelFontFamily(int x);
126  void SetAxisLabelBold(int x);
127  void SetAxisLabelItalic(int x);
128  void SetAxisLabelShadow(int x);
129  void SetAxisLabelFontSize(int x);
130  void SetAxisLabelJustification(int x);
131  void SetAxisLabelVerticalJustification(int x);
132  void SetXLabelFormat(const char* _arg);
133  void SetYLabelFormat(const char* _arg);
135 
137 
138  void SetBorder(int x);
139  void RemoveAllActiveCurves();
140  void AddUserCurvesPoint( double c, double x, double y);
141  void SetLegend(int x);
142  void SetLegendBorder(int b);
143  void SetLegendBox(int b);
144  void SetLegendBoxColor(double r, double g, double b);
145  void SetLegendPosition(double x, double y);
146  void SetLegendPosition2(double x, double y);
147  void SetLineWidth(double w);
148  void SetPlotColor(int i, int r, int g, int b);
149  void SetPlotLines(int i);
150  void SetPlotPoints(int i);
151  void SetPlotLabel(int i, const char* label);
153 
154 protected:
157 
159 private:
160  vtkXYPlotRepresentation(const vtkXYPlotRepresentation &); // Not implemented
161  void operator=(const vtkXYPlotRepresentation &); // Not implemented
162 };
163 
164 #endif //vtkXYPlotRepresentation_h
generate an x-y plot from input dataset(s) or field data
virtual int GetVisibility()
void PrintSelf(ostream &os, vtkIndent indent)
abstract specification for Viewports
Definition: vtkViewport.h:46
virtual int RenderTranslucentPolygonalGeometry(vtkViewport *)
virtual void GetActors2D(vtkPropCollection *)
virtual void WidgetInteraction(double eventPos[2])
static vtkBorderRepresentation * New()
a list of Props
window superclass for vtkRenderWindow
Definition: vtkWindow.h:36
#define VTKINTERACTIONWIDGETS_EXPORT
virtual void SetVisibility(int)
a simple class to control print indentation
Definition: vtkIndent.h:38
virtual int RenderOpaqueGeometry(vtkViewport *)
virtual void BuildRepresentation()
represent XY plot for vtkXYPlotWidget
virtual int RenderOverlay(vtkViewport *)
represent a vtkBorderWidget
virtual int HasTranslucentPolygonalGeometry()
virtual void GetSize(double size[2])
virtual void ReleaseGraphicsResources(vtkWindow *)
#define max(a, b)