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

dox/Common/vtkQuadraticQuad.h

Go to the documentation of this file.
00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: $RCSfile: vtkQuadraticQuad.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 =========================================================================*/ 00035 #ifndef __vtkQuadraticQuad_h 00036 #define __vtkQuadraticQuad_h 00037 00038 #include "vtkNonLinearCell.h" 00039 00040 class vtkPolyData; 00041 class vtkQuadraticEdge; 00042 class vtkQuad; 00043 class vtkPointData; 00044 class vtkCellData; 00045 class vtkDataArray; 00046 class vtkDoubleArray; 00047 00048 class VTK_COMMON_EXPORT vtkQuadraticQuad : public vtkNonLinearCell 00049 { 00050 public: 00051 static vtkQuadraticQuad *New(); 00052 vtkTypeRevisionMacro(vtkQuadraticQuad,vtkNonLinearCell); 00053 00055 00057 int GetCellType() {return VTK_QUADRATIC_QUAD;}; 00058 int GetCellDimension() {return 2;} 00059 int GetNumberOfEdges() {return 4;} 00060 int GetNumberOfFaces() {return 0;} 00061 vtkCell *GetEdge(int); 00062 vtkCell *GetFace(int) {return 0;} 00064 00065 int CellBoundary(int subId, double pcoords[3], vtkIdList *pts); 00066 void Contour(double value, vtkDataArray *cellScalars, 00067 vtkPointLocator *locator, vtkCellArray *verts, 00068 vtkCellArray *lines, vtkCellArray *polys, 00069 vtkPointData *inPd, vtkPointData *outPd, 00070 vtkCellData *inCd, vtkIdType cellId, vtkCellData *outCd); 00071 int EvaluatePosition(double x[3], double* closestPoint, 00072 int& subId, double pcoords[3], 00073 double& dist2, double *weights); 00074 void EvaluateLocation(int& subId, double pcoords[3], double x[3], 00075 double *weights); 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(); 00080 00082 00084 void Clip(double value, vtkDataArray *cellScalars, 00085 vtkPointLocator *locator, vtkCellArray *polys, 00086 vtkPointData *inPd, vtkPointData *outPd, 00087 vtkCellData *inCd, vtkIdType cellId, vtkCellData *outCd, 00088 int insideOut); 00090 00092 00094 int IntersectWithLine(double p1[3], double p2[3], double tol, double& t, 00095 double x[3], double pcoords[3], int& subId); 00097 00098 00100 00101 static void InterpolationFunctions(double pcoords[3], double weights[8]); 00102 static void InterpolationDerivs(double pcoords[3], double derivs[16]); 00104 00105 protected: 00106 vtkQuadraticQuad(); 00107 ~vtkQuadraticQuad(); 00108 00109 vtkQuadraticEdge *Edge; 00110 vtkQuad *Quad; 00111 vtkPointData *PointData; 00112 vtkCellData *CellData; 00113 vtkDoubleArray *Scalars; 00114 00115 void Subdivide(double *weights); 00116 void InterpolateAttributes(vtkPointData *inPd, vtkCellData *inCd, 00117 vtkIdType cellId, double *weights); 00118 00119 private: 00120 vtkQuadraticQuad(const vtkQuadraticQuad&); // Not implemented. 00121 void operator=(const vtkQuadraticQuad&); // Not implemented. 00122 }; 00123 00124 #endif 00125 00126