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 =========================================================================*/
27 #ifndef vtkCell3D_h
28 #define vtkCell3D_h
29 
30 #include "vtkCommonDataModelModule.h" // For export macro
31 #include "vtkCell.h"
32 
34 class vtkTetra;
35 class vtkCellArray;
36 class vtkDoubleArray;
37 
38 class VTKCOMMONDATAMODEL_EXPORT vtkCell3D : public vtkCell
39 {
40 public:
41  vtkTypeMacro(vtkCell3D,vtkCell);
42  void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
43 
51  virtual void GetEdgePoints(int edgeId, int* &pts) = 0;
52 
60  virtual void GetFacePoints(int faceId, int* &pts) = 0;
61 
62  void Contour(double value, vtkDataArray *cellScalars,
64  vtkCellArray *lines, vtkCellArray *polys,
65  vtkPointData *inPd, vtkPointData *outPd,
66  vtkCellData *inCd, vtkIdType cellId,
67  vtkCellData *outCd) VTK_OVERRIDE;
68 
81  void Clip(double value, vtkDataArray *cellScalars,
82  vtkIncrementalPointLocator *locator, vtkCellArray *connectivity,
83  vtkPointData *inPd, vtkPointData *outPd,
84  vtkCellData *inCd, vtkIdType cellId, vtkCellData *outCd,
85  int insideOut) VTK_OVERRIDE;
86 
90  int GetCellDimension() VTK_OVERRIDE {return 3;}
91 
93 
98  vtkSetClampMacro(MergeTolerance,double,0.0001,0.25);
99  vtkGetMacro(MergeTolerance,double);
101 
102 protected:
103  vtkCell3D();
104  ~vtkCell3D() VTK_OVERRIDE;
105 
106  vtkOrderedTriangulator *Triangulator;
107  double MergeTolerance;
108 
109  //used to support clipping
110  vtkTetra *ClipTetra;
111  vtkDoubleArray *ClipScalars;
112 
113 private:
114  vtkCell3D(const vtkCell3D&) VTK_DELETE_FUNCTION;
115  void operator=(const vtkCell3D&) VTK_DELETE_FUNCTION;
116 };
117 
118 #endif
119 
120 
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
represent and manipulate point attribute data
Definition: vtkPointData.h:37
represent and manipulate cell attribute data
Definition: vtkCellData.h:38
Abstract class in support of both point location and point insertion.
helper class to generate triangulations
int vtkIdType
Definition: vtkType.h:287
abstract class to specify 3D cell interface
Definition: vtkCell3D.h:38
dynamic, self-adjusting array of double
a 3D cell that represents a tetrahedron
Definition: vtkTetra.h:47
abstract class to specify cell behavior
Definition: vtkCell.h:59
a simple class to control print indentation
Definition: vtkIndent.h:39
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:54
int GetCellDimension() override
The topological dimension of the cell.
Definition: vtkCell3D.h:90
virtual void Clip(double value, vtkDataArray *cellScalars, vtkIncrementalPointLocator *locator, vtkCellArray *connectivity, vtkPointData *inPd, vtkPointData *outPd, vtkCellData *inCd, vtkIdType cellId, vtkCellData *outCd, int insideOut)=0
Cut (or clip) the cell based on the input cellScalars and the specified value.
object to represent cell connectivity
Definition: vtkCellArray.h:50
virtual void Contour(double value, vtkDataArray *cellScalars, vtkIncrementalPointLocator *locator, vtkCellArray *verts, vtkCellArray *lines, vtkCellArray *polys, vtkPointData *inPd, vtkPointData *outPd, vtkCellData *inCd, vtkIdType cellId, vtkCellData *outCd)=0
Generate contouring primitives.