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 
33 #ifndef vtkXYPlotRepresentation_h
34 #define vtkXYPlotRepresentation_h
35 
36 #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);
53  virtual void SetXYPlotActor(vtkXYPlotActor *);
55 
57 
60  virtual void BuildRepresentation();
61  virtual void WidgetInteraction(double eventPos[2]);
62  virtual void GetSize(double size[2])
63  {size[0]=2.0; size[1]=2.0;}
65 
67 
71  virtual int GetVisibility();
72  virtual void SetVisibility(int);
73  virtual void GetActors2D(vtkPropCollection *collection);
74  virtual void ReleaseGraphicsResources(vtkWindow *window);
75  virtual int RenderOverlay(vtkViewport*);
80 
82 
85  void SetGlyphSize(double x);
86  void SetPlotGlyphType(int curve, int glyph);
88 
90 
93  void SetTitle(const char* title);
94  void SetTitleColor(double r, double g, double b);
95  void SetTitleFontFamily(int x);
96  void SetTitleBold(int x);
97  void SetTitleItalic(int x);
98  void SetTitleShadow(int x);
99  void SetTitleFontSize(int x);
103  void SetTitlePosition(double x, double y);
105 
107 
110  void SetXAxisColor(double r, double g, double b);
111  void SetYAxisColor(double r, double g, double b);
112  void SetXTitle( const char* ytitle );
113  char* GetXTitle();
114  void SetXRange(double min, double max);
115  void SetYTitle( const char* ytitle );
116  char* GetYTitle();
117  void SetYRange(double min, double max);
118  void SetYTitlePosition (int pos);
119  int GetYTitlePosition() const;
120  void SetXValues(int x);
122 
124 
127  void SetAxisTitleColor(double r, double g, double b);
129  void SetAxisTitleBold(int x);
130  void SetAxisTitleItalic(int x);
131  void SetAxisTitleShadow(int x);
132  void SetAxisTitleFontSize(int x);
136 
138 
141  void SetAxisLabelColor(double r, double g, double b);
143  void SetAxisLabelBold(int x);
144  void SetAxisLabelItalic(int x);
145  void SetAxisLabelShadow(int x);
146  void SetAxisLabelFontSize(int x);
149  void SetXLabelFormat(const char* _arg);
150  void SetYLabelFormat(const char* _arg);
152 
154 
157  void SetBorder(int x);
159  void AddUserCurvesPoint( double c, double x, double y);
160  void SetLegend(int x);
161  void SetLegendBorder(int b);
162  void SetLegendBox(int b);
163  void SetLegendBoxColor(double r, double g, double b);
164  void SetLegendPosition(double x, double y);
165  void SetLegendPosition2(double x, double y);
166  void SetLineWidth(double w);
167  void SetPlotColor(int i, int r, int g, int b);
168  void SetPlotLines(int i);
169  void SetPlotPoints(int i);
170  void SetPlotLabel(int i, const char* label);
172 
173 protected:
176 
178 private:
179  vtkXYPlotRepresentation(const vtkXYPlotRepresentation &) VTK_DELETE_FUNCTION;
180  void operator=(const vtkXYPlotRepresentation &) VTK_DELETE_FUNCTION;
181 };
182 
183 #endif //vtkXYPlotRepresentation_h
represent a vtkBorderWidget
a simple class to control print indentation
Definition: vtkIndent.h:40
a list of Props
abstract specification for Viewports
Definition: vtkViewport.h:48
window superclass for vtkRenderWindow
Definition: vtkWindow.h:35
generate an x-y plot from input dataset(s) or field data
represent XY plot for vtkXYPlotWidget
virtual void GetSize(double size[2])
virtual void ReleaseGraphicsResources(vtkWindow *window)
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE Release any graphics resources that are being...
void SetTitle(const char *title)
Set title properties.
void SetLegendBorder(int b)
virtual int GetVisibility()
These methods are necessary to make this representation behave as a vtkProp.
virtual void WidgetInteraction(double eventPos[2])
void SetAxisTitleShadow(int x)
void SetLineWidth(double w)
void SetAxisLabelFontSize(int x)
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)
void SetTitleColor(double r, double g, double b)
void SetYTitlePosition(int pos)
void SetLegendPosition2(double x, double y)
virtual int RenderOpaqueGeometry(vtkViewport *)
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE DO NOT USE THESE METHODS OUTSIDE OF THE RENDE...
void SetAxisLabelJustification(int x)
void SetAxisLabelFontFamily(int x)
virtual int RenderOverlay(vtkViewport *)
virtual int RenderTranslucentPolygonalGeometry(vtkViewport *)
void SetTitleJustification(int x)
virtual void BuildRepresentation()
Satisfy the superclass' API.
void SetBorder(int x)
Set various properties.
void SetPlotGlyphType(int curve, int glyph)
static vtkXYPlotRepresentation * New()
void SetAxisLabelItalic(int x)
void SetGlyphSize(double x)
Set glyph properties.
void AddUserCurvesPoint(double c, double x, double y)
void SetAdjustTitlePosition(int x)
void SetTitleVerticalJustification(int x)
void SetTitlePosition(double x, double y)
void SetPlotLabel(int i, const char *label)
virtual void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
void SetTitleFontFamily(int x)
void SetLegendBoxColor(double r, double g, double b)
virtual void SetVisibility(int)
Set/Get visibility of this vtkProp.
void SetAxisLabelBold(int x)
void SetAxisTitleJustification(int x)
void SetAxisTitleFontFamily(int x)
void SetAxisLabelVerticalJustification(int x)
void SetAxisLabelShadow(int x)
void SetXTitle(const char *ytitle)
int GetYTitlePosition() const
void SetPlotColor(int i, int r, int g, int b)
void SetTitleItalic(int x)
void SetLegendPosition(double x, double y)
void SetAxisTitleColor(double r, double g, double b)
Set axis title properties.
void SetYRange(double min, double max)
void SetAxisLabelColor(double r, double g, double b)
Set axis label properties.
virtual void SetXYPlotActor(vtkXYPlotActor *)
void SetYAxisColor(double r, double g, double b)
virtual int HasTranslucentPolygonalGeometry()
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE DO NOT USE THESE METHODS OUTSIDE OF THE RENDE...
void SetYLabelFormat(const char *_arg)
void SetXRange(double min, double max)
void SetAxisTitleBold(int x)
void SetTitleShadow(int x)
void SetAxisTitleItalic(int x)
void SetXLabelFormat(const char *_arg)
void SetYTitle(const char *ytitle)
void SetAxisTitleVerticalJustification(int x)
void SetAxisTitleFontSize(int x)
@ size
Definition: vtkX3D.h:253
@ title
Definition: vtkX3D.h:500
#define max(a, b)