VTK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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 =========================================================================*/
35 #ifndef __vtkQuadraticTetra_h
36 #define __vtkQuadraticTetra_h
37 
38 #include "vtkCommonDataModelModule.h" // For export macro
39 #include "vtkNonLinearCell.h"
40 
41 class vtkQuadraticEdge;
43 class vtkTetra;
44 class vtkDoubleArray;
45 
47 {
48 public:
49  static vtkQuadraticTetra *New();
51  void PrintSelf(ostream& os, vtkIndent indent);
52 
54 
57  int GetCellDimension() {return 3;}
58  int GetNumberOfEdges() {return 6;}
59  int GetNumberOfFaces() {return 4;}
60  vtkCell *GetEdge(int);
61  vtkCell *GetFace(int);
63 
64  int CellBoundary(int subId, double pcoords[3], vtkIdList *pts);
65  void Contour(double value, vtkDataArray *cellScalars,
67  vtkCellArray *lines, vtkCellArray *polys,
68  vtkPointData *inPd, vtkPointData *outPd,
69  vtkCellData *inCd, vtkIdType cellId, vtkCellData *outCd);
70  int EvaluatePosition(double x[3], double* closestPoint,
71  int& subId, double pcoords[3],
72  double& dist2, double *weights);
73  void EvaluateLocation(int& subId, double pcoords[3], double x[3],
74  double *weights);
75  int Triangulate(int index, vtkIdList *ptIds, vtkPoints *pts);
76  void Derivatives(int subId, double pcoords[3], double *values,
77  int dim, double *derivs);
78  virtual double *GetParametricCoords();
79 
81 
83  void Clip(double value, vtkDataArray *cellScalars,
84  vtkIncrementalPointLocator *locator, vtkCellArray *tetras,
85  vtkPointData *inPd, vtkPointData *outPd,
86  vtkCellData *inCd, vtkIdType cellId, vtkCellData *outCd,
87  int insideOut);
89 
91 
93  int IntersectWithLine(double p1[3], double p2[3], double tol, double& t,
94  double x[3], double pcoords[3], int& subId);
96 
97 
99  int GetParametricCenter(double pcoords[3]);
100 
103  double GetParametricDistance(double pcoords[3]);
104 
107  static void InterpolationFunctions(double pcoords[3], double weights[10]);
110  static void InterpolationDerivs(double pcoords[3], double derivs[30]);
112 
114  virtual void InterpolateFunctions(double pcoords[3], double weights[10])
115  {
117  }
118  virtual void InterpolateDerivs(double pcoords[3], double derivs[30])
119  {
121  }
123 
124 
126  static int *GetEdgeArray(int edgeId);
127  static int *GetFaceArray(int faceId);
129 
133  void JacobianInverse(double pcoords[3], double **inverse, double derivs[30]);
134 
135 protected:
138 
142  vtkDoubleArray *Scalars; //used to avoid New/Delete in contouring/clipping
143 
144 private:
145  vtkQuadraticTetra(const vtkQuadraticTetra&); // Not implemented.
146  void operator=(const vtkQuadraticTetra&); // Not implemented.
147 };
148 
149 #endif
150 
151 
represent and manipulate point attribute data
Definition: vtkPointData.h:36
GLuint index
Definition: vtkgl.h:11983
virtual void InterpolateFunctions(double pcoords[3], double weights[10])
virtual double * GetParametricCoords()
vtkDoubleArray * Scalars
represent and manipulate cell attribute data
Definition: vtkCellData.h:37
Abstract class in support of both point location and point insertion.
vtkQuadraticEdge * Edge
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
GLsizei const GLfloat * value
Definition: vtkgl.h:12021
int vtkIdType
Definition: vtkType.h:268
GLdouble GLdouble t
Definition: vtkgl.h:11602
#define vtkTypeMacro(thisClass, superclass)
Definition: vtkSetGet.h:619
vtkQuadraticTriangle * Face
static void InterpolationDerivs(double pcoords[3], double derivs[30])
dynamic, self-adjusting array of double
GLint GLint GLint GLint GLint x
Definition: vtkgl.h:11318
a 3D cell that represents a tetrahedron
Definition: vtkTetra.h:46
abstract class to specify cell behavior
Definition: vtkCell.h:58
virtual double GetParametricDistance(double pcoords[3])
const GLbyte * weights
Definition: vtkgl.h:12766
a simple class to control print indentation
Definition: vtkIndent.h:38
GLboolean GLenum GLenum GLvoid * values
Definition: vtkgl.h:11354
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:53
virtual int IntersectWithLine(double p1[3], double p2[3], double tol, double &t, double x[3], double pcoords[3], int &subId)=0
cell represents a parabolic, 10-node isoparametric tetrahedron
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 void InterpolateDerivs(double pcoords[3], double derivs[30])
virtual vtkCell * GetFace(int faceId)=0
object to represent cell connectivity
Definition: vtkCellArray.h:49
static void InterpolationFunctions(double pcoords[3], double weights[10])
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
cell represents a parabolic, isoparametric triangle
virtual int CellBoundary(int subId, double pcoords[3], vtkIdList *pts)=0
static vtkObject * New()
virtual int GetParametricCenter(double pcoords[3])
#define VTKCOMMONDATAMODEL_EXPORT
represent and manipulate 3D points
Definition: vtkPoints.h:39