VTK
|
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 =========================================================================*/ 00025 #ifndef __vtkPolyVertex_h 00026 #define __vtkPolyVertex_h 00027 00028 #include "vtkCell.h" 00029 00030 class vtkVertex; 00031 00032 class VTK_FILTERING_EXPORT vtkPolyVertex : public vtkCell 00033 { 00034 public: 00035 static vtkPolyVertex *New(); 00036 vtkTypeRevisionMacro(vtkPolyVertex,vtkCell); 00037 void PrintSelf(ostream& os, vtkIndent indent); 00038 00040 00041 int GetCellType() {return VTK_POLY_VERTEX;}; 00042 int GetCellDimension() {return 0;}; 00043 int GetNumberOfEdges() {return 0;}; 00044 int GetNumberOfFaces() {return 0;}; 00045 vtkCell *GetEdge(int vtkNotUsed(edgeId)) {return 0;}; 00046 vtkCell *GetFace(int vtkNotUsed(faceId)) {return 0;}; 00047 int CellBoundary(int subId, double pcoords[3], vtkIdList *pts); 00048 void Contour(double value, vtkDataArray *cellScalars, 00049 vtkPointLocator *locator, vtkCellArray *verts, 00050 vtkCellArray *lines, vtkCellArray *polys, 00051 vtkPointData *inPd, vtkPointData *outPd, 00052 vtkCellData *inCd, vtkIdType cellId, vtkCellData *outCd); 00053 void Clip(double value, vtkDataArray *cellScalars, 00054 vtkPointLocator *locator, vtkCellArray *verts, 00055 vtkPointData *inPd, vtkPointData *outPd, 00056 vtkCellData *inCd, vtkIdType cellId, vtkCellData *outCd, 00057 int insideOut); 00058 int EvaluatePosition(double x[3], double* closestPoint, 00059 int& subId, double pcoords[3], 00060 double& dist2, double *weights); 00061 void EvaluateLocation(int& subId, double pcoords[3], double x[3], 00062 double *weights); 00063 int IntersectWithLine(double p1[3], double p2[3], double tol, double& t, 00064 double x[3], double pcoords[3], int& subId); 00065 int Triangulate(int index, vtkIdList *ptIds, vtkPoints *pts); 00066 void Derivatives(int subId, double pcoords[3], double *values, 00067 int dim, double *derivs); 00068 int IsPrimaryCell() {return 0;} 00070 00072 int GetParametricCenter(double pcoords[3]); 00073 00075 00077 virtual void InterpolateFunctions(double pcoords[3], double *weights); 00078 virtual void InterpolateDerivs(double pcoords[3], double *derivs); 00080 00081 protected: 00082 vtkPolyVertex(); 00083 ~vtkPolyVertex(); 00084 00085 vtkVertex *Vertex; 00086 00087 private: 00088 vtkPolyVertex(const vtkPolyVertex&); // Not implemented. 00089 void operator=(const vtkPolyVertex&); // Not implemented. 00090 }; 00091 00092 #endif 00093 00094