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