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);
46 
48 
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*);
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);
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);
114  void SetAxisTitleBold(int x);
121 
123 
124  void SetAxisLabelColor(double r, double g, double b);
126  void SetAxisLabelBold(int x);
132  void SetXLabelFormat(const char* _arg);
133  void SetYLabelFormat(const char* _arg);
135 
137 
138  void SetBorder(int x);
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
vtkXYPlotRepresentation::SetLegend
void SetLegend(int x)
vtkXYPlotRepresentation::SetTitle
void SetTitle(const char *title)
vtkGetObjectMacro
#define vtkGetObjectMacro(name, type)
Definition: vtkSetGet.h:232
vtkXYPlotRepresentation::~vtkXYPlotRepresentation
~vtkXYPlotRepresentation()
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)
vtkgl::b
GLboolean GLboolean GLboolean b
Definition: vtkgl.h:12312
vtkBorderRepresentation
represent a vtkBorderWidget
Definition: vtkBorderRepresentation.h:58
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:158
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)
vtkTypeMacro
#define vtkTypeMacro(thisClass, superclass)
Definition: vtkSetGet.h:642
vtkXYPlotRepresentation::SetAxisLabelItalic
void SetAxisLabelItalic(int x)
vtkXYPlotRepresentation::SetLineWidth
void SetLineWidth(double w)
vtkInteractionWidgetsModule.h
vtkXYPlotRepresentation::SetAxisTitleBold
void SetAxisTitleBold(int x)
vtkgl::x
GLint GLint GLint GLint GLint x
Definition: vtkgl.h:11318
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)
vtkXYPlotRepresentation::SetTitlePosition
void SetTitlePosition(double x, double y)
vtkXYPlotRepresentation::SetLegendBorder
void SetLegendBorder(int b)
max
#define max(a, b)
Definition: vtkX3DExporterFIWriterHelper.h:30
vtkWindow
window superclass for vtkRenderWindow
Definition: vtkWindow.h:34
vtkXYPlotRepresentation::SetYLabelFormat
void SetYLabelFormat(const char *_arg)
vtkXYPlotRepresentation::SetAxisLabelJustification
void SetAxisLabelJustification(int x)
vtkX3D::title
@ title
Definition: vtkX3D.h:500
vtkXYPlotRepresentation::SetAxisTitleJustification
void SetAxisTitleJustification(int x)
vtkgl::c
const GLubyte * c
Definition: vtkgl.h:15720
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::SetTitleVerticalJustification
void SetTitleVerticalJustification(int x)
vtkXYPlotRepresentation::PrintSelf
virtual void PrintSelf(ostream &os, vtkIndent indent)
vtkXYPlotRepresentation::SetYRange
void SetYRange(double min, double max)
vtkXYPlotRepresentation::GetXTitle
char * GetXTitle()
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkXYPlotRepresentation::RenderOpaqueGeometry
virtual int RenderOpaqueGeometry(vtkViewport *)
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()
vtkXYPlotRepresentation::SetLegendBoxColor
void SetLegendBoxColor(double r, double g, double b)
vtkXYPlotRepresentation::HasTranslucentPolygonalGeometry
virtual int HasTranslucentPolygonalGeometry()
vtkXYPlotRepresentation::SetAxisTitleShadow
void SetAxisTitleShadow(int x)
vtkXYPlotRepresentation::SetXLabelFormat
void SetXLabelFormat(const char *_arg)
vtkViewport
abstract specification for Viewports
Definition: vtkViewport.h:47
vtkXYPlotRepresentation::GetVisibility
virtual int GetVisibility()
vtkXYPlotActor
generate an x-y plot from input dataset(s) or field data
Definition: vtkXYPlotActor.h:133
vtkXYPlotRepresentation::SetLegendPosition2
void SetLegendPosition2(double x, double y)
vtkXYPlotRepresentation::SetAxisTitleFontFamily
void SetAxisTitleFontFamily(int x)
vtkXYPlotRepresentation::SetXTitle
void SetXTitle(const char *ytitle)
vtkgl::r
GLdouble GLdouble GLdouble r
Definition: vtkgl.h:11610
vtkXYPlotRepresentation::SetPlotLines
void SetPlotLines(int i)
vtkXYPlotRepresentation::SetGlyphSize
void SetGlyphSize(double x)
VTKINTERACTIONWIDGETS_EXPORT
#define VTKINTERACTIONWIDGETS_EXPORT
Definition: vtkInteractionWidgetsModule.h:15
vtkgl::y
GLint GLint GLint GLint GLint GLint y
Definition: vtkgl.h:11318
vtkgl::g
GLboolean GLboolean g
Definition: vtkgl.h:12312
vtkXYPlotRepresentation::SetTitleBold
void SetTitleBold(int x)
vtkXYPlotRepresentation::SetTitleJustification
void SetTitleJustification(int x)
vtkXYPlotRepresentation::SetAxisLabelVerticalJustification
void SetAxisLabelVerticalJustification(int x)
vtkXYPlotRepresentation::BuildRepresentation
virtual void BuildRepresentation()
vtkXYPlotRepresentation::SetTitleFontSize
void SetTitleFontSize(int x)
vtkXYPlotRepresentation::SetLegendPosition
void SetLegendPosition(double x, double y)
vtkXYPlotRepresentation::WidgetInteraction
virtual void WidgetInteraction(double eventPos[2])
vtkXYPlotRepresentation::SetBorder
void SetBorder(int x)
vtkXYPlotRepresentation
represent XY plot for vtkXYPlotWidget
Definition: vtkXYPlotRepresentation.h:41
vtkXYPlotRepresentation::SetXAxisColor
void SetXAxisColor(double r, double g, double b)
vtkXYPlotRepresentation::SetAdjustTitlePosition
void SetAdjustTitlePosition(int x)
vtkgl::w
GLubyte GLubyte GLubyte GLubyte w
Definition: vtkgl.h:12054
vtkXYPlotRepresentation::SetPlotGlyphType
void SetPlotGlyphType(int curve, int glyph)
vtkPropCollection
a list of Props
Definition: vtkPropCollection.h:38
vtkXYPlotRepresentation::SetXValues
void SetXValues(int x)
vtkXYPlotRepresentation::SetTitleShadow
void SetTitleShadow(int x)
vtkXYPlotRepresentation::SetLegendBox
void SetLegendBox(int b)
vtkXYPlotRepresentation::vtkXYPlotRepresentation
vtkXYPlotRepresentation()
vtkXYPlotRepresentation::GetSize
virtual void GetSize(double size[2])
Definition: vtkXYPlotRepresentation.h:57
vtkXYPlotRepresentation::SetAxisTitleVerticalJustification
void SetAxisTitleVerticalJustification(int x)
vtkXYPlotRepresentation::GetActors2D
virtual void GetActors2D(vtkPropCollection *collection)
vtkXYPlotRepresentation::SetTitleFontFamily
void SetTitleFontFamily(int x)
vtkgl::size
GLsizeiptr size
Definition: vtkgl.h:11843
vtkXYPlotRepresentation::SetVisibility
virtual void SetVisibility(int)