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

dox/Common/vtkEmptyCell.h

Go to the documentation of this file.
00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: $RCSfile: vtkEmptyCell.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 =========================================================================*/ 00029 #ifndef __vtkEmptyCell_h 00030 #define __vtkEmptyCell_h 00031 00032 #include "vtkCell.h" 00033 00034 class VTK_COMMON_EXPORT vtkEmptyCell : public vtkCell 00035 { 00036 public: 00037 static vtkEmptyCell *New(); 00038 vtkTypeRevisionMacro(vtkEmptyCell,vtkCell); 00039 00041 00042 int GetCellType() {return VTK_EMPTY_CELL;}; 00043 int GetCellDimension() {return 0;}; 00044 int GetNumberOfEdges() {return 0;}; 00045 int GetNumberOfFaces() {return 0;}; 00046 vtkCell *GetEdge(int) {return 0;}; 00047 vtkCell *GetFace(int) {return 0;}; 00048 int CellBoundary(int subId, float pcoords[3], vtkIdList *pts); 00049 void Contour(float value, vtkDataArray *cellScalars, 00050 vtkPointLocator *locator, vtkCellArray *verts1, 00051 vtkCellArray *lines, vtkCellArray *verts2, 00052 vtkPointData *inPd, vtkPointData *outPd, 00053 vtkCellData *inCd, vtkIdType cellId, vtkCellData *outCd); 00054 void Clip(float value, vtkDataArray *cellScalars, 00055 vtkPointLocator *locator, vtkCellArray *pts, 00056 vtkPointData *inPd, vtkPointData *outPd, 00057 vtkCellData *inCd, vtkIdType cellId, vtkCellData *outCd, 00058 int insideOut); 00060 00061 int EvaluatePosition(float x[3], float* closestPoint, 00062 int& subId, float pcoords[3], 00063 float& dist2, float *weights); 00064 void EvaluateLocation(int& subId, float pcoords[3], float x[3], 00065 float *weights); 00066 int IntersectWithLine(float p1[3], float p2[3], float tol, float& t, 00067 float x[3], float pcoords[3], int& subId); 00068 int Triangulate(int index, vtkIdList *ptIds, vtkPoints *pts); 00069 void Derivatives(int subId, float pcoords[3], float *values, 00070 int dim, float *derivs); 00071 00072 protected: 00073 vtkEmptyCell() {}; 00074 ~vtkEmptyCell() {}; 00075 00076 00077 private: 00078 vtkEmptyCell(const vtkEmptyCell&); // Not implemented. 00079 void operator=(const vtkEmptyCell&); // Not implemented. 00080 }; 00081 00082 #endif 00083 00084