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

# Common/vtkQuadraticTetra.h

Go to the documentation of this file.

    00001 /*=========================================================================
    00002
    00003   Program:   Visualization Toolkit
    00004   Module:    $RCSfile: vtkQuadraticTetra.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 __vtkQuadraticTetra_h
    00050 #define __vtkQuadraticTetra_h
    00051
    00052 #include "vtkNonLinearCell.h"
    00053
    00054 class vtkPolyData;
    00055 class vtkQuadraticEdge;
    00056 class vtkQuadraticTriangle;
    00057 class vtkTetra;
    00058
    00059 class VTK_COMMON_EXPORT vtkQuadraticTetra : public vtkNonLinearCell
    00060 {
    00061 public:
    00062   static vtkQuadraticTetra *New();
    00063   vtkTypeRevisionMacro(vtkQuadraticTetra,vtkNonLinearCell);
    00064
    00066
    00068   int GetCellType() {return VTK_QUADRATIC_TETRA;}
    00069   int GetCellDimension() {return 3;}
    00070   int GetNumberOfEdges() {return 6;}
    00071   int GetNumberOfFaces() {return 4;}
    00072   vtkCell *GetEdge(int);
    00073   vtkCell *GetFace(int);
    00075
    00076   int CellBoundary(int subId, float pcoords[3], vtkIdList *pts);
    00077   void Contour(float value, vtkDataArray *cellScalars,
    00078                vtkPointLocator *locator, vtkCellArray *verts,
    00079                vtkCellArray *lines, vtkCellArray *polys,
    00080                vtkPointData *inPd, vtkPointData *outPd,
    00081                vtkCellData *inCd, vtkIdType cellId, vtkCellData *outCd);
    00082   int EvaluatePosition(float x[3], float* closestPoint,
    00083                        int& subId, float pcoords[3],
    00084                        float& dist2, float *weights);
    00085   void EvaluateLocation(int& subId, float pcoords[3], float x[3],
    00086                         float *weights);
    00087   int Triangulate(int index, vtkIdList *ptIds, vtkPoints *pts);
    00088   void Derivatives(int subId, float pcoords[3], float *values,
    00089                    int dim, float *derivs);
    00090
    00092
    00094   void Clip(float value, vtkDataArray *cellScalars,
    00095             vtkPointLocator *locator, vtkCellArray *tetras,
    00096             vtkPointData *inPd, vtkPointData *outPd,
    00097             vtkCellData *inCd, vtkIdType cellId, vtkCellData *outCd,
    00098             int insideOut);
    00100
    00102
    00104   int IntersectWithLine(float p1[3], float p2[3], float tol, float& t,
    00105                         float x[3], float pcoords[3], int& subId);
    00107
    00108
    00110   int GetParametricCenter(float pcoords[3]);
    00111
    00113
    00114   static void InterpolationFunctions(float pcoords[3], float weights[3]);
    00115   static void InterpolationDerivs(float pcoords[3], float derivs[3]);
    00117
    00121   void JacobianInverse(float pcoords[3], double **inverse, float derivs[30]);
    00122
    00123 protected:
    00124   vtkQuadraticTetra();
    00125   ~vtkQuadraticTetra();
    00126
    00127   vtkQuadraticEdge *Edge;
    00128   vtkQuadraticTriangle *Face;
    00129   vtkTetra *Tetra;
    00130   vtkFloatArray *Scalars; //used to avoid New/Delete in contouring/clipping
    00131
    00132 private:
    00133   vtkQuadraticTetra(const vtkQuadraticTetra&);  // Not implemented.
    00134   void operator=(const vtkQuadraticTetra&);  // Not implemented.
    00135 };
    00136
    00137 #endif
    00138
    00139