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 "vtkCommonDataModelModule.h" // For export macro
30 #include "vtkCell.h"
31 
33 class vtkTetra;
34 class vtkCellArray;
35 class vtkDoubleArray;
36 
38 {
39 public:
40  vtkTypeMacro(vtkCell3D,vtkCell);
41  void PrintSelf(ostream& os, vtkIndent indent);
42 
48  virtual void GetEdgePoints(int edgeId, int* &pts) = 0;
49 
55  virtual void GetFacePoints(int faceId, int* &pts) = 0;
56 
57  virtual void Contour(double value, vtkDataArray *cellScalars,
59  vtkCellArray *lines, vtkCellArray *polys,
60  vtkPointData *inPd, vtkPointData *outPd,
61  vtkCellData *inCd, vtkIdType cellId, vtkCellData *outCd);
62 
64 
75  virtual void Clip(double value, vtkDataArray *cellScalars,
76  vtkIncrementalPointLocator *locator, vtkCellArray *connectivity,
77  vtkPointData *inPd, vtkPointData *outPd,
78  vtkCellData *inCd, vtkIdType cellId, vtkCellData *outCd,
79  int insideOut);
81 
83  virtual int GetCellDimension() {return 3;}
84 
86 
89  vtkSetClampMacro(MergeTolerance,double,0.0001,0.25);
90  vtkGetMacro(MergeTolerance,double);
92 
93 protected:
94  vtkCell3D();
95  ~vtkCell3D();
96 
99 
100  //used to support clipping
103 
104 private:
105  vtkCell3D(const vtkCell3D&); // Not implemented.
106  void operator=(const vtkCell3D&); // Not implemented.
107 };
108 
109 #endif
110 
111 
vtkTetra * ClipTetra
Definition: vtkCell3D.h:101
represent and manipulate point attribute data
Definition: vtkPointData.h:36
void PrintSelf(ostream &os, vtkIndent indent)
represent and manipulate cell attribute data
Definition: vtkCellData.h:37
Abstract class in support of both point location and point insertion.
helper class to generate triangulations
int vtkIdType
Definition: vtkType.h:275
abstract class to specify 3D cell interface
Definition: vtkCell3D.h:37
virtual int GetCellDimension()
Definition: vtkCell3D.h:83
dynamic, self-adjusting array of double
a 3D cell that represents a tetrahedron
Definition: vtkTetra.h:46
abstract class to specify cell behavior
Definition: vtkCell.h:61
vtkOrderedTriangulator * Triangulator
Definition: vtkCell3D.h:97
a simple class to control print indentation
Definition: vtkIndent.h:38
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:54
virtual void Clip(double value, vtkDataArray *cellScalars, vtkIncrementalPointLocator *locator, vtkCellArray *connectivity, vtkPointData *inPd, vtkPointData *outPd, vtkCellData *inCd, vtkIdType cellId, vtkCellData *outCd, int insideOut)=0
object to represent cell connectivity
Definition: vtkCellArray.h:49
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
double MergeTolerance
Definition: vtkCell3D.h:98
vtkDoubleArray * ClipScalars
Definition: vtkCell3D.h:102
#define VTKCOMMONDATAMODEL_EXPORT