/usr/include/vtk-7.1/vtkPlot3D.h is in libvtk7-dev 7.1.1+dfsg1-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 | /*=========================================================================
Program: Visualization Toolkit
Module: vtkPlot3D.h
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
This software is distributed WITHOUT ANY WARRANTY; without even
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE. See the above copyright notice for more information.
=========================================================================*/
/**
* @class vtkPlot3D
* @brief Abstract class for 3D plots.
*
*
* The base class for all plot types used in vtkChart derived charts.
*
* @sa
* vtkPlot3DPoints vtkPlot3DLine vtkPlot3DBar vtkChart vtkChartXY
*/
#ifndef vtkPlot3D_h
#define vtkPlot3D_h
#include "vtkChartsCoreModule.h" // For export macro
#include "vtkContextItem.h"
#include "vtkNew.h" // Needed to hold vtkNew ivars
#include "vtkSmartPointer.h" // Needed to hold SP ivars
#include "vtkVector.h" // For Points ivar
#include <vector> // For ivars
class vtkChartXYZ;
class vtkDataArray;
class vtkIdTypeArray;
class vtkTable;
class vtkUnsignedCharArray;
class vtkPen;
class VTKCHARTSCORE_EXPORT vtkPlot3D : public vtkContextItem
{
public:
vtkTypeMacro(vtkPlot3D, vtkContextItem);
virtual void PrintSelf(ostream &os, vtkIndent indent);
//@{
/**
* Set/get the vtkPen object that controls how this plot draws (out)lines.
*/
void SetPen(vtkPen *pen);
vtkPen* GetPen();
//@}
//@{
/**
* Set/get the vtkPen object that controls how this plot draws (out)lines.
*/
void SetSelectionPen(vtkPen *pen);
vtkPen* GetSelectionPen();
//@}
//@{
/**
* Set the input to the plot.
*/
virtual void SetInputData(vtkTable *input);
virtual void SetInputData(vtkTable *input, const vtkStdString &xName,
const vtkStdString &yName,
const vtkStdString &zName);
virtual void SetInputData(vtkTable *input, const vtkStdString &xName,
const vtkStdString &yName,
const vtkStdString &zName,
const vtkStdString &colorName);
virtual void SetInputData(vtkTable *input, vtkIdType xColumn,
vtkIdType yColumn, vtkIdType zColumn);
//@}
/**
* Set the color of each point in the plot. The input is a single component
* scalar array. The values of this array will be passed through a lookup
* table to generate the color for each data point in the plot.
*/
virtual void SetColors(vtkDataArray *colorArr);
/**
* Get all the data points within this plot.
*/
std::vector<vtkVector3f> GetPoints();
//@{
/**
* Get/set the chart for this plot.
*/
vtkGetObjectMacro(Chart, vtkChartXYZ);
virtual void SetChart(vtkChartXYZ* chart);
//@}
/**
* Get the label for the X axis.
*/
std::string GetXAxisLabel();
/**
* Get the label for the Y axis.
*/
std::string GetYAxisLabel();
/**
* Get the label for the Z axis.
*/
std::string GetZAxisLabel();
/**
* Get the bounding cube surrounding the currently rendered data points.
*/
std::vector<vtkVector3f> GetDataBounds() { return this->DataBounds; }
//@{
/**
* Set/get the selection array for the plot.
*/
virtual void SetSelection(vtkIdTypeArray *id);
virtual vtkIdTypeArray* GetSelection();
//@}
protected:
vtkPlot3D();
~vtkPlot3D();
/**
* Generate a bounding cube for our data.
*/
virtual void ComputeDataBounds();
/**
* This object stores the vtkPen that controls how the plot is drawn.
*/
vtkSmartPointer<vtkPen> Pen;
/**
* This object stores the vtkPen that controls how the plot is drawn.
*/
vtkSmartPointer<vtkPen> SelectionPen;
/**
* This array assigns a color to each datum in the plot.
*/
vtkNew<vtkUnsignedCharArray> Colors;
/**
* Number of components in our color vectors. This value is initialized
* to zero. It's typically set to 3 or 4 if the points are to be colored.
*/
int NumberOfComponents;
/**
* The label for the X Axis.
*/
std::string XAxisLabel;
/**
* The label for the Y Axis.
*/
std::string YAxisLabel;
/**
* The label for the Z Axis.
*/
std::string ZAxisLabel;
/**
* The data points read in during SetInputData().
*/
std::vector<vtkVector3f> Points;
/**
* When the points were last built.
*/
vtkTimeStamp PointsBuildTime;
/**
* The chart containing this plot.
*/
vtkChartXYZ* Chart;
/**
* A bounding cube surrounding the currently rendered data points.
*/
std::vector<vtkVector3f> DataBounds;
/**
* Selected indices for the table the plot is rendering
*/
vtkSmartPointer<vtkIdTypeArray> Selection;
private:
vtkPlot3D(const vtkPlot3D &) VTK_DELETE_FUNCTION;
void operator=(const vtkPlot3D &) VTK_DELETE_FUNCTION;
};
#endif //vtkPlot3D_h
|