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;
40 
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,
59  vtkCellArray *lines, vtkCellArray *polys,
60  vtkPointData *inPd, vtkPointData *outPd,
61  vtkCellData *inCd, vtkIdType cellId, vtkCellData *outCd);
62  void Clip(double value, vtkDataArray *cellScalars,
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))
vtkIdType GetNumberOfPoints()
Definition: vtkCell.h:113
represent and manipulate point attribute data
Definition: vtkPointData.h:35
void PrintSelf(ostream &os, vtkIndent indent)
#define VTK_FILTERING_EXPORT
represent and manipulate cell attribute data
Definition: vtkCellData.h:36
Abstract class in support of both point location and point insertion.
virtual int Triangulate(int index, vtkIdList *ptIds, vtkPoints *pts)=0
virtual void InterpolateFunctions(double pcoords[3], double weights[3])
Definition: vtkCell.h:297
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
int vtkIdType
Definition: vtkType.h:255
a cell that represents a triangle strip
cell represents a 1D line
Definition: vtkLine.h:33
abstract class to specify cell behavior
Definition: vtkCell.h:57
a simple class to control print indentation
Definition: vtkIndent.h:37
list of point or cell ids
Definition: vtkIdList.h:34
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
vtkTriangle * Triangle
virtual void Clip(double value, vtkDataArray *cellScalars, vtkIncrementalPointLocator *locator, vtkCellArray *connectivity, vtkPointData *inPd, vtkPointData *outPd, vtkCellData *inCd, vtkIdType cellId, vtkCellData *outCd, int insideOut)=0
object to represent cell connectivity
Definition: vtkCellArray.h:48
virtual vtkCell * GetEdge(int edgeId)=0
a cell that represents a triangle
Definition: vtkTriangle.h:39
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 void InterpolateDerivs(double pcoords[3], double derivs[3])
Definition: vtkCell.h:302
virtual int CellBoundary(int subId, double pcoords[3], vtkIdList *pts)=0
static vtkObject * New()
virtual int GetParametricCenter(double pcoords[3])
represent and manipulate 3D points
Definition: vtkPoints.h:38