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:
52  void PrintSelf(ostream& os, vtkIndent indent);
53 
55 
58  int GetCellDimension() {return 3;}
59  int GetNumberOfEdges() {return 12;}
60  int GetNumberOfFaces() {return 6;}
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 
vtkPoints
represent and manipulate 3D points
Definition: vtkPoints.h:39
vtkQuadraticHexahedron::CellScalars
vtkDoubleArray * CellScalars
Definition: vtkQuadraticHexahedron.h:139
vtkQuadraticHexahedron::EvaluateLocation
void EvaluateLocation(int &subId, double pcoords[3], double x[3], double *weights)
vtkgl::weights
const GLbyte * weights
Definition: vtkgl.h:12766
vtkHexahedron
a cell that represents a linear 3D hexahedron
Definition: vtkHexahedron.h:47
vtkQuadraticHexahedron::CellBoundary
int CellBoundary(int subId, double pcoords[3], vtkIdList *pts)
vtkPointData
represent and manipulate point attribute data
Definition: vtkPointData.h:37
vtkIdType
int vtkIdType
Definition: vtkType.h:275
vtkCommonDataModelModule.h
vtkQuadraticHexahedron::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
vtkTypeMacro
#define vtkTypeMacro(thisClass, superclass)
Definition: vtkSetGet.h:642
vtkQuadraticHexahedron::InterpolationDerivs
static void InterpolationDerivs(double pcoords[3], double derivs[60])
vtkQuadraticHexahedron::InterpolationFunctions
static void InterpolationFunctions(double pcoords[3], double weights[20])
vtkgl::x
GLint GLint GLint GLint GLint x
Definition: vtkgl.h:11318
vtkQuadraticHexahedron
cell represents a parabolic, 20-node isoparametric hexahedron
Definition: vtkQuadraticHexahedron.h:48
vtkDataArray
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:55
vtkQuadraticHexahedron::GetEdgeArray
static int * GetEdgeArray(int edgeId)
vtkQuadraticHexahedron::GetCellType
int GetCellType()
Definition: vtkQuadraticHexahedron.h:57
vtkQuadraticQuad
cell represents a parabolic, 8-node isoparametric quad
Definition: vtkQuadraticQuad.h:46
vtkQuadraticHexahedron::Scalars
vtkDoubleArray * Scalars
Definition: vtkQuadraticHexahedron.h:140
vtkQuadraticHexahedron::Face
vtkQuadraticQuad * Face
Definition: vtkQuadraticHexahedron.h:135
vtkQuadraticHexahedron::Edge
vtkQuadraticEdge * Edge
Definition: vtkQuadraticHexahedron.h:134
vtkQuadraticHexahedron::PointData
vtkPointData * PointData
Definition: vtkQuadraticHexahedron.h:137
vtkQuadraticHexahedron::~vtkQuadraticHexahedron
~vtkQuadraticHexahedron()
vtkgl::value
GLsizei const GLfloat * value
Definition: vtkgl.h:12021
vtkgl::values
GLboolean GLenum GLenum GLvoid * values
Definition: vtkgl.h:11354
vtkQuadraticHexahedron::Subdivide
void Subdivide(vtkPointData *inPd, vtkCellData *inCd, vtkIdType cellId, vtkDataArray *cellScalars)
vtkQuadraticHexahedron::InterpolateDerivs
virtual void InterpolateDerivs(double pcoords[3], double derivs[60])
Definition: vtkQuadraticHexahedron.h:113
vtkQuadraticHexahedron::Hex
vtkHexahedron * Hex
Definition: vtkQuadraticHexahedron.h:136
vtkCell
abstract class to specify cell behavior
Definition: vtkCell.h:62
vtkCellData
represent and manipulate cell attribute data
Definition: vtkCellData.h:38
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkCellArray
object to represent cell connectivity
Definition: vtkCellArray.h:50
vtkQuadraticHexahedron::GetEdge
vtkCell * GetEdge(int)
vtkQuadraticHexahedron::Contour
void Contour(double value, vtkDataArray *cellScalars, vtkIncrementalPointLocator *locator, vtkCellArray *verts, vtkCellArray *lines, vtkCellArray *polys, vtkPointData *inPd, vtkPointData *outPd, vtkCellData *inCd, vtkIdType cellId, vtkCellData *outCd)
vtkQuadraticHexahedron::Triangulate
int Triangulate(int index, vtkIdList *ptIds, vtkPoints *pts)
vtkIncrementalPointLocator
Abstract class in support of both point location and point insertion.
Definition: vtkIncrementalPointLocator.h:54
vtkQuadraticHexahedron::vtkQuadraticHexahedron
vtkQuadraticHexahedron()
vtkIdList
list of point or cell ids
Definition: vtkIdList.h:36
vtkQuadraticHexahedron::InterpolateFunctions
virtual void InterpolateFunctions(double pcoords[3], double weights[20])
Definition: vtkQuadraticHexahedron.h:109
vtkQuadraticHexahedron::GetNumberOfEdges
int GetNumberOfEdges()
Definition: vtkQuadraticHexahedron.h:59
vtkQuadraticHexahedron::CellData
vtkCellData * CellData
Definition: vtkQuadraticHexahedron.h:138
vtkQuadraticHexahedron::EvaluatePosition
int EvaluatePosition(double x[3], double *closestPoint, int &subId, double pcoords[3], double &dist2, double *weights)
vtkQuadraticHexahedron::IntersectWithLine
int IntersectWithLine(double p1[3], double p2[3], double tol, double &t, double x[3], double pcoords[3], int &subId)
vtkNonLinearCell.h
vtkgl::index
GLuint index
Definition: vtkgl.h:11983
vtkgl::t
GLdouble GLdouble t
Definition: vtkgl.h:11602
vtkQuadraticHexahedron::GetNumberOfFaces
int GetNumberOfFaces()
Definition: vtkQuadraticHexahedron.h:60
vtkQuadraticHexahedron::GetCellDimension
int GetCellDimension()
Definition: vtkQuadraticHexahedron.h:58
vtkNonLinearCell
abstract superclass for non-linear cells
Definition: vtkNonLinearCell.h:36
vtkQuadraticHexahedron::New
static vtkQuadraticHexahedron * New()
vtkQuadraticHexahedron::GetFace
vtkCell * GetFace(int)
vtkQuadraticHexahedron::JacobianInverse
void JacobianInverse(double pcoords[3], double **inverse, double derivs[60])
vtkDoubleArray
dynamic, self-adjusting array of double
Definition: vtkDoubleArray.h:49
VTK_QUADRATIC_HEXAHEDRON
@ VTK_QUADRATIC_HEXAHEDRON
Definition: vtkCellType.h:68
VTKCOMMONDATAMODEL_EXPORT
#define VTKCOMMONDATAMODEL_EXPORT
Definition: vtkCommonDataModelModule.h:15
vtkQuadraticHexahedron::Clip
void Clip(double value, vtkDataArray *cellScalars, vtkIncrementalPointLocator *locator, vtkCellArray *tetras, vtkPointData *inPd, vtkPointData *outPd, vtkCellData *inCd, vtkIdType cellId, vtkCellData *outCd, int insideOut)
vtkQuadraticEdge
cell represents a parabolic, isoparametric edge
Definition: vtkQuadraticEdge.h:43
vtkQuadraticHexahedron::Derivatives
void Derivatives(int subId, double pcoords[3], double *values, int dim, double *derivs)
vtkQuadraticHexahedron::GetParametricCoords
virtual double * GetParametricCoords()
vtkQuadraticHexahedron::GetFaceArray
static int * GetFaceArray(int faceId)