VTK
|
00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: vtkEmptyCell.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 =========================================================================*/ 00025 #ifndef __vtkEmptyCell_h 00026 #define __vtkEmptyCell_h 00027 00028 #include "vtkCell.h" 00029 00030 class VTK_FILTERING_EXPORT vtkEmptyCell : public vtkCell 00031 { 00032 public: 00033 static vtkEmptyCell *New(); 00034 vtkTypeMacro(vtkEmptyCell,vtkCell); 00035 void PrintSelf(ostream& os, vtkIndent indent); 00036 00038 00039 int GetCellType() {return VTK_EMPTY_CELL;}; 00040 int GetCellDimension() {return 0;}; 00041 int GetNumberOfEdges() {return 0;}; 00042 int GetNumberOfFaces() {return 0;}; 00043 vtkCell *GetEdge(int) {return 0;}; 00044 vtkCell *GetFace(int) {return 0;}; 00045 int CellBoundary(int subId, double pcoords[3], vtkIdList *pts); 00046 void Contour(double value, vtkDataArray *cellScalars, 00047 vtkIncrementalPointLocator *locator, vtkCellArray *verts1, 00048 vtkCellArray *lines, vtkCellArray *verts2, 00049 vtkPointData *inPd, vtkPointData *outPd, 00050 vtkCellData *inCd, vtkIdType cellId, vtkCellData *outCd); 00051 void Clip(double value, vtkDataArray *cellScalars, 00052 vtkIncrementalPointLocator *locator, vtkCellArray *pts, 00053 vtkPointData *inPd, vtkPointData *outPd, 00054 vtkCellData *inCd, vtkIdType cellId, vtkCellData *outCd, 00055 int insideOut); 00057 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 00070 00072 virtual void InterpolateFunctions(double pcoords[3], double *weights); 00073 virtual void InterpolateDerivs(double pcoords[3], double *derivs); 00075 00076 protected: 00077 vtkEmptyCell() {}; 00078 ~vtkEmptyCell() {}; 00079 00080 private: 00081 vtkEmptyCell(const vtkEmptyCell&); // Not implemented. 00082 void operator=(const vtkEmptyCell&); // Not implemented. 00083 }; 00084 00085 #endif 00086 00087