• Main Page
  • Related Pages
  • Namespaces
  • Classes
  • Files
  • File List
  • File Members

dox/Filtering/vtkTriangleStrip.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    $RCSfile: vtkTriangleStrip.h,v $
00005 
00006   Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
00007   All rights reserved.
00008   See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
00009 
00010      This software is distributed WITHOUT ANY WARRANTY; without even
00011      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
00012      PURPOSE.  See the above copyright notice for more information.
00013 
00014 =========================================================================*/
00029 #ifndef __vtkTriangleStrip_h
00030 #define __vtkTriangleStrip_h
00031 
00032 #include "vtkCell.h"
00033 
00034 class vtkLine;
00035 class vtkTriangle;
00036 
00037 class VTK_FILTERING_EXPORT vtkTriangleStrip : public vtkCell
00038 {
00039 public:
00040   static vtkTriangleStrip *New();
00041   vtkTypeRevisionMacro(vtkTriangleStrip,vtkCell);
00042   void PrintSelf(ostream& os, vtkIndent indent);
00043 
00045 
00046   int GetCellType() {return VTK_TRIANGLE_STRIP;};
00047   int GetCellDimension() {return 2;};
00048   int GetNumberOfEdges() {return this->GetNumberOfPoints();};
00049   int GetNumberOfFaces() {return 0;};
00050   vtkCell *GetEdge(int edgeId);
00051   vtkCell *GetFace(int vtkNotUsed(faceId)) {return 0;};
00052   int CellBoundary(int subId, double pcoords[3], vtkIdList *pts);
00053   void Contour(double value, vtkDataArray *cellScalars,
00054                vtkPointLocator *locator, vtkCellArray *verts,
00055                vtkCellArray *lines, vtkCellArray *polys,
00056                vtkPointData *inPd, vtkPointData *outPd,
00057                vtkCellData *inCd, vtkIdType cellId, vtkCellData *outCd);
00058   void Clip(double value, vtkDataArray *cellScalars,
00059             vtkPointLocator *locator, vtkCellArray *polys,
00060             vtkPointData *inPd, vtkPointData *outPd,
00061             vtkCellData *inCd, vtkIdType cellId, vtkCellData *outCd,
00062             int insideOut);
00064 
00065   int EvaluatePosition(double x[3], double* closestPoint,
00066                        int& subId, double pcoords[3],
00067                        double& dist2, double *weights);
00068   void EvaluateLocation(int& subId, double pcoords[3], double x[3],
00069                         double *weights);
00070   int IntersectWithLine(double p1[3], double p2[3], double tol, double& t,
00071                         double x[3], double pcoords[3], int& subId);
00072   int Triangulate(int index, vtkIdList *ptIds, vtkPoints *pts);
00073   void Derivatives(int subId, double pcoords[3], double *values,
00074                    int dim, double *derivs);
00075   int IsPrimaryCell() {return 0;}
00076 
00078   int GetParametricCenter(double pcoords[3]);
00079 
00083   static void DecomposeStrip(int npts, vtkIdType *pts, vtkCellArray *tris);
00084 
00086 
00088   virtual void InterpolateFunctions(double pcoords[3], double *weights);
00089   virtual void InterpolateDerivs(double pcoords[3], double *derivs);
00091 
00092 protected:
00093   vtkTriangleStrip();
00094   ~vtkTriangleStrip();
00095 
00096   vtkLine *Line;
00097   vtkTriangle *Triangle;
00098 
00099 private:
00100   vtkTriangleStrip(const vtkTriangleStrip&);  // Not implemented.
00101   void operator=(const vtkTriangleStrip&);  // Not implemented.
00102 };
00103 
00104 #endif
00105 
00106 

Generated by  doxygen 1.7.1