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

vtkQuad.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    $RCSfile: vtkQuad.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 =========================================================================*/
00040 #ifndef __vtkQuad_h
00041 #define __vtkQuad_h
00042 
00043 #include "vtkCell.h"
00044 
00045 class vtkLine;
00046 class vtkTriangle;
00047 
00048 class VTK_FILTERING_EXPORT vtkQuad : public vtkCell
00049 {
00050 public:
00051   static vtkQuad *New();
00052   vtkTypeRevisionMacro(vtkQuad,vtkCell);
00053   void PrintSelf(ostream& os, vtkIndent indent);
00054 
00056 
00057   int GetCellType() {return VTK_QUAD;};
00058   int GetCellDimension() {return 2;};
00059   int GetNumberOfEdges() {return 4;};
00060   int GetNumberOfFaces() {return 0;};
00061   vtkCell *GetEdge(int edgeId);
00062   vtkCell *GetFace(int) {return 0;};
00063   int CellBoundary(int subId, double pcoords[3], vtkIdList *pts);
00064   void Contour(double value, vtkDataArray *cellScalars, 
00065                vtkPointLocator *locator, vtkCellArray *verts, 
00066                vtkCellArray *lines, vtkCellArray *polys,
00067                vtkPointData *inPd, vtkPointData *outPd,
00068                vtkCellData *inCd, vtkIdType cellId, vtkCellData *outCd);
00069   int EvaluatePosition(double x[3], double* closestPoint,
00070                        int& subId, double pcoords[3],
00071                        double& dist2, double *weights);
00072   void EvaluateLocation(int& subId, double pcoords[3], double x[3],
00073                         double *weights);
00074   int IntersectWithLine(double p1[3], double p2[3], double tol, double& t,
00075                         double x[3], double pcoords[3], int& subId);
00076   int Triangulate(int index, vtkIdList *ptIds, vtkPoints *pts);
00077   void Derivatives(int subId, double pcoords[3], double *values, 
00078                    int dim, double *derivs);
00079   virtual double *GetParametricCoords();
00081 
00083 
00085   void Clip(double value, vtkDataArray *cellScalars, 
00086             vtkPointLocator *locator, vtkCellArray *polys,
00087             vtkPointData *inPd, vtkPointData *outPd,
00088             vtkCellData *inCd, vtkIdType cellId, vtkCellData *outCd,
00089             int insideOut);
00091 
00093 
00094   static void InterpolationFunctions(double pcoords[3], double sf[4]);
00095   static void InterpolationDerivs(double pcoords[3], double derivs[8]);
00097 
00098 protected:
00099   vtkQuad();
00100   ~vtkQuad();
00101 
00102   vtkLine     *Line;
00103   vtkTriangle *Triangle;
00104 
00105 private:
00106   vtkQuad(const vtkQuad&);  // Not implemented.
00107   void operator=(const vtkQuad&);  // Not implemented.
00108 };
00109 
00110 #endif
00111 
00112