dox/Common/vtkPolyLine.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00032
#ifndef __vtkPolyLine_h
00033
#define __vtkPolyLine_h
00034
00035
#include "vtkCell.h"
00036
00037
00038
00039
00040
class vtkPoints;
00041
class vtkCellArray;
00042
class vtkLine;
00043
class vtkDataArray;
00044
class vtkPointLocator;
00045
class vtkCellData;
00046
00047 class VTK_COMMON_EXPORT vtkPolyLine :
public vtkCell
00048 {
00049
public:
00050
static vtkPolyLine *
New();
00051 vtkTypeRevisionMacro(vtkPolyLine,
vtkCell);
00052
00058
int GenerateSlidingNormals(
vtkPoints *,
vtkCellArray *,
vtkDataArray *);
00059
00061
00062 int GetCellType() {
return VTK_POLY_LINE;};
00063 int GetCellDimension() {
return 1;};
00064 int GetNumberOfEdges() {
return 0;};
00065 int GetNumberOfFaces() {
return 0;};
00066 vtkCell *
GetEdge(
int vtkNotUsed(edgeId)) {
return 0;};
00067 vtkCell *
GetFace(
int vtkNotUsed(faceId)) {
return 0;};
00068
int CellBoundary(
int subId,
float pcoords[3],
vtkIdList *pts);
00069
void Contour(
float value,
vtkDataArray *cellScalars,
00070
vtkPointLocator *locator,
vtkCellArray *verts,
00071
vtkCellArray *lines,
vtkCellArray *polys,
00072
vtkPointData *inPd,
vtkPointData *outPd,
00073
vtkCellData *inCd,
vtkIdType cellId,
vtkCellData *outCd);
00074
void Clip(
float value,
vtkDataArray *cellScalars,
00075
vtkPointLocator *locator,
vtkCellArray *lines,
00076
vtkPointData *inPd,
vtkPointData *outPd,
00077
vtkCellData *inCd,
vtkIdType cellId,
vtkCellData *outCd,
00078
int insideOut);
00079
int EvaluatePosition(
float x[3],
float* closestPoint,
00080
int& subId,
float pcoords[3],
00081
float& dist2,
float *weights);
00082
void EvaluateLocation(
int& subId,
float pcoords[3],
float x[3],
00083
float *weights);
00084
int IntersectWithLine(
float p1[3],
float p2[3],
float tol,
float& t,
00085
float x[3],
float pcoords[3],
int& subId);
00086
int Triangulate(
int index,
vtkIdList *ptIds,
vtkPoints *pts);
00087
void Derivatives(
int subId,
float pcoords[3],
float *values,
00088
int dim,
float *derivs);
00090
00092
int GetParametricCenter(
float pcoords[3]);
00093
00094
00095
protected:
00096 vtkPolyLine();
00097 ~vtkPolyLine();
00098
00099 vtkLine *Line;
00100
00101
private:
00102 vtkPolyLine(
const vtkPolyLine&);
00103
void operator=(
const vtkPolyLine&);
00104 };
00105
00106
#endif
00107
00108