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

dox/Common/vtkPolyVertex.h

Go to the documentation of this file.
00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: $RCSfile: vtkPolyVertex.h,v $ 00005 Language: C++ 00006 00007 Copyright (c) 1993-2002 Ken Martin, Will Schroeder, Bill Lorensen 00008 All rights reserved. 00009 See Copyright.txt or http://www.kitware.com/Copyright.htm for details. 00010 00011 This software is distributed WITHOUT ANY WARRANTY; without even 00012 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 00013 PURPOSE. See the above copyright notice for more information. 00014 00015 =========================================================================*/ 00032 #ifndef __vtkPolyVertex_h 00033 #define __vtkPolyVertex_h 00034 00035 #include "vtkCell.h" 00036 00037 class vtkVertex; 00038 00039 class VTK_COMMON_EXPORT vtkPolyVertex : public vtkCell 00040 { 00041 public: 00042 static vtkPolyVertex *New(); 00043 vtkTypeRevisionMacro(vtkPolyVertex,vtkCell); 00044 00046 00047 int GetCellType() {return VTK_POLY_VERTEX;}; 00048 int GetCellDimension() {return 0;}; 00049 int GetNumberOfEdges() {return 0;}; 00050 int GetNumberOfFaces() {return 0;}; 00051 vtkCell *GetEdge(int vtkNotUsed(edgeId)) {return 0;}; 00052 vtkCell *GetFace(int vtkNotUsed(faceId)) {return 0;}; 00053 int CellBoundary(int subId, float pcoords[3], vtkIdList *pts); 00054 void Contour(float value, vtkDataArray *cellScalars, 00055 vtkPointLocator *locator, vtkCellArray *verts, 00056 vtkCellArray *lines, vtkCellArray *polys, 00057 vtkPointData *inPd, vtkPointData *outPd, 00058 vtkCellData *inCd, vtkIdType cellId, vtkCellData *outCd); 00059 void Clip(float value, vtkDataArray *cellScalars, 00060 vtkPointLocator *locator, vtkCellArray *verts, 00061 vtkPointData *inPd, vtkPointData *outPd, 00062 vtkCellData *inCd, vtkIdType cellId, vtkCellData *outCd, 00063 int insideOut); 00064 int EvaluatePosition(float x[3], float* closestPoint, 00065 int& subId, float pcoords[3], 00066 float& dist2, float *weights); 00067 void EvaluateLocation(int& subId, float pcoords[3], float x[3], 00068 float *weights); 00069 int IntersectWithLine(float p1[3], float p2[3], float tol, float& t, 00070 float x[3], float pcoords[3], int& subId); 00071 int Triangulate(int index, vtkIdList *ptIds, vtkPoints *pts); 00072 void Derivatives(int subId, float pcoords[3], float *values, 00073 int dim, float *derivs); 00075 00077 int GetParametricCenter(float pcoords[3]); 00078 00079 00080 protected: 00081 vtkPolyVertex(); 00082 ~vtkPolyVertex(); 00083 00084 vtkVertex *Vertex; 00085 00086 private: 00087 vtkPolyVertex(const vtkPolyVertex&); // Not implemented. 00088 void operator=(const vtkPolyVertex&); // Not implemented. 00089 }; 00090 00091 #endif 00092 00093