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 
30 class VTK_FILTERING_EXPORT vtkEmptyCell : public vtkCell
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,
52  vtkIncrementalPointLocator *locator, vtkCellArray *pts,
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 
int GetNumberOfFaces()
Definition: vtkEmptyCell.h:42
represent and manipulate point attribute data
Definition: vtkPointData.h:35
#define VTK_FILTERING_EXPORT
an empty cell used as a place-holder during processing
Definition: vtkEmptyCell.h:30
int vtkIdType
Definition: vtkType.h:255
a simple class to control print indentation
Definition: vtkIndent.h:37
int GetNumberOfEdges()
Definition: vtkEmptyCell.h:41
vtkCell * GetEdge(int)
Definition: vtkEmptyCell.h:43
list of point or cell ids
Definition: vtkIdList.h:34
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:53
object to represent cell connectivity
Definition: vtkCellArray.h:48
int GetCellType()
Definition: vtkEmptyCell.h:39
int GetCellDimension()
Definition: vtkEmptyCell.h:40
represent and manipulate 3D points
Definition: vtkPoints.h:38
vtkCell * GetFace(int)
Definition: vtkEmptyCell.h:44