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;}
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 
vtkPoints
represent and manipulate 3D points
Definition: vtkPoints.h:39
vtkBiQuadraticQuadraticHexahedron::GetEdge
vtkCell * GetEdge(int)
vtkBiQuadraticQuadraticHexahedron::New
static vtkBiQuadraticQuadraticHexahedron * New()
vtkgl::weights
const GLbyte * weights
Definition: vtkgl.h:12766
vtkBiQuadraticQuadraticHexahedron::EvaluatePosition
int EvaluatePosition(double x[3], double *closestPoint, int &subId, double pcoords[3], double &dist2, double *weights)
vtkBiQuadraticQuadraticHexahedron::CellData
vtkCellData * CellData
Definition: vtkBiQuadraticQuadraticHexahedron.h:173
vtkHexahedron
a cell that represents a linear 3D hexahedron
Definition: vtkHexahedron.h:47
vtkBiQuadraticQuadraticHexahedron::GetNumberOfEdges
int GetNumberOfEdges()
Definition: vtkBiQuadraticQuadraticHexahedron.h:94
vtkBiQuadraticQuadraticHexahedron::~vtkBiQuadraticQuadraticHexahedron
~vtkBiQuadraticQuadraticHexahedron()
vtkBiQuadraticQuadraticHexahedron::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)
vtkPointData
represent and manipulate point attribute data
Definition: vtkPointData.h:37
vtkIdType
int vtkIdType
Definition: vtkType.h:275
vtkCommonDataModelModule.h
vtkBiQuadraticQuadraticHexahedron::GetCellDimension
int GetCellDimension()
Definition: vtkBiQuadraticQuadraticHexahedron.h:93
vtkBiQuadraticQuadraticHexahedron::Scalars
vtkDoubleArray * Scalars
Definition: vtkBiQuadraticQuadraticHexahedron.h:175
vtkBiQuadraticQuadraticHexahedron::PointData
vtkPointData * PointData
Definition: vtkBiQuadraticQuadraticHexahedron.h:172
vtkBiQuadraticQuadraticHexahedron::Derivatives
void Derivatives(int subId, double pcoords[3], double *values, int dim, double *derivs)
vtkTypeMacro
#define vtkTypeMacro(thisClass, superclass)
Definition: vtkSetGet.h:642
vtkBiQuadraticQuadraticHexahedron::Subdivide
void Subdivide(vtkPointData *inPd, vtkCellData *inCd, vtkIdType cellId, vtkDataArray *cellScalars)
vtkBiQuadraticQuadraticHexahedron::EvaluateLocation
void EvaluateLocation(int &subId, double pcoords[3], double x[3], double *weights)
vtkgl::x
GLint GLint GLint GLint GLint x
Definition: vtkgl.h:11318
vtkDataArray
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:55
vtkBiQuadraticQuadraticHexahedron
cell represents a biquadratic, 24-node isoparametric hexahedron
Definition: vtkBiQuadraticQuadraticHexahedron.h:83
vtkQuadraticQuad
cell represents a parabolic, 8-node isoparametric quad
Definition: vtkQuadraticQuad.h:46
vtkBiQuadraticQuadraticHexahedron::InterpolateDerivs
virtual void InterpolateDerivs(double pcoords[3], double derivs[72])
Definition: vtkBiQuadraticQuadraticHexahedron.h:147
vtkBiQuadraticQuadraticHexahedron::Triangulate
int Triangulate(int index, vtkIdList *ptIds, vtkPoints *pts)
vtkBiQuadraticQuadraticHexahedron::GetEdgeArray
static int * GetEdgeArray(int edgeId)
vtkBiQuadraticQuadraticHexahedron::Clip
void Clip(double value, vtkDataArray *cellScalars, vtkIncrementalPointLocator *locator, vtkCellArray *tetras, vtkPointData *inPd, vtkPointData *outPd, vtkCellData *inCd, vtkIdType cellId, vtkCellData *outCd, int insideOut)
vtkBiQuadraticQuadraticHexahedron::CellScalars
vtkDoubleArray * CellScalars
Definition: vtkBiQuadraticQuadraticHexahedron.h:174
vtkgl::value
GLsizei const GLfloat * value
Definition: vtkgl.h:12021
vtkBiQuadraticQuad
cell represents a parabolic, 9-node isoparametric quad
Definition: vtkBiQuadraticQuad.h:54
vtkgl::values
GLboolean GLenum GLenum GLvoid * values
Definition: vtkgl.h:11354
vtkBiQuadraticQuadraticHexahedron::Hex
vtkHexahedron * Hex
Definition: vtkBiQuadraticQuadraticHexahedron.h:171
vtkBiQuadraticQuadraticHexahedron::GetCellType
int GetCellType()
Definition: vtkBiQuadraticQuadraticHexahedron.h:92
vtkCell
abstract class to specify cell behavior
Definition: vtkCell.h:62
vtkCellData
represent and manipulate cell attribute data
Definition: vtkCellData.h:38
vtkBiQuadraticQuadraticHexahedron::IntersectWithLine
int IntersectWithLine(double p1[3], double p2[3], double tol, double &t, double x[3], double pcoords[3], int &subId)
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkCellArray
object to represent cell connectivity
Definition: vtkCellArray.h:50
vtkIncrementalPointLocator
Abstract class in support of both point location and point insertion.
Definition: vtkIncrementalPointLocator.h:54
vtkIdList
list of point or cell ids
Definition: vtkIdList.h:36
VTK_BIQUADRATIC_QUADRATIC_HEXAHEDRON
@ VTK_BIQUADRATIC_QUADRATIC_HEXAHEDRON
Definition: vtkCellType.h:76
vtkBiQuadraticQuadraticHexahedron::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
vtkBiQuadraticQuadraticHexahedron::Edge
vtkQuadraticEdge * Edge
Definition: vtkBiQuadraticQuadraticHexahedron.h:168
vtkNonLinearCell.h
vtkgl::index
GLuint index
Definition: vtkgl.h:11983
vtkgl::t
GLdouble GLdouble t
Definition: vtkgl.h:11602
vtkBiQuadraticQuadraticHexahedron::JacobianInverse
void JacobianInverse(double pcoords[3], double **inverse, double derivs[72])
vtkBiQuadraticQuadraticHexahedron::GetFace
vtkCell * GetFace(int)
vtkNonLinearCell
abstract superclass for non-linear cells
Definition: vtkNonLinearCell.h:36
vtkBiQuadraticQuadraticHexahedron::BiQuadFace
vtkBiQuadraticQuad * BiQuadFace
Definition: vtkBiQuadraticQuadraticHexahedron.h:170
vtkBiQuadraticQuadraticHexahedron::GetFaceArray
static int * GetFaceArray(int faceId)
vtkBiQuadraticQuadraticHexahedron::InterpolationFunctions
static void InterpolationFunctions(double pcoords[3], double weights[24])
vtkDoubleArray
dynamic, self-adjusting array of double
Definition: vtkDoubleArray.h:49
VTKCOMMONDATAMODEL_EXPORT
#define VTKCOMMONDATAMODEL_EXPORT
Definition: vtkCommonDataModelModule.h:15
vtkBiQuadraticQuadraticHexahedron::InterpolationDerivs
static void InterpolationDerivs(double pcoords[3], double derivs[72])
vtkBiQuadraticQuadraticHexahedron::GetNumberOfFaces
int GetNumberOfFaces()
Definition: vtkBiQuadraticQuadraticHexahedron.h:95
vtkQuadraticEdge
cell represents a parabolic, isoparametric edge
Definition: vtkQuadraticEdge.h:43
vtkBiQuadraticQuadraticHexahedron::Face
vtkQuadraticQuad * Face
Definition: vtkBiQuadraticQuadraticHexahedron.h:169
vtkBiQuadraticQuadraticHexahedron::vtkBiQuadraticQuadraticHexahedron
vtkBiQuadraticQuadraticHexahedron()
vtkBiQuadraticQuadraticHexahedron::CellBoundary
int CellBoundary(int subId, double pcoords[3], vtkIdList *pts)
vtkBiQuadraticQuadraticHexahedron::GetParametricCoords
virtual double * GetParametricCoords()
vtkBiQuadraticQuadraticHexahedron::InterpolateFunctions
virtual void InterpolateFunctions(double pcoords[3], double weights[24])
Definition: vtkBiQuadraticQuadraticHexahedron.h:143