VTK
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:
47  virtual void PrintSelf(ostream &os, vtkIndent indent);
48 
50 
52  void SetPen(vtkPen *pen);
55 
57 
59  void SetSelectionPen(vtkPen *pen);
62 
64 
65  virtual void SetInputData(vtkTable *input);
66  virtual void SetInputData(vtkTable *input, const vtkStdString &xName,
67  const vtkStdString &yName,
68  const vtkStdString &zName);
69  virtual void SetInputData(vtkTable *input, const vtkStdString &xName,
70  const vtkStdString &yName,
71  const vtkStdString &zName,
72  const vtkStdString &colorName);
73  virtual void SetInputData(vtkTable *input, vtkIdType xColumn,
74  vtkIdType yColumn, vtkIdType zColumn);
76 
81  virtual void SetColors(vtkDataArray *colorArr);
82 
84  std::vector<vtkVector3f> GetPoints();
85 
87 
89  virtual void SetChart(vtkChartXYZ* chart);
91 
94 
97 
100 
102  std::vector<vtkVector3f> GetDataBounds() { return this->DataBounds; }
103 
105 
106  virtual void SetSelection(vtkIdTypeArray *id);
109 
110 //BTX
111 protected:
114 
116  virtual void ComputeDataBounds();
117 
120 
123 
126 
131 
134 
137 
140 
142  std::vector<vtkVector3f> Points;
143 
146 
149 
151  std::vector<vtkVector3f> DataBounds;
152 
155 
156 private:
157  vtkPlot3D(const vtkPlot3D &); // Not implemented.
158  void operator=(const vtkPlot3D &); // Not implemented.
159 
160 //ETX
161 };
162 
163 #endif //vtkPlot3D_h
vtkPlot3D::SetInputData
virtual void SetInputData(vtkTable *input)
vtkChartsCoreModule.h
vtkGetObjectMacro
#define vtkGetObjectMacro(name, type)
Definition: vtkSetGet.h:232
vtkPlot3D::PointsBuildTime
vtkTimeStamp PointsBuildTime
Definition: vtkPlot3D.h:145
vtkPlot3D::GetPoints
std::vector< vtkVector3f > GetPoints()
vtkPlot3D::Chart
vtkChartXYZ * Chart
Definition: vtkPlot3D.h:148
vtkIdType
int vtkIdType
Definition: vtkType.h:275
vtkTable
A table, which contains similar-typed columns of data.
Definition: vtkTable.h:68
vtkTimeStamp
record modification and/or execution time
Definition: vtkTimeStamp.h:35
vtkChartXYZ
Factory class for drawing 3D XYZ charts.
Definition: vtkChartXYZ.h:48
vtkUnsignedCharArray
dynamic, self-adjusting array of unsigned char
Definition: vtkUnsignedCharArray.h:49
vtkTypeMacro
#define vtkTypeMacro(thisClass, superclass)
Definition: vtkSetGet.h:642
vtkSmartPointer< vtkPen >
vtkPlot3D::GetXAxisLabel
std::string GetXAxisLabel()
vtkVector.h
vtkPlot3D::GetSelection
virtual vtkIdTypeArray * GetSelection()
vtkPlot3D::SetSelectionPen
void SetSelectionPen(vtkPen *pen)
vtkPlot3D::PrintSelf
virtual void PrintSelf(ostream &os, vtkIndent indent)
vtkDataArray
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:55
vtkPlot3D::SetInputData
virtual void SetInputData(vtkTable *input, vtkIdType xColumn, vtkIdType yColumn, vtkIdType zColumn)
vtkContextItem.h
vtkgl::input
GLenum GLenum GLenum input
Definition: vtkgl.h:15941
vtkPlot3D::GetZAxisLabel
std::string GetZAxisLabel()
vtkPlot3D::vtkPlot3D
vtkPlot3D()
vtkPlot3D::XAxisLabel
std::string XAxisLabel
Definition: vtkPlot3D.h:133
vtkPlot3D::SetSelection
virtual void SetSelection(vtkIdTypeArray *id)
vtkPlot3D::NumberOfComponents
int NumberOfComponents
Definition: vtkPlot3D.h:130
vtkPlot3D::ZAxisLabel
std::string ZAxisLabel
Definition: vtkPlot3D.h:139
vtkPlot3D::GetYAxisLabel
std::string GetYAxisLabel()
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkSmartPointer.h
vtkPlot3D::Colors
vtkNew< vtkUnsignedCharArray > Colors
Definition: vtkPlot3D.h:125
vtkPlot3D::SetColors
virtual void SetColors(vtkDataArray *colorArr)
vtkPlot3D::SelectionPen
vtkSmartPointer< vtkPen > SelectionPen
Definition: vtkPlot3D.h:122
vtkPlot3D::Points
std::vector< vtkVector3f > Points
Definition: vtkPlot3D.h:142
vtkNew< vtkUnsignedCharArray >
vtkPlot3D::SetInputData
virtual void SetInputData(vtkTable *input, const vtkStdString &xName, const vtkStdString &yName, const vtkStdString &zName)
vtkPlot3D::GetPen
vtkPen * GetPen()
vtkPlot3D::YAxisLabel
std::string YAxisLabel
Definition: vtkPlot3D.h:136
vtkContextItem
base class for items that are part of a vtkContextScene.
Definition: vtkContextItem.h:34
vtkPlot3D
Abstract class for 3D plots.
Definition: vtkPlot3D.h:44
vtkPlot3D::GetSelectionPen
vtkPen * GetSelectionPen()
vtkIdTypeArray
dynamic, self-adjusting array of vtkIdType
Definition: vtkIdTypeArray.h:49
vtkNew.h
vtkPlot3D::SetChart
virtual void SetChart(vtkChartXYZ *chart)
vtkPlot3D::SetPen
void SetPen(vtkPen *pen)
vtkPlot3D::GetDataBounds
std::vector< vtkVector3f > GetDataBounds()
Definition: vtkPlot3D.h:102
vtkPlot3D::~vtkPlot3D
~vtkPlot3D()
vtkPen
provides a pen that draws the outlines of shapes drawn by vtkContext2D.
Definition: vtkPen.h:39
vtkStdString
Wrapper around std::string to keep symbols short.
Definition: vtkStdString.h:48
vtkPlot3D::ComputeDataBounds
virtual void ComputeDataBounds()
VTKCHARTSCORE_EXPORT
#define VTKCHARTSCORE_EXPORT
Definition: vtkChartsCoreModule.h:15
vtkPlot3D::Pen
vtkSmartPointer< vtkPen > Pen
Definition: vtkPlot3D.h:119
vtkPlot3D::DataBounds
std::vector< vtkVector3f > DataBounds
Definition: vtkPlot3D.h:151
vtkPlot3D::SetInputData
virtual void SetInputData(vtkTable *input, const vtkStdString &xName, const vtkStdString &yName, const vtkStdString &zName, const vtkStdString &colorName)
vtkgl::string
GLsizei const GLchar ** string
Definition: vtkgl.h:12011
vtkPlot3D::Selection
vtkSmartPointer< vtkIdTypeArray > Selection
Definition: vtkPlot3D.h:154