Main Page | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members | Related Pages

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 =========================================================================*/
00032 #ifndef __vtkTriangleStrip_h
00033 #define __vtkTriangleStrip_h
00034 
00035 #include "vtkCell.h"
00036 
00037 class vtkLine;
00038 class vtkTriangle;
00039 
00040 class VTK_FILTERING_EXPORT vtkTriangleStrip : public vtkCell
00041 {
00042 public:
00043   static vtkTriangleStrip *New();
00044   vtkTypeRevisionMacro(vtkTriangleStrip,vtkCell);
00045   void PrintSelf(ostream& os, vtkIndent indent);
00046 
00048 
00049   int GetCellType() {return VTK_TRIANGLE_STRIP;};
00050   int GetCellDimension() {return 2;};
00051   int GetNumberOfEdges() {return this->GetNumberOfPoints();};
00052   int GetNumberOfFaces() {return 0;};
00053   vtkCell *GetEdge(int edgeId);
00054   vtkCell *GetFace(int vtkNotUsed(faceId)) {return 0;};
00055   int CellBoundary(int subId, double pcoords[3], vtkIdList *pts);
00056   void Contour(double value, vtkDataArray *cellScalars, 
00057                vtkPointLocator *locator, vtkCellArray *verts, 
00058                vtkCellArray *lines, vtkCellArray *polys, 
00059                vtkPointData *inPd, vtkPointData *outPd,
00060                vtkCellData *inCd, vtkIdType cellId, vtkCellData *outCd);
00061   void Clip(double value, vtkDataArray *cellScalars, 
00062             vtkPointLocator *locator, vtkCellArray *polys,
00063             vtkPointData *inPd, vtkPointData *outPd,
00064             vtkCellData *inCd, vtkIdType cellId, vtkCellData *outCd,
00065             int insideOut);
00067 
00068   int EvaluatePosition(double x[3], double* closestPoint,
00069                        int& subId, double pcoords[3],
00070                        double& dist2, double *weights);
00071   void EvaluateLocation(int& subId, double pcoords[3], double x[3],
00072                         double *weights);
00073   int IntersectWithLine(double p1[3], double p2[3], double tol, double& t,
00074                         double x[3], double pcoords[3], int& subId);
00075   int Triangulate(int index, vtkIdList *ptIds, vtkPoints *pts);
00076   void Derivatives(int subId, double pcoords[3], double *values, 
00077                    int dim, double *derivs);
00078   int IsPrimaryCell() {return 0;}
00079 
00081   int GetParametricCenter(double pcoords[3]);
00082 
00086   static void DecomposeStrip(int npts, vtkIdType *pts, vtkCellArray *tris);
00087   
00088 
00089 protected:
00090   vtkTriangleStrip();
00091   ~vtkTriangleStrip();
00092 
00093   vtkLine *Line;
00094   vtkTriangle *Triangle;
00095   
00096 private:
00097   vtkTriangleStrip(const vtkTriangleStrip&);  // Not implemented.
00098   void operator=(const vtkTriangleStrip&);  // Not implemented.
00099 };
00100 
00101 #endif
00102 
00103 

Generated on Mon Jan 21 23:07:21 2008 for VTK by  doxygen 1.4.3-20050530