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 
31 class vtkOrderedTriangulator;
32 class vtkTetra;
33 class vtkCellArray;
34 class vtkDoubleArray;
35 
36 class VTK_FILTERING_EXPORT vtkCell3D : public vtkCell
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,
57  vtkIncrementalPointLocator *locator, vtkCellArray *verts,
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 
96  vtkOrderedTriangulator *Triangulator;
98 
99  //used to support clipping
100  vtkTetra *ClipTetra;
102 
103 private:
104  vtkCell3D(const vtkCell3D&); // Not implemented.
105  void operator=(const vtkCell3D&); // Not implemented.
106 };
107 
108 #endif
109 
110 
vtkTetra * ClipTetra
Definition: vtkCell3D.h:100
#define VTK_FILTERING_EXPORT
represent and manipulate cell attribute data
Definition: vtkCellData.h:36
Abstract class in support of both point location and point insertion.
int vtkIdType
Definition: vtkType.h:255
abstract class to specify 3D cell interface
Definition: vtkCell3D.h:36
virtual int GetCellDimension()
Definition: vtkCell3D.h:82
dynamic, self-adjusting array of double
vtkOrderedTriangulator * Triangulator
Definition: vtkCell3D.h:96
a simple class to control print indentation
Definition: vtkIndent.h:37
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:53
double MergeTolerance
Definition: vtkCell3D.h:97
vtkDoubleArray * ClipScalars
Definition: vtkCell3D.h:101