VTK
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
dox
Charts
Core
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
;
40
class
vtkUnsignedCharArray
;
41
class
vtkPen
;
42
43
class
VTKCHARTSCORE_EXPORT
vtkPlot3D
:
public
vtkContextItem
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
112
vtkSmartPointer<vtkPen>
Pen
;
113
115
vtkNew<vtkUnsignedCharArray>
Colors
;
116
120
int
NumberOfComponents
;
121
123
std::string
XAxisLabel
;
124
126
std::string
YAxisLabel
;
127
129
std::string
ZAxisLabel
;
130
132
std::vector<vtkVector3f>
Points
;
133
135
vtkTimeStamp
PointsBuildTime
;
136
138
vtkChartXYZ
*
Chart
;
139
141
std::vector<vtkVector3f>
DataBounds
;
142
144
vtkSmartPointer<vtkIdTypeArray>
Selection
;
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
vtkPlot3D::XAxisLabel
std::string XAxisLabel
Definition:
vtkPlot3D.h:123
vtkStdString
Wrapper around std::string to keep symbols short.
Definition:
vtkStdString.h:46
vtkgl::input
GLenum GLenum GLenum input
Definition:
vtkgl.h:15941
vtkContextItem
base class for items that are part of a vtkContextScene.
Definition:
vtkContextItem.h:33
vtkTimeStamp
record modification and/or execution time
Definition:
vtkTimeStamp.h:34
vtkPlot3D::DataBounds
std::vector< vtkVector3f > DataBounds
Definition:
vtkPlot3D.h:141
vtkIdTypeArray
dynamic, self-adjusting array of vtkIdType
Definition:
vtkIdTypeArray.h:45
vtkSmartPointer< vtkPen >
vtkIdType
int vtkIdType
Definition:
vtkType.h:268
vtkPlot3D::Pen
vtkSmartPointer< vtkPen > Pen
Definition:
vtkPlot3D.h:112
vtkPlot3D::GetDataBounds
std::vector< vtkVector3f > GetDataBounds()
Definition:
vtkPlot3D.h:95
vtkPlot3D::NumberOfComponents
int NumberOfComponents
Definition:
vtkPlot3D.h:120
vtkIndent
a simple class to control print indentation
Definition:
vtkIndent.h:38
vtkDataArray
abstract superclass for arrays of numeric data
Definition:
vtkDataArray.h:53
vtkVector.h
vtkPlot3D::Points
std::vector< vtkVector3f > Points
Definition:
vtkPlot3D.h:132
vtkPen
provides a pen that draws the outlines of shapes drawn by vtkContext2D.
Definition:
vtkPen.h:38
vtkUnsignedCharArray
dynamic, self-adjusting array of unsigned char
Definition:
vtkUnsignedCharArray.h:45
vtkNew.h
vtkSmartPointer.h
vtkTable
A table, which contains similar-typed columns of data.
Definition:
vtkTable.h:67
vtkNew< vtkUnsignedCharArray >
vtkPlot3D::ZAxisLabel
std::string ZAxisLabel
Definition:
vtkPlot3D.h:129
vtkPlot3D::YAxisLabel
std::string YAxisLabel
Definition:
vtkPlot3D.h:126
vtkPlot3D::Chart
vtkChartXYZ * Chart
Definition:
vtkPlot3D.h:138
vtkPlot3D
Abstract class for 3D plots.
Definition:
vtkPlot3D.h:43
vtkContextItem::PrintSelf
virtual void PrintSelf(ostream &os, vtkIndent indent)
vtkPlot3D::Colors
vtkNew< vtkUnsignedCharArray > Colors
Definition:
vtkPlot3D.h:115
vtkContextItem.h
vtkChartXYZ
Factory class for drawing 3D XYZ charts.
Definition:
vtkChartXYZ.h:47
vtkgl::string
GLsizei const GLchar ** string
Definition:
vtkgl.h:12011
vtkPlot3D::Selection
vtkSmartPointer< vtkIdTypeArray > Selection
Definition:
vtkPlot3D.h:144
VTKCHARTSCORE_EXPORT
#define VTKCHARTSCORE_EXPORT
Definition:
vtkChartsCoreModule.h:15
vtkChartsCoreModule.h
vtkPlot3D::PointsBuildTime
vtkTimeStamp PointsBuildTime
Definition:
vtkPlot3D.h:135
Generated on Thu Mar 12 2015 20:31:26 for VTK by
1.8.8