VTK
vtkQuadraticHexahedron.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkQuadraticHexahedron.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 =========================================================================*/
36 #ifndef vtkQuadraticHexahedron_h
37 #define vtkQuadraticHexahedron_h
38 
39 #include "vtkCommonDataModelModule.h" // For export macro
40 #include "vtkNonLinearCell.h"
41 
42 class vtkQuadraticEdge;
43 class vtkQuadraticQuad;
44 class vtkHexahedron;
45 class vtkDoubleArray;
46 
48 {
49 public:
50  static vtkQuadraticHexahedron *New();
52  void PrintSelf(ostream& os, vtkIndent indent);
53 
55 
58  int GetCellDimension() {return 3;}
59  int GetNumberOfEdges() {return 12;}
60  int GetNumberOfFaces() {return 6;}
61  vtkCell *GetEdge(int);
62  vtkCell *GetFace(int);
64 
65  int CellBoundary(int subId, double pcoords[3], vtkIdList *pts);
66  void Contour(double value, vtkDataArray *cellScalars,
68  vtkCellArray *lines, vtkCellArray *polys,
69  vtkPointData *inPd, vtkPointData *outPd,
70  vtkCellData *inCd, vtkIdType cellId, vtkCellData *outCd);
71  int EvaluatePosition(double x[3], double* closestPoint,
72  int& subId, double pcoords[3],
73  double& dist2, double *weights);
74  void EvaluateLocation(int& subId, double pcoords[3], double x[3],
75  double *weights);
76  int Triangulate(int index, vtkIdList *ptIds, vtkPoints *pts);
77  void Derivatives(int subId, double pcoords[3], double *values,
78  int dim, double *derivs);
79  virtual double *GetParametricCoords();
80 
82 
85  void Clip(double value, vtkDataArray *cellScalars,
86  vtkIncrementalPointLocator *locator, vtkCellArray *tetras,
87  vtkPointData *inPd, vtkPointData *outPd,
88  vtkCellData *inCd, vtkIdType cellId, vtkCellData *outCd,
89  int insideOut);
91 
93 
95  int IntersectWithLine(double p1[3], double p2[3], double tol, double& t,
96  double x[3], double pcoords[3], int& subId);
98 
99 
102  static void InterpolationFunctions(double pcoords[3], double weights[20]);
105  static void InterpolationDerivs(double pcoords[3], double derivs[60]);
107 
109  virtual void InterpolateFunctions(double pcoords[3], double weights[20])
110  {
112  }
113  virtual void InterpolateDerivs(double pcoords[3], double derivs[60])
114  {
116  }
118 
119 
121  static int *GetEdgeArray(int edgeId);
122  static int *GetFaceArray(int faceId);
124 
128  void JacobianInverse(double pcoords[3], double **inverse, double derivs[60]);
129 
130 protected:
133 
141 
142  void Subdivide(vtkPointData *inPd, vtkCellData *inCd, vtkIdType cellId,
143  vtkDataArray *cellScalars);
144 
145 private:
146  vtkQuadraticHexahedron(const vtkQuadraticHexahedron&); // Not implemented.
147  void operator=(const vtkQuadraticHexahedron&); // Not implemented.
148 };
149 
150 #endif
151 
152 
represent and manipulate point attribute data
Definition: vtkPointData.h:36
virtual double * GetParametricCoords()
represent and manipulate cell attribute data
Definition: vtkCellData.h:37
Abstract class in support of both point location and point insertion.
virtual void InterpolateDerivs(double pcoords[3], double derivs[60])
virtual int Triangulate(int index, vtkIdList *ptIds, vtkPoints *pts)=0
virtual void InterpolateFunctions(double pcoords[3], double weights[20])
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
int vtkIdType
Definition: vtkType.h:275
dynamic, self-adjusting array of double
abstract class to specify cell behavior
Definition: vtkCell.h:61
static void InterpolationDerivs(double pcoords[3], double derivs[60])
cell represents a parabolic, 8-node isoparametric quad
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, isoparametric edge
cell represents a parabolic, 20-node isoparametric hexahedron
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
static void InterpolationFunctions(double pcoords[3], double weights[20])
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