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

vtkPolyVertex.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    $RCSfile: vtkPolyVertex.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 =========================================================================*/
00038 #ifndef __vtkPolyVertex_h
00039 #define __vtkPolyVertex_h
00040 
00041 #include "vtkCell.h"
00042 
00043 class vtkVertex;
00044 
00045 class VTK_FILTERING_EXPORT vtkPolyVertex : public vtkCell
00046 {
00047 public:
00048   static vtkPolyVertex *New();
00049   vtkTypeRevisionMacro(vtkPolyVertex,vtkCell);
00050   void PrintSelf(ostream& os, vtkIndent indent);
00051 
00053 
00054   int GetCellType() {return VTK_POLY_VERTEX;};
00055   int GetCellDimension() {return 0;};
00056   int GetNumberOfEdges() {return 0;};
00057   int GetNumberOfFaces() {return 0;};
00058   vtkCell *GetEdge(int vtkNotUsed(edgeId)) {return 0;};
00059   vtkCell *GetFace(int vtkNotUsed(faceId)) {return 0;};
00060   int CellBoundary(int subId, double pcoords[3], vtkIdList *pts);
00061   void Contour(double value, vtkDataArray *cellScalars, 
00062                vtkPointLocator *locator, vtkCellArray *verts, 
00063                vtkCellArray *lines, vtkCellArray *polys,
00064                vtkPointData *inPd, vtkPointData *outPd,
00065                vtkCellData *inCd, vtkIdType cellId, vtkCellData *outCd);
00066   void Clip(double value, vtkDataArray *cellScalars, 
00067             vtkPointLocator *locator, vtkCellArray *verts,
00068             vtkPointData *inPd, vtkPointData *outPd,
00069             vtkCellData *inCd, vtkIdType cellId, vtkCellData *outCd,
00070             int insideOut);
00071   int EvaluatePosition(double x[3], double* closestPoint, 
00072                        int& subId, double pcoords[3],
00073                        double& dist2, double *weights);
00074   void EvaluateLocation(int& subId, double pcoords[3], double x[3],
00075                         double *weights);
00076   int IntersectWithLine(double p1[3], double p2[3], double tol, double& t,
00077                         double x[3], double pcoords[3], int& subId);
00078   int Triangulate(int index, vtkIdList *ptIds, vtkPoints *pts);
00079   void Derivatives(int subId, double pcoords[3], double *values, 
00080                    int dim, double *derivs);
00081   int IsPrimaryCell() {return 0;}
00083   
00085   int GetParametricCenter(double pcoords[3]);
00086 
00087   
00088 protected:
00089   vtkPolyVertex();
00090   ~vtkPolyVertex();
00091 
00092   vtkVertex *Vertex;
00093 
00094 private:
00095   vtkPolyVertex(const vtkPolyVertex&);  // Not implemented.
00096   void operator=(const vtkPolyVertex&);  // Not implemented.
00097 };
00098 
00099 #endif
00100 
00101