/usr/include/vtk-6.3/vtkPlot3D.h is in libvtk6-dev 6.3.0+dfsg1-5.
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 | /*=========================================================================
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.
=========================================================================*/
// .NAME vtkPlot3D - Abstract class for 3D plots.
//
// .SECTION Description
// The base class for all plot types used in vtkChart derived charts.
//
// .SECTION See Also
// 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);
// Description:
// Set/get the vtkPen object that controls how this plot draws (out)lines.
void SetPen(vtkPen *pen);
vtkPen* GetPen();
// Description:
// Set/get the vtkPen object that controls how this plot draws (out)lines.
void SetSelectionPen(vtkPen *pen);
vtkPen* GetSelectionPen();
// Description:
// 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);
// Description:
// 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);
// Description:
// Get all the data points within this plot.
std::vector<vtkVector3f> GetPoints();
// Description:
// Get/set the chart for this plot.
vtkGetObjectMacro(Chart, vtkChartXYZ);
virtual void SetChart(vtkChartXYZ* chart);
// Description:
// Get the label for the X axis.
std::string GetXAxisLabel();
// Description:
// Get the label for the Y axis.
std::string GetYAxisLabel();
// Description:
// Get the label for the Z axis.
std::string GetZAxisLabel();
// Description:
// Get the bounding cube surrounding the currently rendered data points.
std::vector<vtkVector3f> GetDataBounds() { return this->DataBounds; }
// Description:
// Set/get the selection array for the plot.
virtual void SetSelection(vtkIdTypeArray *id);
virtual vtkIdTypeArray* GetSelection();
//BTX
protected:
vtkPlot3D();
~vtkPlot3D();
// Description:
// Generate a bounding cube for our data.
virtual void ComputeDataBounds();
// Description:
// This object stores the vtkPen that controls how the plot is drawn.
vtkSmartPointer<vtkPen> Pen;
// Description:
// This object stores the vtkPen that controls how the plot is drawn.
vtkSmartPointer<vtkPen> SelectionPen;
// Description:
// This array assigns a color to each datum in the plot.
vtkNew<vtkUnsignedCharArray> Colors;
// Description:
// 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;
// Description:
// The label for the X Axis.
std::string XAxisLabel;
// Description:
// The label for the Y Axis.
std::string YAxisLabel;
// Description:
// The label for the Z Axis.
std::string ZAxisLabel;
// Description:
// The data points read in during SetInputData().
std::vector<vtkVector3f> Points;
// Description:
// When the points were last built.
vtkTimeStamp PointsBuildTime;
// Description:
// The chart containing this plot.
vtkChartXYZ* Chart;
// Description:
// A bounding cube surrounding the currently rendered data points.
std::vector<vtkVector3f> DataBounds;
// Description:
// Selected indices for the table the plot is rendering
vtkSmartPointer<vtkIdTypeArray> Selection;
private:
vtkPlot3D(const vtkPlot3D &); // Not implemented.
void operator=(const vtkPlot3D &); // Not implemented.
//ETX
};
#endif //vtkPlot3D_h
|