VTK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
vtkPlot3D.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkPlot3D.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 
26 #ifndef __vtkPlot3D_h
27 #define __vtkPlot3D_h
28 
29 #include "vtkChartsCoreModule.h" // For export macro
30 #include "vtkContextItem.h"
31 #include "vtkNew.h" // Needed to hold vtkNew ivars
32 #include "vtkSmartPointer.h" // Needed to hold SP ivars
33 #include "vtkVector.h" // For Points ivar
34 #include <vector> // For ivars
35 
36 class vtkChartXYZ;
37 class vtkDataArray;
38 class vtkIdTypeArray;
39 class vtkTable;
41 class vtkPen;
42 
44 {
45 public:
46  vtkTypeMacro(vtkPlot3D, vtkContextItem);
47  virtual void PrintSelf(ostream &os, vtkIndent indent);
48 
50 
52  void SetPen(vtkPen *pen);
53  vtkPen* GetPen();
55 
57 
58  virtual void SetInputData(vtkTable *input);
59  virtual void SetInputData(vtkTable *input, const vtkStdString &xName,
60  const vtkStdString &yName,
61  const vtkStdString &zName);
62  virtual void SetInputData(vtkTable *input, const vtkStdString &xName,
63  const vtkStdString &yName,
64  const vtkStdString &zName,
65  const vtkStdString &colorName);
66  virtual void SetInputData(vtkTable *input, vtkIdType xColumn,
67  vtkIdType yColumn, vtkIdType zColumn);
69 
74  virtual void SetColors(vtkDataArray *colorArr);
75 
77  std::vector<vtkVector3f> GetPoints();
78 
80 
81  vtkGetObjectMacro(Chart, vtkChartXYZ);
82  virtual void SetChart(vtkChartXYZ* chart);
84 
86  std::string GetXAxisLabel();
87 
89  std::string GetYAxisLabel();
90 
92  std::string GetZAxisLabel();
93 
95  std::vector<vtkVector3f> GetDataBounds() { return this->DataBounds; }
96 
98 
99  virtual void SetSelection(vtkIdTypeArray *id);
100  virtual vtkIdTypeArray* GetSelection();
102 
103 //BTX
104 protected:
105  vtkPlot3D();
106  ~vtkPlot3D();
107 
109  virtual void ComputeDataBounds();
110 
113 
116 
121 
124 
127 
130 
132  std::vector<vtkVector3f> Points;
133 
136 
139 
141  std::vector<vtkVector3f> DataBounds;
142 
145 
146 private:
147  vtkPlot3D(const vtkPlot3D &); // Not implemented.
148  void operator=(const vtkPlot3D &); // Not implemented.
149 
150 //ETX
151 };
152 
153 #endif //__vtkPlot3D_h
std::string XAxisLabel
Definition: vtkPlot3D.h:123
Wrapper around std::string to keep symbols short.
Definition: vtkStdString.h:46
GLenum GLenum GLenum input
Definition: vtkgl.h:15941
base class for items that are part of a vtkContextScene.
record modification and/or execution time
Definition: vtkTimeStamp.h:34
std::vector< vtkVector3f > DataBounds
Definition: vtkPlot3D.h:141
dynamic, self-adjusting array of vtkIdType
int vtkIdType
Definition: vtkType.h:268
vtkSmartPointer< vtkPen > Pen
Definition: vtkPlot3D.h:112
std::vector< vtkVector3f > GetDataBounds()
Definition: vtkPlot3D.h:95
int NumberOfComponents
Definition: vtkPlot3D.h:120
a simple class to control print indentation
Definition: vtkIndent.h:38
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:53
std::vector< vtkVector3f > Points
Definition: vtkPlot3D.h:132
provides a pen that draws the outlines of shapes drawn by vtkContext2D.
Definition: vtkPen.h:38
dynamic, self-adjusting array of unsigned char
A table, which contains similar-typed columns of data.
Definition: vtkTable.h:67
std::string ZAxisLabel
Definition: vtkPlot3D.h:129
std::string YAxisLabel
Definition: vtkPlot3D.h:126
vtkChartXYZ * Chart
Definition: vtkPlot3D.h:138
Abstract class for 3D plots.
Definition: vtkPlot3D.h:43
virtual void PrintSelf(ostream &os, vtkIndent indent)
vtkNew< vtkUnsignedCharArray > Colors
Definition: vtkPlot3D.h:115
Factory class for drawing 3D XYZ charts.
Definition: vtkChartXYZ.h:47
GLsizei const GLchar ** string
Definition: vtkgl.h:12011
vtkSmartPointer< vtkIdTypeArray > Selection
Definition: vtkPlot3D.h:144
#define VTKCHARTSCORE_EXPORT
vtkTimeStamp PointsBuildTime
Definition: vtkPlot3D.h:135