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

vtkQuadraticEdge.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    $RCSfile: vtkQuadraticEdge.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 =========================================================================*/
00043 #ifndef __vtkQuadraticEdge_h
00044 #define __vtkQuadraticEdge_h
00045 
00046 #include "vtkNonLinearCell.h"
00047 
00048 class vtkPolyData;
00049 class vtkLine;
00050 
00051 class VTK_FILTERING_EXPORT vtkQuadraticEdge : public vtkNonLinearCell
00052 {
00053 public:
00054   static vtkQuadraticEdge *New();
00055   vtkTypeRevisionMacro(vtkQuadraticEdge,vtkNonLinearCell);
00056   void PrintSelf(ostream& os, vtkIndent indent);
00057 
00059 
00061   int GetCellType() {return VTK_QUADRATIC_EDGE;};
00062   int GetCellDimension() {return 1;}
00063   int GetNumberOfEdges() {return 0;}
00064   int GetNumberOfFaces() {return 0;}
00065   vtkCell *GetEdge(int) {return 0;}
00066   vtkCell *GetFace(int) {return 0;}
00068 
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   int EvaluatePosition(double x[3], double* closestPoint,
00076                        int& subId, double pcoords[3], 
00077                        double& dist2, double *weights);
00078   void EvaluateLocation(int& subId, double pcoords[3], double x[3],
00079                         double *weights);
00080   int Triangulate(int index, vtkIdList *ptIds, vtkPoints *pts);
00081   void Derivatives(int subId, double pcoords[3], double *values, 
00082                    int dim, double *derivs);
00083   virtual double *GetParametricCoords();
00084 
00086 
00088   void Clip(double value, vtkDataArray *cellScalars, 
00089             vtkPointLocator *locator, vtkCellArray *lines,
00090             vtkPointData *inPd, vtkPointData *outPd,
00091             vtkCellData *inCd, vtkIdType cellId, vtkCellData *outCd,
00092             int insideOut);
00094 
00096 
00098   int IntersectWithLine(double p1[3], double p2[3], double tol, double& t,
00099                         double x[3], double pcoords[3], int& subId);
00101 
00102   
00104 
00105   static void InterpolationFunctions(double pcoords[3], double weights[3]);
00106   static void InterpolationDerivs(double pcoords[3], double derivs[3]);
00108 
00109 protected:
00110   vtkQuadraticEdge();
00111   ~vtkQuadraticEdge();
00112 
00113   vtkLine *Line;
00114 
00115 private:
00116   vtkQuadraticEdge(const vtkQuadraticEdge&);  // Not implemented.
00117   void operator=(const vtkQuadraticEdge&);  // Not implemented.
00118 };
00119 
00120 #endif
00121 
00122