VTK
vtkBiQuadraticQuadraticHexahedron.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkBiQuadraticQuadraticHexahedron.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 =========================================================================*/
70 #ifndef vtkBiQuadraticQuadraticHexahedron_h
71 #define vtkBiQuadraticQuadraticHexahedron_h
72 
73 #include "vtkCommonDataModelModule.h" // For export macro
74 #include "vtkNonLinearCell.h"
75 
76 class vtkQuadraticEdge;
77 class vtkQuadraticQuad;
78 class vtkBiQuadraticQuad;
79 class vtkHexahedron;
80 class vtkDoubleArray;
81 
83 {
84 public:
87  void PrintSelf(ostream& os, vtkIndent indent);
88 
90 
93  int GetCellDimension() {return 3;}
94  int GetNumberOfEdges() {return 12;}
95  int GetNumberOfFaces() {return 6;}
96  vtkCell *GetEdge(int);
97  vtkCell *GetFace(int);
99 
100  int CellBoundary(int subId, double pcoords[3], vtkIdList *pts);
101  void Contour(double value, vtkDataArray *cellScalars,
102  vtkIncrementalPointLocator *locator, vtkCellArray *verts,
103  vtkCellArray *lines, vtkCellArray *polys,
104  vtkPointData *inPd, vtkPointData *outPd,
105  vtkCellData *inCd, vtkIdType cellId, vtkCellData *outCd);
106  int EvaluatePosition(double x[3], double* closestPoint,
107  int& subId, double pcoords[3],
108  double& dist2, double *weights);
109  void EvaluateLocation(int& subId, double pcoords[3], double x[3],
110  double *weights);
111  int Triangulate(int index, vtkIdList *ptIds, vtkPoints *pts);
112  void Derivatives(int subId, double pcoords[3], double *values,
113  int dim, double *derivs);
114  virtual double *GetParametricCoords();
115 
117 
120  void Clip(double value, vtkDataArray *cellScalars,
121  vtkIncrementalPointLocator *locator, vtkCellArray *tetras,
122  vtkPointData *inPd, vtkPointData *outPd,
123  vtkCellData *inCd, vtkIdType cellId, vtkCellData *outCd,
124  int insideOut);
126 
128 
130  int IntersectWithLine(double p1[3], double p2[3], double tol, double& t,
131  double x[3], double pcoords[3], int& subId);
133 
136  static void InterpolationFunctions(double pcoords[3], double weights[24]);
139  static void InterpolationDerivs(double pcoords[3], double derivs[72]);
141 
143  virtual void InterpolateFunctions(double pcoords[3], double weights[24])
144  {
146  }
147  virtual void InterpolateDerivs(double pcoords[3], double derivs[72])
148  {
150  }
152 
153 
155  static int *GetEdgeArray(int edgeId);
156  static int *GetFaceArray(int faceId);
158 
162  void JacobianInverse(double pcoords[3], double **inverse, double derivs[72]);
163 
164 protected:
167 
176 
177  void Subdivide(vtkPointData *inPd, vtkCellData *inCd, vtkIdType cellId,
178  vtkDataArray *cellScalars);
179 
180 private:
182  void operator=(const vtkBiQuadraticQuadraticHexahedron&); // Not implemented.
183 };
184 
185 #endif
186 
187 
represent and manipulate point attribute data
Definition: vtkPointData.h:36
static void InterpolationDerivs(double pcoords[3], double derivs[72])
virtual void InterpolateFunctions(double pcoords[3], double weights[24])
virtual double * GetParametricCoords()
virtual void InterpolateDerivs(double pcoords[3], double derivs[72])
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
int vtkIdType
Definition: vtkType.h:275
cell represents a biquadratic, 24-node isoparametric hexahedron
dynamic, self-adjusting array of double
abstract class to specify cell behavior
Definition: vtkCell.h:61
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
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()
static void InterpolationFunctions(double pcoords[3], double weights[24])
#define VTKCOMMONDATAMODEL_EXPORT
represent and manipulate 3D points
Definition: vtkPoints.h:38