VTK
vtkQuadraticTetra.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkQuadraticTetra.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 =========================================================================*/
39 #ifndef vtkQuadraticTetra_h
40 #define vtkQuadraticTetra_h
41 
42 #include "vtkCommonDataModelModule.h" // For export macro
43 #include "vtkNonLinearCell.h"
44 
45 class vtkQuadraticEdge;
47 class vtkTetra;
48 class vtkDoubleArray;
49 
51 {
52 public:
55  void PrintSelf(ostream& os, vtkIndent indent);
56 
58 
61  int GetCellDimension() {return 3;}
62  int GetNumberOfEdges() {return 6;}
63  int GetNumberOfFaces() {return 4;}
67 
68  int CellBoundary(int subId, double pcoords[3], vtkIdList *pts);
69  void Contour(double value, vtkDataArray *cellScalars,
71  vtkCellArray *lines, vtkCellArray *polys,
72  vtkPointData *inPd, vtkPointData *outPd,
73  vtkCellData *inCd, vtkIdType cellId, vtkCellData *outCd);
74  int EvaluatePosition(double x[3], double* closestPoint,
75  int& subId, double pcoords[3],
76  double& dist2, double *weights);
77  void EvaluateLocation(int& subId, double pcoords[3], double x[3],
78  double *weights);
79  int Triangulate(int index, vtkIdList *ptIds, vtkPoints *pts);
80  void Derivatives(int subId, double pcoords[3], double *values,
81  int dim, double *derivs);
82  virtual double *GetParametricCoords();
83 
85 
87  void Clip(double value, vtkDataArray *cellScalars,
88  vtkIncrementalPointLocator *locator, vtkCellArray *tetras,
89  vtkPointData *inPd, vtkPointData *outPd,
90  vtkCellData *inCd, vtkIdType cellId, vtkCellData *outCd,
91  int insideOut);
93 
95 
97  int IntersectWithLine(double p1[3], double p2[3], double tol, double& t,
98  double x[3], double pcoords[3], int& subId);
100 
101 
103  int GetParametricCenter(double pcoords[3]);
104 
107  double GetParametricDistance(double pcoords[3]);
108 
111  static void InterpolationFunctions(double pcoords[3], double weights[10]);
114  static void InterpolationDerivs(double pcoords[3], double derivs[30]);
116 
118  virtual void InterpolateFunctions(double pcoords[3], double weights[10])
119  {
121  }
122  virtual void InterpolateDerivs(double pcoords[3], double derivs[30])
123  {
125  }
127 
128 
130  static int *GetEdgeArray(int edgeId);
131  static int *GetFaceArray(int faceId);
133 
137  void JacobianInverse(double pcoords[3], double **inverse, double derivs[30]);
138 
139 protected:
142 
146  vtkDoubleArray *Scalars; //used to avoid New/Delete in contouring/clipping
147 
148 private:
149  vtkQuadraticTetra(const vtkQuadraticTetra&); // Not implemented.
150  void operator=(const vtkQuadraticTetra&); // Not implemented.
151 };
152 
153 #endif
154 
155 
vtkPoints
represent and manipulate 3D points
Definition: vtkPoints.h:39
vtkQuadraticTetra::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
vtkgl::weights
const GLbyte * weights
Definition: vtkgl.h:12766
vtkQuadraticTetra::Edge
vtkQuadraticEdge * Edge
Definition: vtkQuadraticTetra.h:143
vtkQuadraticTetra::GetCellDimension
int GetCellDimension()
Definition: vtkQuadraticTetra.h:61
vtkPointData
represent and manipulate point attribute data
Definition: vtkPointData.h:37
vtkIdType
int vtkIdType
Definition: vtkType.h:275
vtkCommonDataModelModule.h
vtkQuadraticTetra::Face
vtkQuadraticTriangle * Face
Definition: vtkQuadraticTetra.h:144
vtkQuadraticTetra::GetNumberOfEdges
int GetNumberOfEdges()
Definition: vtkQuadraticTetra.h:62
vtkQuadraticTetra::InterpolateFunctions
virtual void InterpolateFunctions(double pcoords[3], double weights[10])
Definition: vtkQuadraticTetra.h:118
vtkTypeMacro
#define vtkTypeMacro(thisClass, superclass)
Definition: vtkSetGet.h:642
vtkQuadraticTetra::Scalars
vtkDoubleArray * Scalars
Definition: vtkQuadraticTetra.h:146
vtkQuadraticTetra::~vtkQuadraticTetra
~vtkQuadraticTetra()
vtkQuadraticTriangle
cell represents a parabolic, isoparametric triangle
Definition: vtkQuadraticTriangle.h:46
vtkgl::x
GLint GLint GLint GLint GLint x
Definition: vtkgl.h:11318
vtkDataArray
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:55
VTK_QUADRATIC_TETRA
@ VTK_QUADRATIC_TETRA
Definition: vtkCellType.h:67
vtkQuadraticTetra::GetParametricCenter
int GetParametricCenter(double pcoords[3])
vtkQuadraticTetra::EvaluatePosition
int EvaluatePosition(double x[3], double *closestPoint, int &subId, double pcoords[3], double &dist2, double *weights)
vtkQuadraticTetra::GetEdge
vtkCell * GetEdge(int)
vtkQuadraticTetra::InterpolationDerivs
static void InterpolationDerivs(double pcoords[3], double derivs[30])
vtkQuadraticTetra::IntersectWithLine
int IntersectWithLine(double p1[3], double p2[3], double tol, double &t, double x[3], double pcoords[3], int &subId)
vtkQuadraticTetra::GetParametricCoords
virtual double * GetParametricCoords()
vtkgl::value
GLsizei const GLfloat * value
Definition: vtkgl.h:12021
vtkgl::values
GLboolean GLenum GLenum GLvoid * values
Definition: vtkgl.h:11354
vtkQuadraticTetra
cell represents a parabolic, 10-node isoparametric tetrahedron
Definition: vtkQuadraticTetra.h:51
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
vtkQuadraticTetra::InterpolationFunctions
static void InterpolationFunctions(double pcoords[3], double weights[10])
vtkQuadraticTetra::CellBoundary
int CellBoundary(int subId, double pcoords[3], vtkIdList *pts)
vtkQuadraticTetra::vtkQuadraticTetra
vtkQuadraticTetra()
vtkQuadraticTetra::GetFaceArray
static int * GetFaceArray(int faceId)
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
vtkQuadraticTetra::New
static vtkQuadraticTetra * New()
vtkQuadraticTetra::Triangulate
int Triangulate(int index, vtkIdList *ptIds, vtkPoints *pts)
vtkQuadraticTetra::JacobianInverse
void JacobianInverse(double pcoords[3], double **inverse, double derivs[30])
vtkQuadraticTetra::Derivatives
void Derivatives(int subId, double pcoords[3], double *values, int dim, double *derivs)
vtkNonLinearCell.h
vtkgl::index
GLuint index
Definition: vtkgl.h:11983
vtkQuadraticTetra::GetEdgeArray
static int * GetEdgeArray(int edgeId)
vtkgl::t
GLdouble GLdouble t
Definition: vtkgl.h:11602
vtkQuadraticTetra::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)
vtkQuadraticTetra::GetParametricDistance
double GetParametricDistance(double pcoords[3])
vtkNonLinearCell
abstract superclass for non-linear cells
Definition: vtkNonLinearCell.h:36
vtkQuadraticTetra::InterpolateDerivs
virtual void InterpolateDerivs(double pcoords[3], double derivs[30])
Definition: vtkQuadraticTetra.h:122
vtkDoubleArray
dynamic, self-adjusting array of double
Definition: vtkDoubleArray.h:49
VTKCOMMONDATAMODEL_EXPORT
#define VTKCOMMONDATAMODEL_EXPORT
Definition: vtkCommonDataModelModule.h:15
vtkQuadraticTetra::Tetra
vtkTetra * Tetra
Definition: vtkQuadraticTetra.h:145
vtkTetra
a 3D cell that represents a tetrahedron
Definition: vtkTetra.h:47
vtkQuadraticTetra::GetCellType
int GetCellType()
Definition: vtkQuadraticTetra.h:60
vtkQuadraticTetra::GetFace
vtkCell * GetFace(int)
vtkQuadraticEdge
cell represents a parabolic, isoparametric edge
Definition: vtkQuadraticEdge.h:43
vtkQuadraticTetra::Clip
void Clip(double value, vtkDataArray *cellScalars, vtkIncrementalPointLocator *locator, vtkCellArray *tetras, vtkPointData *inPd, vtkPointData *outPd, vtkCellData *inCd, vtkIdType cellId, vtkCellData *outCd, int insideOut)
vtkQuadraticTetra::EvaluateLocation
void EvaluateLocation(int &subId, double pcoords[3], double x[3], double *weights)
vtkQuadraticTetra::GetNumberOfFaces
int GetNumberOfFaces()
Definition: vtkQuadraticTetra.h:63