VTK
vtkEmptyCell.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkEmptyCell.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
25 #ifndef __vtkEmptyCell_h
26 #define __vtkEmptyCell_h
27 
28 #include "vtkCell.h"
29 
31 {
32 public:
33  static vtkEmptyCell *New();
34  vtkTypeMacro(vtkEmptyCell,vtkCell);
35  void PrintSelf(ostream& os, vtkIndent indent);
36 
38 
39  int GetCellType() {return VTK_EMPTY_CELL;};
40  int GetCellDimension() {return 0;};
41  int GetNumberOfEdges() {return 0;};
42  int GetNumberOfFaces() {return 0;};
43  vtkCell *GetEdge(int) {return 0;};
44  vtkCell *GetFace(int) {return 0;};
45  int CellBoundary(int subId, double pcoords[3], vtkIdList *pts);
46  void Contour(double value, vtkDataArray *cellScalars,
47  vtkIncrementalPointLocator *locator, vtkCellArray *verts1,
48  vtkCellArray *lines, vtkCellArray *verts2,
49  vtkPointData *inPd, vtkPointData *outPd,
50  vtkCellData *inCd, vtkIdType cellId, vtkCellData *outCd);
51  void Clip(double value, vtkDataArray *cellScalars,
53  vtkPointData *inPd, vtkPointData *outPd,
54  vtkCellData *inCd, vtkIdType cellId, vtkCellData *outCd,
55  int insideOut);
57 
58  int EvaluatePosition(double x[3], double* closestPoint,
59  int& subId, double pcoords[3],
60  double& dist2, double *weights);
61  void EvaluateLocation(int& subId, double pcoords[3], double x[3],
62  double *weights);
63  int IntersectWithLine(double p1[3], double p2[3], double tol, double& t,
64  double x[3], double pcoords[3], int& subId);
65  int Triangulate(int index, vtkIdList *ptIds, vtkPoints *pts);
66  void Derivatives(int subId, double pcoords[3], double *values,
67  int dim, double *derivs);
68 
70 
72  virtual void InterpolateFunctions(double pcoords[3], double *weights);
73  virtual void InterpolateDerivs(double pcoords[3], double *derivs);
75 
76 protected:
79 
80 private:
81  vtkEmptyCell(const vtkEmptyCell&); // Not implemented.
82  void operator=(const vtkEmptyCell&); // Not implemented.
83 };
84 
85 #endif
86 
87