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

dox/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 =========================================================================*/
00037 #ifndef __vtkQuadraticEdge_h
00038 #define __vtkQuadraticEdge_h
00039 
00040 #include "vtkNonLinearCell.h"
00041 
00042 class vtkPolyData;
00043 class vtkLine;
00044 
00045 class VTK_COMMON_EXPORT vtkQuadraticEdge : public vtkNonLinearCell
00046 {
00047 public:
00048   static vtkQuadraticEdge *New();
00049   vtkTypeRevisionMacro(vtkQuadraticEdge,vtkNonLinearCell);
00050 
00052 
00054   int GetCellType() {return VTK_QUADRATIC_EDGE;};
00055   int GetCellDimension() {return 1;}
00056   int GetNumberOfEdges() {return 0;}
00057   int GetNumberOfFaces() {return 0;}
00058   vtkCell *GetEdge(int) {return 0;}
00059   vtkCell *GetFace(int) {return 0;}
00061 
00062   int CellBoundary(int subId, float pcoords[3], vtkIdList *pts);
00063   void Contour(float value, vtkDataArray *cellScalars, 
00064                vtkPointLocator *locator, vtkCellArray *verts, 
00065                vtkCellArray *lines, vtkCellArray *polys, 
00066                vtkPointData *inPd, vtkPointData *outPd,
00067                vtkCellData *inCd, vtkIdType cellId, vtkCellData *outCd);
00068   int EvaluatePosition(float x[3], float* closestPoint,
00069                        int& subId, float pcoords[3], 
00070                        float& dist2, float *weights);
00071   void EvaluateLocation(int& subId, float pcoords[3], float x[3],
00072                         float *weights);
00073   int Triangulate(int index, vtkIdList *ptIds, vtkPoints *pts);
00074   void Derivatives(int subId, float pcoords[3], float *values, 
00075                    int dim, float *derivs);
00076 
00078 
00080   void Clip(float value, vtkDataArray *cellScalars, 
00081             vtkPointLocator *locator, vtkCellArray *lines,
00082             vtkPointData *inPd, vtkPointData *outPd,
00083             vtkCellData *inCd, vtkIdType cellId, vtkCellData *outCd,
00084             int insideOut);
00086 
00088 
00090   int IntersectWithLine(float p1[3], float p2[3], float tol, float& t,
00091                         float x[3], float pcoords[3], int& subId);
00093 
00094   
00096 
00097   static void InterpolationFunctions(float pcoords[3], float weights[3]);
00098   static void InterpolationDerivs(float pcoords[3], float derivs[3]);
00100 
00101 protected:
00102   vtkQuadraticEdge();
00103   ~vtkQuadraticEdge();
00104 
00105   vtkLine *Line;
00106 
00107 private:
00108   vtkQuadraticEdge(const vtkQuadraticEdge&);  // Not implemented.
00109   void operator=(const vtkQuadraticEdge&);  // Not implemented.
00110 };
00111 
00112 #endif
00113 
00114