VTK
vtkCell3D.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkCell3D.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 =========================================================================*/
26 #ifndef __vtkCell3D_h
27 #define __vtkCell3D_h
28 
29 #include "vtkCell.h"
30 
32 class vtkTetra;
33 class vtkCellArray;
34 class vtkDoubleArray;
35 
37 {
38 public:
39  vtkTypeMacro(vtkCell3D,vtkCell);
40  void PrintSelf(ostream& os, vtkIndent indent);
41 
47  virtual void GetEdgePoints(int edgeId, int* &pts) = 0;
48 
54  virtual void GetFacePoints(int faceId, int* &pts) = 0;
55 
56  virtual void Contour(double value, vtkDataArray *cellScalars,
58  vtkCellArray *lines, vtkCellArray *polys,
59  vtkPointData *inPd, vtkPointData *outPd,
60  vtkCellData *inCd, vtkIdType cellId, vtkCellData *outCd);
61 
63 
74  virtual void Clip(double value, vtkDataArray *cellScalars,
75  vtkIncrementalPointLocator *locator, vtkCellArray *connectivity,
76  vtkPointData *inPd, vtkPointData *outPd,
77  vtkCellData *inCd, vtkIdType cellId, vtkCellData *outCd,
78  int insideOut);
80 
82  virtual int GetCellDimension() {return 3;}
83 
85 
88  vtkSetClampMacro(MergeTolerance,double,0.0001,0.25);
89  vtkGetMacro(MergeTolerance,double);
91 
92 protected:
93  vtkCell3D();
94  ~vtkCell3D();
95 
98 
99  //used to support clipping
102 
103 private:
104  vtkCell3D(const vtkCell3D&); // Not implemented.
105  void operator=(const vtkCell3D&); // Not implemented.
106 };
107 
108 #endif
109 
110