VTK
vtkTriQuadraticHexahedron.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkTriQuadraticHexahedron.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
73 #ifndef vtkTriQuadraticHexahedron_h
74 #define vtkTriQuadraticHexahedron_h
75 
76 #include "vtkCommonDataModelModule.h" // For export macro
77 #include "vtkNonLinearCell.h"
78 
79 class vtkQuadraticEdge;
80 class vtkBiQuadraticQuad;
81 class vtkHexahedron;
82 class vtkDoubleArray;
83 
85 {
86 public:
87  static vtkTriQuadraticHexahedron *New ();
89  void PrintSelf (ostream & os, vtkIndent indent);
90 
92 
95  int GetCellDimension () { return 3; }
96  int GetNumberOfEdges () { return 12; }
97  int GetNumberOfFaces () { return 6; }
98  vtkCell *GetEdge (int);
99  vtkCell *GetFace (int);
101 
102  int CellBoundary (int subId, double pcoords[3], vtkIdList * pts);
103  void Contour (double value, vtkDataArray * cellScalars,
104  vtkIncrementalPointLocator * locator, vtkCellArray * verts,
105  vtkCellArray * lines, vtkCellArray * polys,
106  vtkPointData * inPd, vtkPointData * outPd, vtkCellData * inCd,
107  vtkIdType cellId, vtkCellData * outCd);
108  int EvaluatePosition (double x[3], double *closestPoint,
109  int &subId, double pcoords[3], double &dist2, double *weights);
110  void EvaluateLocation (int &subId, double pcoords[3], double x[3], double *weights);
111  int Triangulate (int index, vtkIdList * ptIds, vtkPoints * pts);
112  void Derivatives (int subId, double pcoords[3], double *values, int dim, double *derivs);
113  virtual double *GetParametricCoords ();
114 
116 
119  void Clip (double value, vtkDataArray * cellScalars,
120  vtkIncrementalPointLocator * locator, vtkCellArray * tetras,
121  vtkPointData * inPd, vtkPointData * outPd,
122  vtkCellData * inCd, vtkIdType cellId, vtkCellData * outCd, int insideOut);
124 
126 
128  int IntersectWithLine (double p1[3], double p2[3], double tol, double &t,
129  double x[3], double pcoords[3], int &subId);
131 
134  static void InterpolationFunctions (double pcoords[3], double weights[27]);
137  static void InterpolationDerivs (double pcoords[3], double derivs[81]);
139 
141  virtual void InterpolateFunctions (double pcoords[3], double weights[27])
142  {
144  }
145  virtual void InterpolateDerivs (double pcoords[3], double derivs[81])
146  {
148  }
150 
151 
153  static int *GetEdgeArray(int edgeId);
154  static int *GetFaceArray(int faceId);
156 
160  void JacobianInverse (double pcoords[3], double **inverse, double derivs[81]);
161 
162 protected:
165 
170 
171 private:
172  vtkTriQuadraticHexahedron (const vtkTriQuadraticHexahedron &); // Not implemented.
173  void operator = (const vtkTriQuadraticHexahedron &); // Not implemented.
174 };
175 
176 #endif
virtual void InterpolateFunctions(double pcoords[3], double weights[27])
static void InterpolationDerivs(double pcoords[3], double derivs[81])
represent and manipulate point attribute data
Definition: vtkPointData.h:36
virtual double * GetParametricCoords()
represent and manipulate cell attribute data
Definition: vtkCellData.h:37
cell represents a parabolic, 9-node isoparametric quad
Abstract class in support of both point location and point insertion.
virtual int Triangulate(int index, vtkIdList *ptIds, vtkPoints *pts)=0
virtual void EvaluateLocation(int &subId, double pcoords[3], double x[3], double *weights)=0
virtual int EvaluatePosition(double x[3], double *closestPoint, int &subId, double pcoords[3], double &dist2, double *weights)=0
abstract superclass for non-linear cells
static void InterpolationFunctions(double pcoords[3], double weights[27])
int vtkIdType
Definition: vtkType.h:275
dynamic, self-adjusting array of double
abstract class to specify cell behavior
Definition: vtkCell.h:61
a simple class to control print indentation
Definition: vtkIndent.h:38
list of point or cell ids
Definition: vtkIdList.h:35
virtual void Derivatives(int subId, double pcoords[3], double *values, int dim, double *derivs)=0
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:54
virtual int IntersectWithLine(double p1[3], double p2[3], double tol, double &t, double x[3], double pcoords[3], int &subId)=0
a cell that represents a linear 3D hexahedron
Definition: vtkHexahedron.h:46
virtual void Clip(double value, vtkDataArray *cellScalars, vtkIncrementalPointLocator *locator, vtkCellArray *connectivity, vtkPointData *inPd, vtkPointData *outPd, vtkCellData *inCd, vtkIdType cellId, vtkCellData *outCd, int insideOut)=0
void PrintSelf(ostream &os, vtkIndent indent)
virtual vtkCell * GetFace(int faceId)=0
object to represent cell connectivity
Definition: vtkCellArray.h:49
virtual vtkCell * GetEdge(int edgeId)=0
cell represents a parabolic, 27-node isoparametric hexahedron
virtual void InterpolateDerivs(double pcoords[3], double derivs[81])
cell represents a parabolic, isoparametric edge
virtual void Contour(double value, vtkDataArray *cellScalars, vtkIncrementalPointLocator *locator, vtkCellArray *verts, vtkCellArray *lines, vtkCellArray *polys, vtkPointData *inPd, vtkPointData *outPd, vtkCellData *inCd, vtkIdType cellId, vtkCellData *outCd)=0
virtual int CellBoundary(int subId, double pcoords[3], vtkIdList *pts)=0
static vtkObject * New()
#define VTKCOMMONDATAMODEL_EXPORT
represent and manipulate 3D points
Definition: vtkPoints.h:38