VTK
vtkArcPlotter.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: Visualization Toolkit
4 Module: vtkArcPlotter.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=========================================================================*/
44#ifndef vtkArcPlotter_h
45#define vtkArcPlotter_h
46
47#include "vtkRenderingAnnotationModule.h" // For export macro
49
50#define VTK_PLOT_SCALARS 1
51#define VTK_PLOT_VECTORS 2
52#define VTK_PLOT_NORMALS 3
53#define VTK_PLOT_TCOORDS 4
54#define VTK_PLOT_TENSORS 5
55#define VTK_PLOT_FIELD_DATA 6
56
57class vtkCamera;
58class vtkDataArray;
59class vtkPointData;
60class vtkPoints;
61
62class VTKRENDERINGANNOTATION_EXPORT vtkArcPlotter : public vtkPolyDataAlgorithm
63{
64public:
69 static vtkArcPlotter *New();
70
72 void PrintSelf(ostream& os, vtkIndent indent);
73
75
79 virtual void SetCamera(vtkCamera*);
80 vtkGetObjectMacro(Camera,vtkCamera);
82
84
89 vtkSetMacro(PlotMode, int);
90 vtkGetMacro(PlotMode, int);
91 void SetPlotModeToPlotScalars() {this->SetPlotMode(VTK_PLOT_SCALARS);};
92 void SetPlotModeToPlotVectors() {this->SetPlotMode(VTK_PLOT_VECTORS);};
93 void SetPlotModeToPlotNormals() {this->SetPlotMode(VTK_PLOT_NORMALS);};
94 void SetPlotModeToPlotTCoords() {this->SetPlotMode(VTK_PLOT_TCOORDS);};
95 void SetPlotModeToPlotTensors() {this->SetPlotMode(VTK_PLOT_TENSORS);};
97 {this->SetPlotMode(VTK_PLOT_FIELD_DATA);};
99
101
106 vtkSetMacro(PlotComponent,int);
107 vtkGetMacro(PlotComponent,int);
109
111
114 vtkSetClampMacro(Radius,double,0.0,VTK_FLOAT_MAX);
115 vtkGetMacro(Radius,double);
117
119
123 vtkSetClampMacro(Height,double,0.0,VTK_FLOAT_MAX);
124 vtkGetMacro(Height,double);
126
128
132 vtkSetClampMacro(Offset, double, 0.0, VTK_FLOAT_MAX);
133 vtkGetMacro(Offset, double);
135
137
142 vtkSetMacro(UseDefaultNormal,int);
143 vtkGetMacro(UseDefaultNormal,int);
144 vtkBooleanMacro(UseDefaultNormal,int);
146
148
152 vtkSetVector3Macro(DefaultNormal,float);
153 vtkGetVectorMacro(DefaultNormal,float,3);
155
157
161 vtkSetClampMacro(FieldDataArray,int,0,VTK_INT_MAX);
162 vtkGetMacro(FieldDataArray,int);
164
169
170protected:
173
175 int OffsetPoint(vtkIdType ptId, vtkPoints *inPts, double n[3],
176 vtkPoints *newPts, double offset,
177 double *range, double val);
179
183 double Radius;
184 double Height;
185 double Offset;
186 float DefaultNormal[3];
189
190private:
191 vtkDataArray *Data;
192 double *DataRange;
193 double *Tuple;
194 int NumberOfComponents;
195 int ActiveComponent;
196 int StartComp;
197 int EndComp;
198
199private:
200 vtkArcPlotter(const vtkArcPlotter&) VTK_DELETE_FUNCTION;
201 void operator=(const vtkArcPlotter&) VTK_DELETE_FUNCTION;
202};
203
204#endif
plot data along an arbitrary polyline
Definition: vtkArcPlotter.h:63
void SetPlotModeToPlotTCoords()
Definition: vtkArcPlotter.h:94
int OffsetPoint(vtkIdType ptId, vtkPoints *inPts, double n[3], vtkPoints *newPts, double offset, double *range, double val)
void SetPlotModeToPlotFieldData()
Definition: vtkArcPlotter.h:96
vtkMTimeType GetMTime()
New GetMTime because of camera dependency.
virtual void SetCamera(vtkCamera *)
Specify a camera used to orient the plot along the arc.
void SetPlotModeToPlotNormals()
Definition: vtkArcPlotter.h:93
void SetPlotModeToPlotScalars()
Definition: vtkArcPlotter.h:91
vtkCamera * Camera
int ProcessComponents(vtkIdType numPts, vtkPointData *pd)
void SetPlotModeToPlotVectors()
Definition: vtkArcPlotter.h:92
static vtkArcPlotter * New()
Instantiate with no default camera and plot mode set to VTK_SCALARS.
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called by the superclass.
void SetPlotModeToPlotTensors()
Definition: vtkArcPlotter.h:95
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
a virtual camera for 3D rendering
Definition: vtkCamera.h:51
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:55
a simple class to control print indentation
Definition: vtkIndent.h:40
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
represent and manipulate point attribute data
Definition: vtkPointData.h:38
represent and manipulate 3D points
Definition: vtkPoints.h:40
Superclass for algorithms that produce only polydata as output.
@ range
Definition: vtkX3D.h:238
@ offset
Definition: vtkX3D.h:438
#define VTK_PLOT_VECTORS
Definition: vtkArcPlotter.h:51
#define VTK_PLOT_SCALARS
Definition: vtkArcPlotter.h:50
#define VTK_PLOT_FIELD_DATA
Definition: vtkArcPlotter.h:55
#define VTK_PLOT_TCOORDS
Definition: vtkArcPlotter.h:53
#define VTK_PLOT_TENSORS
Definition: vtkArcPlotter.h:54
#define VTK_PLOT_NORMALS
Definition: vtkArcPlotter.h:52
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkBooleanMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
int vtkIdType
Definition: vtkType.h:287
vtkTypeUInt64 vtkMTimeType
Definition: vtkType.h:248
#define VTK_INT_MAX
Definition: vtkType.h:153
#define VTK_FLOAT_MAX
Definition: vtkType.h:161