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

Common/vtkQuadraticEdge.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    $RCSfile: vtkQuadraticEdge.h,v $
00005   Language:  C++
00006 
00007   Copyright (c) 1993-2002 Ken Martin, Will Schroeder, Bill Lorensen 
00008   All rights reserved.
00009   See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
00010 
00011      This software is distributed WITHOUT ANY WARRANTY; without even 
00012      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 
00013      PURPOSE.  See the above copyright notice for more information.
00014 
00015 =========================================================================*/
00049 #ifndef __vtkQuadraticEdge_h
00050 #define __vtkQuadraticEdge_h
00051 
00052 #include "vtkNonLinearCell.h"
00053 
00054 class vtkPolyData;
00055 class vtkLine;
00056 
00057 class VTK_COMMON_EXPORT vtkQuadraticEdge : public vtkNonLinearCell
00058 {
00059 public:
00060   static vtkQuadraticEdge *New();
00061   vtkTypeRevisionMacro(vtkQuadraticEdge,vtkNonLinearCell);
00062 
00064 
00066   int GetCellType() {return VTK_QUADRATIC_EDGE;};
00067   int GetCellDimension() {return 1;}
00068   int GetNumberOfEdges() {return 0;}
00069   int GetNumberOfFaces() {return 0;}
00070   vtkCell *GetEdge(int) {return 0;}
00071   vtkCell *GetFace(int) {return 0;}
00073 
00074   int CellBoundary(int subId, float pcoords[3], vtkIdList *pts);
00075   void Contour(float value, vtkDataArray *cellScalars, 
00076                vtkPointLocator *locator, vtkCellArray *verts, 
00077                vtkCellArray *lines, vtkCellArray *polys, 
00078                vtkPointData *inPd, vtkPointData *outPd,
00079                vtkCellData *inCd, vtkIdType cellId, vtkCellData *outCd);
00080   int EvaluatePosition(float x[3], float* closestPoint,
00081                        int& subId, float pcoords[3], 
00082                        float& dist2, float *weights);
00083   void EvaluateLocation(int& subId, float pcoords[3], float x[3],
00084                         float *weights);
00085   int Triangulate(int index, vtkIdList *ptIds, vtkPoints *pts);
00086   void Derivatives(int subId, float pcoords[3], float *values, 
00087                    int dim, float *derivs);
00088 
00090 
00092   void Clip(float value, vtkDataArray *cellScalars, 
00093             vtkPointLocator *locator, vtkCellArray *lines,
00094             vtkPointData *inPd, vtkPointData *outPd,
00095             vtkCellData *inCd, vtkIdType cellId, vtkCellData *outCd,
00096             int insideOut);
00098 
00100 
00102   int IntersectWithLine(float p1[3], float p2[3], float tol, float& t,
00103                         float x[3], float pcoords[3], int& subId);
00105 
00106   
00108 
00109   static void InterpolationFunctions(float pcoords[3], float weights[3]);
00110   static void InterpolationDerivs(float pcoords[3], float derivs[3]);
00112 
00113 protected:
00114   vtkQuadraticEdge();
00115   ~vtkQuadraticEdge();
00116 
00117   vtkLine *Line;
00118 
00119 private:
00120   vtkQuadraticEdge(const vtkQuadraticEdge&);  // Not implemented.
00121   void operator=(const vtkQuadraticEdge&);  // Not implemented.
00122 };
00123 
00124 #endif
00125 
00126