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

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_FILTERING_EXPORT vtkPolyLine : public vtkCell
00044 {
00045 public:
00046   static vtkPolyLine *New();
00047   vtkTypeRevisionMacro(vtkPolyLine,vtkCell);
00048   void PrintSelf(ostream& os, vtkIndent indent);
00049 
00051 
00056   int GenerateSlidingNormals(vtkPoints *, vtkCellArray *, vtkDataArray *);
00057   int GenerateSlidingNormals(vtkPoints *, vtkCellArray *, vtkDataArray *, 
00058                              double* firstNormal);
00060 
00062 
00063   int GetCellType() {return VTK_POLY_LINE;};
00064   int GetCellDimension() {return 1;};
00065   int GetNumberOfEdges() {return 0;};
00066   int GetNumberOfFaces() {return 0;};
00067   vtkCell *GetEdge(int vtkNotUsed(edgeId)) {return 0;};
00068   vtkCell *GetFace(int vtkNotUsed(faceId)) {return 0;};
00069   int CellBoundary(int subId, double pcoords[3], vtkIdList *pts);
00070   void Contour(double value, vtkDataArray *cellScalars, 
00071                vtkPointLocator *locator, vtkCellArray *verts, 
00072                vtkCellArray *lines, vtkCellArray *polys, 
00073                vtkPointData *inPd, vtkPointData *outPd,
00074                vtkCellData *inCd, vtkIdType cellId, vtkCellData *outCd);
00075   void Clip(double value, vtkDataArray *cellScalars, 
00076             vtkPointLocator *locator, vtkCellArray *lines,
00077             vtkPointData *inPd, vtkPointData *outPd,
00078             vtkCellData *inCd, vtkIdType cellId, vtkCellData *outCd,
00079             int insideOut);
00080   int EvaluatePosition(double x[3], double* closestPoint,
00081                        int& subId, double pcoords[3],
00082                        double& dist2, double *weights);
00083   void EvaluateLocation(int& subId, double pcoords[3], double x[3],
00084                         double *weights);
00085   int IntersectWithLine(double p1[3], double p2[3], double tol, double& t,
00086                         double x[3], double pcoords[3], int& subId);
00087   int Triangulate(int index, vtkIdList *ptIds, vtkPoints *pts);
00088   void Derivatives(int subId, double pcoords[3], double *values, 
00089                    int dim, double *derivs);
00090   int IsPrimaryCell() {return 0;}
00092 
00094   int GetParametricCenter(double pcoords[3]);
00095 
00096   
00097 protected:
00098   vtkPolyLine();
00099   ~vtkPolyLine();
00100 
00101   vtkLine *Line;
00102 
00103 private:
00104   vtkPolyLine(const vtkPolyLine&);  // Not implemented.
00105   void operator=(const vtkPolyLine&);  // Not implemented.
00106 };
00107 
00108 #endif
00109 
00110 

Generated on Mon Jan 21 23:07:20 2008 for VTK by  doxygen 1.4.3-20050530