VTK
/Users/kitware/Dashboards/MyTests/VTK_BLD_Release_docs/Utilities/Doxygen/dox/Common/DataModel/vtkPolyVertex.h
Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    vtkPolyVertex.h
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 =========================================================================*/
00028 #ifndef vtkPolyVertex_h
00029 #define vtkPolyVertex_h
00030 
00031 #include "vtkCommonDataModelModule.h" // For export macro
00032 #include "vtkCell.h"
00033 
00034 class vtkVertex;
00035 class vtkIncrementalPointLocator;
00036 
00037 class VTKCOMMONDATAMODEL_EXPORT vtkPolyVertex : public vtkCell
00038 {
00039 public:
00040   static vtkPolyVertex *New();
00041   vtkTypeMacro(vtkPolyVertex,vtkCell);
00042   void PrintSelf(ostream& os, vtkIndent indent);
00043 
00045 
00046   int GetCellType() {return VTK_POLY_VERTEX;};
00047   int GetCellDimension() {return 0;};
00048   int GetNumberOfEdges() {return 0;};
00049   int GetNumberOfFaces() {return 0;};
00050   vtkCell *GetEdge(int vtkNotUsed(edgeId)) {return 0;};
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                vtkIncrementalPointLocator *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             vtkIncrementalPointLocator *locator, vtkCellArray *verts,
00060             vtkPointData *inPd, vtkPointData *outPd,
00061             vtkCellData *inCd, vtkIdType cellId, vtkCellData *outCd,
00062             int insideOut);
00063   int EvaluatePosition(double x[3], double* closestPoint,
00064                        int& subId, double pcoords[3],
00065                        double& dist2, double *weights);
00066   void EvaluateLocation(int& subId, double pcoords[3], double x[3],
00067                         double *weights);
00068   int IntersectWithLine(double p1[3], double p2[3], double tol, double& t,
00069                         double x[3], double pcoords[3], int& subId);
00070   int Triangulate(int index, vtkIdList *ptIds, vtkPoints *pts);
00071   void Derivatives(int subId, double pcoords[3], double *values,
00072                    int dim, double *derivs);
00073   int IsPrimaryCell() {return 0;}
00075 
00077   int GetParametricCenter(double pcoords[3]);
00078 
00080 
00082   virtual void InterpolateFunctions(double pcoords[3], double *weights);
00083   virtual void InterpolateDerivs(double pcoords[3], double *derivs);
00085 
00086 protected:
00087   vtkPolyVertex();
00088   ~vtkPolyVertex();
00089 
00090   vtkVertex *Vertex;
00091 
00092 private:
00093   vtkPolyVertex(const vtkPolyVertex&);  // Not implemented.
00094   void operator=(const vtkPolyVertex&);  // Not implemented.
00095 };
00096 
00097 #endif
00098 
00099