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
34class vtkTetra;
35class vtkCellArray;
36class vtkDoubleArray;
37
38class VTKCOMMONDATAMODEL_EXPORT vtkCell3D : public vtkCell
39{
40public:
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
102protected:
104 ~vtkCell3D() VTK_OVERRIDE;
105
107 double MergeTolerance;
108
109 //used to support clipping
110 vtkTetra *ClipTetra;
111 vtkDoubleArray *ClipScalars;
112
113private:
114 vtkCell3D(const vtkCell3D&) VTK_DELETE_FUNCTION;
115 void operator=(const vtkCell3D&) VTK_DELETE_FUNCTION;
116};
117
118#endif
119
120
abstract class to specify 3D cell interface
Definition: vtkCell3D.h:39
int GetCellDimension() override
The topological dimension of the cell.
Definition: vtkCell3D.h:90
void Clip(double value, vtkDataArray *cellScalars, vtkIncrementalPointLocator *locator, vtkCellArray *connectivity, vtkPointData *inPd, vtkPointData *outPd, vtkCellData *inCd, vtkIdType cellId, vtkCellData *outCd, int insideOut) override
Cut (or clip) the cell based on the input cellScalars and the specified value.
~vtkCell3D() override
virtual void GetFacePoints(int faceId, int *&pts)=0
Get the list of vertices that define a face.
void Contour(double value, vtkDataArray *cellScalars, vtkIncrementalPointLocator *locator, vtkCellArray *verts, vtkCellArray *lines, vtkCellArray *polys, vtkPointData *inPd, vtkPointData *outPd, vtkCellData *inCd, vtkIdType cellId, vtkCellData *outCd) override
Generate contouring primitives.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
virtual void GetEdgePoints(int edgeId, int *&pts)=0
Get the pair of vertices that define an edge.
object to represent cell connectivity
Definition: vtkCellArray.h:51
represent and manipulate cell attribute data
Definition: vtkCellData.h:39
abstract class to specify cell behavior
Definition: vtkCell.h:60
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:55
dynamic, self-adjusting array of double
Abstract class in support of both point location and point insertion.
a simple class to control print indentation
Definition: vtkIndent.h:40
helper class to generate triangulations
represent and manipulate point attribute data
Definition: vtkPointData.h:38
a 3D cell that represents a tetrahedron
Definition: vtkTetra.h:48
@ value
Definition: vtkX3D.h:220
int vtkIdType
Definition: vtkType.h:287