Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

dox/Common/vtkPolyLine.h

Go to the documentation of this file.
00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: $RCSfile: vtkPolyLine.h,v $ 00005 00006 Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen 00007 All rights reserved. 00008 See Copyright.txt or http://www.kitware.com/Copyright.htm for details. 00009 00010 This software is distributed WITHOUT ANY WARRANTY; without even 00011 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 00012 PURPOSE. See the above copyright notice for more information. 00013 00014 =========================================================================*/ 00028 #ifndef __vtkPolyLine_h 00029 #define __vtkPolyLine_h 00030 00031 #include "vtkCell.h" 00032 00033 //#include "vtkPoints.h" 00034 //#include "vtkCellArray.h" 00035 //#include "vtkLine.h" 00036 class vtkPoints; 00037 class vtkCellArray; 00038 class vtkLine; 00039 class vtkDataArray; 00040 class vtkPointLocator; 00041 class vtkCellData; 00042 00043 class VTK_COMMON_EXPORT vtkPolyLine : public vtkCell 00044 { 00045 public: 00046 static vtkPolyLine *New(); 00047 vtkTypeRevisionMacro(vtkPolyLine,vtkCell); 00048 00050 00055 int GenerateSlidingNormals(vtkPoints *, vtkCellArray *, vtkDataArray *); 00056 int GenerateSlidingNormals(vtkPoints *, vtkCellArray *, vtkDataArray *, 00057 double* firstNormal); 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, double pcoords[3], vtkIdList *pts); 00069 void Contour(double 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(double 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(double x[3], double* closestPoint, 00080 int& subId, double pcoords[3], 00081 double& dist2, double *weights); 00082 void EvaluateLocation(int& subId, double pcoords[3], double x[3], 00083 double *weights); 00084 int IntersectWithLine(double p1[3], double p2[3], double tol, double& t, 00085 double x[3], double pcoords[3], int& subId); 00086 int Triangulate(int index, vtkIdList *ptIds, vtkPoints *pts); 00087 void Derivatives(int subId, double pcoords[3], double *values, 00088 int dim, double *derivs); 00089 int IsPrimaryCell() {return 0;} 00091 00093 int GetParametricCenter(double pcoords[3]); 00094 00095 00096 protected: 00097 vtkPolyLine(); 00098 ~vtkPolyLine(); 00099 00100 vtkLine *Line; 00101 00102 private: 00103 vtkPolyLine(const vtkPolyLine&); // Not implemented. 00104 void operator=(const vtkPolyLine&); // Not implemented. 00105 }; 00106 00107 #endif 00108 00109