Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound 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 =========================================================================*/
00048 #ifndef __vtkQuadraticEdge_h
00049 #define __vtkQuadraticEdge_h
00050 
00051 #include "vtkNonLinearCell.h"
00052 
00053 class vtkPolyData;
00054 class vtkLine;
00055 
00056 class VTK_COMMON_EXPORT vtkQuadraticEdge : public vtkNonLinearCell
00057 {
00058 public:
00059   static vtkQuadraticEdge *New();
00060   vtkTypeRevisionMacro(vtkQuadraticEdge,vtkNonLinearCell);
00061 
00063 
00065   int GetCellType() {return VTK_QUADRATIC_EDGE;};
00066   int GetCellDimension() {return 1;}
00067   int GetNumberOfEdges() {return 0;}
00068   int GetNumberOfFaces() {return 0;}
00069   vtkCell *GetEdge(int) {return 0;}
00070   vtkCell *GetFace(int) {return 0;}
00072 
00073   int CellBoundary(int subId, float pcoords[3], vtkIdList *pts);
00074   void Contour(float value, vtkDataArray *cellScalars, 
00075                vtkPointLocator *locator, vtkCellArray *verts, 
00076                vtkCellArray *lines, vtkCellArray *polys, 
00077                vtkPointData *inPd, vtkPointData *outPd,
00078                vtkCellData *inCd, vtkIdType cellId, vtkCellData *outCd);
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 Triangulate(int index, vtkIdList *ptIds, vtkPoints *pts);
00085   void Derivatives(int subId, float pcoords[3], float *values, 
00086                    int dim, float *derivs);
00087 
00089 
00091   void Clip(float value, vtkDataArray *cellScalars, 
00092             vtkPointLocator *locator, vtkCellArray *lines,
00093             vtkPointData *inPd, vtkPointData *outPd,
00094             vtkCellData *inCd, vtkIdType cellId, vtkCellData *outCd,
00095             int insideOut);
00097 
00099 
00101   int IntersectWithLine(float p1[3], float p2[3], float tol, float& t,
00102                         float x[3], float pcoords[3], int& subId);
00104 
00105   
00107 
00108   static void InterpolationFunctions(float pcoords[3], float weights[3]);
00109   static void InterpolationDerivs(float pcoords[3], float derivs[3]);
00111 
00112 protected:
00113   vtkQuadraticEdge();
00114   ~vtkQuadraticEdge();
00115 
00116   vtkLine *Line;
00117 
00118 private:
00119   vtkQuadraticEdge(const vtkQuadraticEdge&);  // Not implemented.
00120   void operator=(const vtkQuadraticEdge&);  // Not implemented.
00121 };
00122 
00123 #endif
00124 
00125