VTK
vtkBiQuadraticQuad.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkBiQuadraticQuad.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 =========================================================================*/
42 #ifndef vtkBiQuadraticQuad_h
43 #define vtkBiQuadraticQuad_h
44 
45 #include "vtkCommonDataModelModule.h" // For export macro
46 #include "vtkNonLinearCell.h"
47 
48 class vtkQuadraticEdge;
49 class vtkQuad;
50 class vtkTriangle;
51 class vtkDoubleArray;
52 
54 {
55 public:
56  static vtkBiQuadraticQuad *New ();
58  void PrintSelf (ostream & os, vtkIndent indent);
59 
61 
63  int GetCellType () { return VTK_BIQUADRATIC_QUAD; }
64  int GetCellDimension () { return 2; }
65  int GetNumberOfEdges () { return 4; }
66  int GetNumberOfFaces () { return 0; }
67  vtkCell *GetEdge (int);
68  vtkCell *GetFace (int) { return 0; }
70 
71  int CellBoundary (int subId, double pcoords[3], vtkIdList * pts);
72  int EvaluatePosition (double x[3], double *closestPoint,
73  int &subId, double pcoords[3],
74  double &dist2, double *weights);
75  void EvaluateLocation (int &subId, double pcoords[3], double x[3],
76  double *weights);
77  int Triangulate (int index, vtkIdList * ptIds, vtkPoints * pts);
78  void Derivatives (int subId, double pcoords[3], double *values,
79  int dim, double *derivs);
80  virtual double *GetParametricCoords();
81 
82  void Contour (double value, vtkDataArray * cellScalars,
83  vtkIncrementalPointLocator * locator, vtkCellArray * verts,
84  vtkCellArray * lines, vtkCellArray * polys,
85  vtkPointData * inPd, vtkPointData * outPd, vtkCellData * inCd,
86  vtkIdType cellId, vtkCellData * outCd);
87 
89 
92  void Clip (double value, vtkDataArray * cellScalars,
93  vtkIncrementalPointLocator * locator, vtkCellArray * polys,
94  vtkPointData * inPd, vtkPointData * outPd,
95  vtkCellData * inCd, vtkIdType cellId, vtkCellData * outCd,
96  int insideOut);
98 
100 
102  int IntersectWithLine (double p1[3], double p2[3], double tol, double &t,
103  double x[3], double pcoords[3], int &subId);
105 
107  int GetParametricCenter(double pcoords[3]);
108 
111  static void InterpolationFunctions (double pcoords[3], double weights[9]);
114  static void InterpolationDerivs (double pcoords[3], double derivs[18]);
116 
118  virtual void InterpolateFunctions (double pcoords[3], double weights[9])
119  {
121  }
122  virtual void InterpolateDerivs (double pcoords[3], double derivs[18])
123  {
125  }
127 
128 protected:
131 
136 
137 private:
138  vtkBiQuadraticQuad(const vtkBiQuadraticQuad&); // Not implemented.
139  void operator=(const vtkBiQuadraticQuad&); // Not implemented.
140 };
141 //----------------------------------------------------------------------------
142 inline int vtkBiQuadraticQuad::GetParametricCenter(double pcoords[3])
143 {
144  pcoords[0] = pcoords[1] = 0.5;
145  pcoords[2] = 0.;
146  return 0;
147 }
148 
149 #endif
represent and manipulate point attribute data
Definition: vtkPointData.h:36
virtual double * GetParametricCoords()
represent and manipulate cell attribute data
Definition: vtkCellData.h:37
cell represents a parabolic, 9-node isoparametric quad
Abstract class in support of both point location and point insertion.
vtkCell * GetFace(int)
virtual int Triangulate(int index, vtkIdList *ptIds, vtkPoints *pts)=0
virtual void EvaluateLocation(int &subId, double pcoords[3], double x[3], double *weights)=0
static void InterpolationDerivs(double pcoords[3], double derivs[18])
virtual int EvaluatePosition(double x[3], double *closestPoint, int &subId, double pcoords[3], double &dist2, double *weights)=0
abstract superclass for non-linear cells
a cell that represents a 2D quadrilateral
Definition: vtkQuad.h:40
int vtkIdType
Definition: vtkType.h:275
int GetParametricCenter(double pcoords[3])
dynamic, self-adjusting array of double
abstract class to specify cell behavior
Definition: vtkCell.h:61
virtual void InterpolateFunctions(double pcoords[3], double weights[9])
a simple class to control print indentation
Definition: vtkIndent.h:38
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:54
virtual int IntersectWithLine(double p1[3], double p2[3], double tol, double &t, double x[3], double pcoords[3], int &subId)=0
vtkQuadraticEdge * Edge
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)
object to represent cell connectivity
Definition: vtkCellArray.h:49
virtual vtkCell * GetEdge(int edgeId)=0
cell represents a parabolic, isoparametric edge
a cell that represents a triangle
Definition: vtkTriangle.h:40
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
virtual int CellBoundary(int subId, double pcoords[3], vtkIdList *pts)=0
static vtkObject * New()
virtual int GetParametricCenter(double pcoords[3])
static void InterpolationFunctions(double pcoords[3], double weights[9])
virtual void InterpolateDerivs(double pcoords[3], double derivs[18])
#define VTKCOMMONDATAMODEL_EXPORT
vtkDoubleArray * Scalars
represent and manipulate 3D points
Definition: vtkPoints.h:38