VTK
vtkQuadraticLinearQuad.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkQuadraticLinearQuad.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 =========================================================================*/
38 #ifndef vtkQuadraticLinearQuad_h
39 #define vtkQuadraticLinearQuad_h
40 
41 #include "vtkCommonDataModelModule.h" // For export macro
42 #include "vtkNonLinearCell.h"
43 
44 class vtkQuadraticEdge;
45 class vtkLine;
46 class vtkQuad;
47 class vtkDoubleArray;
48 
50 {
51 public:
54  void PrintSelf(ostream & os, vtkIndent indent);
55 
57 
60  int GetCellDimension () { return 2; }
61  int GetNumberOfEdges () { return 4; }
62  int GetNumberOfFaces () { return 0; }
63  vtkCell *GetEdge (int);
64  vtkCell *GetFace (int) { return 0; }
66 
67  int CellBoundary (int subId, double pcoords[3], vtkIdList * pts);
68  void Contour (double value, vtkDataArray * cellScalars,
69  vtkIncrementalPointLocator * locator, vtkCellArray * verts,
70  vtkCellArray * lines, vtkCellArray * polys,
71  vtkPointData * inPd, vtkPointData * outPd, vtkCellData * inCd,
72  vtkIdType cellId, vtkCellData * outCd);
73  int EvaluatePosition (double x[3], double *closestPoint,
74  int &subId, double pcoords[3], 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, int dim,
79  double *derivs);
80  virtual double *GetParametricCoords ();
81 
83 
85  void Clip (double value, vtkDataArray * cellScalars,
86  vtkIncrementalPointLocator * locator, vtkCellArray * polys,
87  vtkPointData * inPd, vtkPointData * outPd,
88  vtkCellData * inCd, vtkIdType cellId, vtkCellData * outCd,
89  int insideOut);
91 
93 
95  int IntersectWithLine (double p1[3], double p2[3], double tol, double &t,
96  double x[3], double pcoords[3], int &subId);
98 
100  int GetParametricCenter(double pcoords[3]);
101 
104  static void InterpolationFunctions (double pcoords[3], double weights[6]);
107  static void InterpolationDerivs (double pcoords[3], double derivs[12]);
109 
111  virtual void InterpolateFunctions (double pcoords[3], double weights[6])
112  {
114  }
115  virtual void InterpolateDerivs (double pcoords[3], double derivs[12])
116  {
118  }
120 
122  static int *GetEdgeArray(int edgeId);
123 
124 protected:
127 
132 
133 private:
134  vtkQuadraticLinearQuad (const vtkQuadraticLinearQuad &); // Not implemented.
135  void operator = (const vtkQuadraticLinearQuad &); // Not implemented.
136 };
137 //----------------------------------------------------------------------------
138 inline int vtkQuadraticLinearQuad::GetParametricCenter(double pcoords[3])
139 {
140  pcoords[0] = pcoords[1] = 0.5;
141  pcoords[2] = 0.;
142  return 0;
143 }
144 
145 #endif
vtkPoints
represent and manipulate 3D points
Definition: vtkPoints.h:39
vtkgl::weights
const GLbyte * weights
Definition: vtkgl.h:12766
vtkQuadraticLinearQuad::InterpolationDerivs
static void InterpolationDerivs(double pcoords[3], double derivs[12])
vtkQuadraticLinearQuad::Triangulate
int Triangulate(int index, vtkIdList *ptIds, vtkPoints *pts)
vtkPointData
represent and manipulate point attribute data
Definition: vtkPointData.h:37
vtkQuadraticLinearQuad::GetEdgeArray
static int * GetEdgeArray(int edgeId)
vtkQuadraticLinearQuad::~vtkQuadraticLinearQuad
~vtkQuadraticLinearQuad()
vtkIdType
int vtkIdType
Definition: vtkType.h:275
vtkCommonDataModelModule.h
vtkQuadraticLinearQuad::GetFace
vtkCell * GetFace(int)
Definition: vtkQuadraticLinearQuad.h:64
vtkTypeMacro
#define vtkTypeMacro(thisClass, superclass)
Definition: vtkSetGet.h:642
vtkQuadraticLinearQuad::LinEdge
vtkLine * LinEdge
Definition: vtkQuadraticLinearQuad.h:129
vtkgl::x
GLint GLint GLint GLint GLint x
Definition: vtkgl.h:11318
vtkQuadraticLinearQuad::Edge
vtkQuadraticEdge * Edge
Definition: vtkQuadraticLinearQuad.h:128
vtkQuadraticLinearQuad::GetEdge
vtkCell * GetEdge(int)
vtkDataArray
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:55
vtkQuadraticLinearQuad::GetCellDimension
int GetCellDimension()
Definition: vtkQuadraticLinearQuad.h:60
vtkQuadraticLinearQuad::InterpolationFunctions
static void InterpolationFunctions(double pcoords[3], double weights[6])
vtkLine
cell represents a 1D line
Definition: vtkLine.h:35
vtkQuadraticLinearQuad::Scalars
vtkDoubleArray * Scalars
Definition: vtkQuadraticLinearQuad.h:131
vtkQuadraticLinearQuad::Derivatives
void Derivatives(int subId, double pcoords[3], double *values, int dim, double *derivs)
vtkQuadraticLinearQuad::CellBoundary
int CellBoundary(int subId, double pcoords[3], vtkIdList *pts)
vtkgl::value
GLsizei const GLfloat * value
Definition: vtkgl.h:12021
VTK_QUADRATIC_LINEAR_QUAD
@ VTK_QUADRATIC_LINEAR_QUAD
Definition: vtkCellType.h:73
vtkgl::values
GLboolean GLenum GLenum GLvoid * values
Definition: vtkgl.h:11354
vtkQuadraticLinearQuad::EvaluateLocation
void EvaluateLocation(int &subId, double pcoords[3], double x[3], double *weights)
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
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
vtkQuadraticLinearQuad::GetNumberOfFaces
int GetNumberOfFaces()
Definition: vtkQuadraticLinearQuad.h:62
vtkQuadraticLinearQuad::InterpolateFunctions
virtual void InterpolateFunctions(double pcoords[3], double weights[6])
Definition: vtkQuadraticLinearQuad.h:111
vtkQuadraticLinearQuad::IntersectWithLine
int IntersectWithLine(double p1[3], double p2[3], double tol, double &t, double x[3], double pcoords[3], int &subId)
vtkQuadraticLinearQuad::GetParametricCoords
virtual double * GetParametricCoords()
vtkQuadraticLinearQuad::vtkQuadraticLinearQuad
vtkQuadraticLinearQuad()
vtkQuadraticLinearQuad::InterpolateDerivs
virtual void InterpolateDerivs(double pcoords[3], double derivs[12])
Definition: vtkQuadraticLinearQuad.h:115
vtkQuadraticLinearQuad::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)
vtkNonLinearCell.h
vtkgl::index
GLuint index
Definition: vtkgl.h:11983
vtkQuadraticLinearQuad::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
vtkgl::t
GLdouble GLdouble t
Definition: vtkgl.h:11602
vtkNonLinearCell
abstract superclass for non-linear cells
Definition: vtkNonLinearCell.h:36
vtkQuadraticLinearQuad
cell represents a quadratic-linear, 6-node isoparametric quad
Definition: vtkQuadraticLinearQuad.h:50
vtkQuadraticLinearQuad::GetParametricCenter
int GetParametricCenter(double pcoords[3])
Definition: vtkQuadraticLinearQuad.h:138
vtkQuadraticLinearQuad::Clip
void Clip(double value, vtkDataArray *cellScalars, vtkIncrementalPointLocator *locator, vtkCellArray *polys, vtkPointData *inPd, vtkPointData *outPd, vtkCellData *inCd, vtkIdType cellId, vtkCellData *outCd, int insideOut)
vtkQuadraticLinearQuad::Quad
vtkQuad * Quad
Definition: vtkQuadraticLinearQuad.h:130
vtkCell::GetParametricCenter
virtual int GetParametricCenter(double pcoords[3])
vtkDoubleArray
dynamic, self-adjusting array of double
Definition: vtkDoubleArray.h:49
VTKCOMMONDATAMODEL_EXPORT
#define VTKCOMMONDATAMODEL_EXPORT
Definition: vtkCommonDataModelModule.h:15
vtkQuadraticLinearQuad::GetNumberOfEdges
int GetNumberOfEdges()
Definition: vtkQuadraticLinearQuad.h:61
vtkQuadraticLinearQuad::GetCellType
int GetCellType()
Definition: vtkQuadraticLinearQuad.h:59
vtkQuadraticEdge
cell represents a parabolic, isoparametric edge
Definition: vtkQuadraticEdge.h:43
vtkQuadraticLinearQuad::EvaluatePosition
int EvaluatePosition(double x[3], double *closestPoint, int &subId, double pcoords[3], double &dist2, double *weights)
vtkQuadraticLinearQuad::New
static vtkQuadraticLinearQuad * New()
vtkQuad
a cell that represents a 2D quadrilateral
Definition: vtkQuad.h:41