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:
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
vtkPoints
represent and manipulate 3D points
Definition: vtkPoints.h:39
vtkTriQuadraticHexahedron::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
vtkTriQuadraticHexahedron::InterpolateDerivs
virtual void InterpolateDerivs(double pcoords[3], double derivs[81])
Definition: vtkTriQuadraticHexahedron.h:145
vtkgl::weights
const GLbyte * weights
Definition: vtkgl.h:12766
vtkHexahedron
a cell that represents a linear 3D hexahedron
Definition: vtkHexahedron.h:47
vtkPointData
represent and manipulate point attribute data
Definition: vtkPointData.h:37
vtkTriQuadraticHexahedron::Clip
void Clip(double value, vtkDataArray *cellScalars, vtkIncrementalPointLocator *locator, vtkCellArray *tetras, vtkPointData *inPd, vtkPointData *outPd, vtkCellData *inCd, vtkIdType cellId, vtkCellData *outCd, int insideOut)
vtkTriQuadraticHexahedron::GetCellDimension
int GetCellDimension()
Definition: vtkTriQuadraticHexahedron.h:95
vtkIdType
int vtkIdType
Definition: vtkType.h:275
vtkCommonDataModelModule.h
vtkTriQuadraticHexahedron::GetFace
vtkCell * GetFace(int)
vtkTriQuadraticHexahedron::InterpolationDerivs
static void InterpolationDerivs(double pcoords[3], double derivs[81])
vtkTriQuadraticHexahedron::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)
vtkTypeMacro
#define vtkTypeMacro(thisClass, superclass)
Definition: vtkSetGet.h:642
vtkgl::x
GLint GLint GLint GLint GLint x
Definition: vtkgl.h:11318
vtkDataArray
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:55
vtkTriQuadraticHexahedron::Face
vtkBiQuadraticQuad * Face
Definition: vtkTriQuadraticHexahedron.h:167
vtkTriQuadraticHexahedron::IntersectWithLine
int IntersectWithLine(double p1[3], double p2[3], double tol, double &t, double x[3], double pcoords[3], int &subId)
vtkTriQuadraticHexahedron::New
static vtkTriQuadraticHexahedron * New()
vtkTriQuadraticHexahedron::Edge
vtkQuadraticEdge * Edge
Definition: vtkTriQuadraticHexahedron.h:166
vtkTriQuadraticHexahedron::JacobianInverse
void JacobianInverse(double pcoords[3], double **inverse, double derivs[81])
vtkTriQuadraticHexahedron::Scalars
vtkDoubleArray * Scalars
Definition: vtkTriQuadraticHexahedron.h:169
vtkTriQuadraticHexahedron::InterpolationFunctions
static void InterpolationFunctions(double pcoords[3], double weights[27])
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
vtkTriQuadraticHexahedron::Triangulate
int Triangulate(int index, vtkIdList *ptIds, vtkPoints *pts)
VTK_TRIQUADRATIC_HEXAHEDRON
@ VTK_TRIQUADRATIC_HEXAHEDRON
Definition: vtkCellType.h:72
vtkTriQuadraticHexahedron::GetCellType
int GetCellType()
Definition: vtkTriQuadraticHexahedron.h:94
vtkCell
abstract class to specify cell behavior
Definition: vtkCell.h:62
vtkCellData
represent and manipulate cell attribute data
Definition: vtkCellData.h:38
vtkTriQuadraticHexahedron::EvaluateLocation
void EvaluateLocation(int &subId, double pcoords[3], double x[3], double *weights)
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkCellArray
object to represent cell connectivity
Definition: vtkCellArray.h:50
vtkTriQuadraticHexahedron::Hex
vtkHexahedron * Hex
Definition: vtkTriQuadraticHexahedron.h:168
vtkTriQuadraticHexahedron::GetEdge
vtkCell * GetEdge(int)
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
vtkTriQuadraticHexahedron::CellBoundary
int CellBoundary(int subId, double pcoords[3], vtkIdList *pts)
vtkTriQuadraticHexahedron
cell represents a parabolic, 27-node isoparametric hexahedron
Definition: vtkTriQuadraticHexahedron.h:85
vtkNonLinearCell.h
vtkgl::index
GLuint index
Definition: vtkgl.h:11983
vtkgl::t
GLdouble GLdouble t
Definition: vtkgl.h:11602
vtkTriQuadraticHexahedron::GetNumberOfEdges
int GetNumberOfEdges()
Definition: vtkTriQuadraticHexahedron.h:96
vtkNonLinearCell
abstract superclass for non-linear cells
Definition: vtkNonLinearCell.h:36
vtkTriQuadraticHexahedron::EvaluatePosition
int EvaluatePosition(double x[3], double *closestPoint, int &subId, double pcoords[3], double &dist2, double *weights)
vtkTriQuadraticHexahedron::GetFaceArray
static int * GetFaceArray(int faceId)
vtkTriQuadraticHexahedron::~vtkTriQuadraticHexahedron
~vtkTriQuadraticHexahedron()
vtkTriQuadraticHexahedron::Derivatives
void Derivatives(int subId, double pcoords[3], double *values, int dim, double *derivs)
vtkTriQuadraticHexahedron::vtkTriQuadraticHexahedron
vtkTriQuadraticHexahedron()
vtkDoubleArray
dynamic, self-adjusting array of double
Definition: vtkDoubleArray.h:49
VTKCOMMONDATAMODEL_EXPORT
#define VTKCOMMONDATAMODEL_EXPORT
Definition: vtkCommonDataModelModule.h:15
vtkTriQuadraticHexahedron::GetParametricCoords
virtual double * GetParametricCoords()
vtkQuadraticEdge
cell represents a parabolic, isoparametric edge
Definition: vtkQuadraticEdge.h:43
vtkTriQuadraticHexahedron::GetNumberOfFaces
int GetNumberOfFaces()
Definition: vtkTriQuadraticHexahedron.h:97
vtkTriQuadraticHexahedron::InterpolateFunctions
virtual void InterpolateFunctions(double pcoords[3], double weights[27])
Definition: vtkTriQuadraticHexahedron.h:141
vtkTriQuadraticHexahedron::GetEdgeArray
static int * GetEdgeArray(int edgeId)