VTK
vtkTriangleStrip.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkTriangleStrip.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 =========================================================================*/
32 #ifndef __vtkTriangleStrip_h
33 #define __vtkTriangleStrip_h
34 
35 #include "vtkCell.h"
36 
37 class vtkLine;
38 class vtkTriangle;
39 class vtkIncrementalPointLocator;
40 
41 class VTK_FILTERING_EXPORT vtkTriangleStrip : public vtkCell
42 {
43 public:
44  static vtkTriangleStrip *New();
45  vtkTypeMacro(vtkTriangleStrip,vtkCell);
46  void PrintSelf(ostream& os, vtkIndent indent);
47 
49 
51  int GetCellDimension() {return 2;};
52  int GetNumberOfEdges() {return this->GetNumberOfPoints();};
53  int GetNumberOfFaces() {return 0;};
54  vtkCell *GetEdge(int edgeId);
55  vtkCell *GetFace(int vtkNotUsed(faceId)) {return 0;};
56  int CellBoundary(int subId, double pcoords[3], vtkIdList *pts);
57  void Contour(double value, vtkDataArray *cellScalars,
58  vtkIncrementalPointLocator *locator, vtkCellArray *verts,
59  vtkCellArray *lines, vtkCellArray *polys,
60  vtkPointData *inPd, vtkPointData *outPd,
61  vtkCellData *inCd, vtkIdType cellId, vtkCellData *outCd);
62  void Clip(double value, vtkDataArray *cellScalars,
63  vtkIncrementalPointLocator *locator, vtkCellArray *polys,
64  vtkPointData *inPd, vtkPointData *outPd,
65  vtkCellData *inCd, vtkIdType cellId, vtkCellData *outCd,
66  int insideOut);
68 
69  int EvaluatePosition(double x[3], double* closestPoint,
70  int& subId, double pcoords[3],
71  double& dist2, double *weights);
72  void EvaluateLocation(int& subId, double pcoords[3], double x[3],
73  double *weights);
74  int IntersectWithLine(double p1[3], double p2[3], double tol, double& t,
75  double x[3], double pcoords[3], int& subId);
76  int Triangulate(int index, vtkIdList *ptIds, vtkPoints *pts);
77  void Derivatives(int subId, double pcoords[3], double *values,
78  int dim, double *derivs);
79  int IsPrimaryCell() {return 0;}
80 
82  int GetParametricCenter(double pcoords[3]);
83 
87  static void DecomposeStrip(int npts, vtkIdType *pts, vtkCellArray *tris);
88 
90 
92  virtual void InterpolateFunctions(double pcoords[3], double *weights);
93  virtual void InterpolateDerivs(double pcoords[3], double *derivs);
95 
96 protected:
99 
102 
103 private:
104  vtkTriangleStrip(const vtkTriangleStrip&); // Not implemented.
105  void operator=(const vtkTriangleStrip&); // Not implemented.
106 };
107 
108 #endif
109 
110 
vtkCell * GetFace(int vtkNotUsed(faceId))
represent and manipulate point attribute data
Definition: vtkPointData.h:35
#define VTK_FILTERING_EXPORT
int vtkIdType
Definition: vtkType.h:255
a cell that represents a triangle strip
cell represents a 1D line
Definition: vtkLine.h:33
a simple class to control print indentation
Definition: vtkIndent.h:37
list of point or cell ids
Definition: vtkIdList.h:34
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:53
vtkTriangle * Triangle
object to represent cell connectivity
Definition: vtkCellArray.h:48
a cell that represents a triangle
Definition: vtkTriangle.h:39
represent and manipulate 3D points
Definition: vtkPoints.h:38