• Main Page
  • Related Pages
  • Namespaces
  • Classes
  • Files
  • File List
  • File Members

dox/Filtering/vtkTriQuadraticHexahedron.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    $RCSfile: vtkTriQuadraticHexahedron.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 =========================================================================*/
00073 #ifndef __vtkTriQuadraticHexahedron_h
00074 #define __vtkTriQuadraticHexahedron_h
00075 
00076 #include "vtkNonLinearCell.h"
00077 
00078 class vtkQuadraticEdge;
00079 class vtkBiQuadraticQuad;
00080 class vtkHexahedron;
00081 class vtkDoubleArray;
00082 
00083 class VTK_FILTERING_EXPORT vtkTriQuadraticHexahedron : public vtkNonLinearCell
00084 {
00085 public:
00086   static vtkTriQuadraticHexahedron *New ();
00087   vtkTypeRevisionMacro (vtkTriQuadraticHexahedron, vtkNonLinearCell);
00088   void PrintSelf (ostream & os, vtkIndent indent);
00089 
00091 
00093   int GetCellType () { return VTK_TRIQUADRATIC_HEXAHEDRON; }
00094   int GetCellDimension () { return 3; }
00095   int GetNumberOfEdges () { return 12; }
00096   int GetNumberOfFaces () { return 6; }
00097   vtkCell *GetEdge (int);
00098   vtkCell *GetFace (int);
00100 
00101   int CellBoundary (int subId, double pcoords[3], vtkIdList * pts);
00102   void Contour (double value, vtkDataArray * cellScalars,
00103     vtkPointLocator * locator, vtkCellArray * verts,
00104     vtkCellArray * lines, vtkCellArray * polys,
00105     vtkPointData * inPd, vtkPointData * outPd, vtkCellData * inCd,
00106     vtkIdType cellId, vtkCellData * outCd);
00107   int EvaluatePosition (double x[3], double *closestPoint,
00108     int &subId, double pcoords[3], double &dist2, double *weights);
00109   void EvaluateLocation (int &subId, double pcoords[3], double x[3], double *weights);
00110   int Triangulate (int index, vtkIdList * ptIds, vtkPoints * pts);
00111   void Derivatives (int subId, double pcoords[3], double *values, int dim, double *derivs);
00112   virtual double *GetParametricCoords ();
00113 
00115 
00118   void Clip (double value, vtkDataArray * cellScalars,
00119        vtkPointLocator * locator, vtkCellArray * tetras,
00120        vtkPointData * inPd, vtkPointData * outPd,
00121        vtkCellData * inCd, vtkIdType cellId, vtkCellData * outCd, int insideOut);
00123 
00125 
00127   int IntersectWithLine (double p1[3], double p2[3], double tol, double &t,
00128     double x[3], double pcoords[3], int &subId);
00130 
00132 
00134   static void InterpolationFunctions (double pcoords[3], double weights[27]);
00135   // Description:
00136   // @deprecated Replaced by vtkTriQuadraticHexahedron::InterpolateDerivs as of VTK 5.2
00137   static void InterpolationDerivs (double pcoords[3], double derivs[81]);
00138   // Description:
00139   // Compute the interpolation functions/derivatives
00140   // (aka shape functions/derivatives)
00141   virtual void InterpolateFunctions (double pcoords[3], double weights[27])
00142     {
00143     vtkTriQuadraticHexahedron::InterpolationFunctions(pcoords,weights);
00144     }
00145   virtual void InterpolateDerivs (double pcoords[3], double derivs[81])
00146     {
00147     vtkTriQuadraticHexahedron::InterpolationDerivs(pcoords,derivs);
00148     }
00149   // Description:
00150   // Return the ids of the vertices defining edge/face (`edgeId`/`faceId').
00151   // Ids are related to the cell, not to the dataset.
00152   static int *GetEdgeArray(int edgeId);
00153   static int *GetFaceArray(int faceId);
00155 
00159   void JacobianInverse (double pcoords[3], double **inverse, double derivs[81]);
00160 
00161 protected:
00162   vtkTriQuadraticHexahedron ();
00163   ~vtkTriQuadraticHexahedron ();
00164 
00165   vtkQuadraticEdge *Edge;
00166   vtkBiQuadraticQuad *Face;
00167   vtkHexahedron *Hex;
00168   vtkDoubleArray *Scalars;
00169 
00170 private:
00171   vtkTriQuadraticHexahedron (const vtkTriQuadraticHexahedron &);  // Not implemented.
00172   void operator = (const vtkTriQuadraticHexahedron &);  // Not implemented.
00173 };
00174 
00175 #endif

Generated by  doxygen 1.7.1