VTK
vtkEmptyCell.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkEmptyCell.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 =========================================================================*/
25 #ifndef vtkEmptyCell_h
26 #define vtkEmptyCell_h
27 
28 #include "vtkCommonDataModelModule.h" // For export macro
29 #include "vtkCell.h"
30 
32 {
33 public:
34  static vtkEmptyCell *New();
36  void PrintSelf(ostream& os, vtkIndent indent);
37 
39 
40  int GetCellType() {return VTK_EMPTY_CELL;};
41  int GetCellDimension() {return 0;};
42  int GetNumberOfEdges() {return 0;};
43  int GetNumberOfFaces() {return 0;};
44  vtkCell *GetEdge(int) {return 0;};
45  vtkCell *GetFace(int) {return 0;};
46  int CellBoundary(int subId, double pcoords[3], vtkIdList *pts);
47  void Contour(double value, vtkDataArray *cellScalars,
48  vtkIncrementalPointLocator *locator, vtkCellArray *verts1,
49  vtkCellArray *lines, vtkCellArray *verts2,
50  vtkPointData *inPd, vtkPointData *outPd,
51  vtkCellData *inCd, vtkIdType cellId, vtkCellData *outCd);
52  void Clip(double value, vtkDataArray *cellScalars,
54  vtkPointData *inPd, vtkPointData *outPd,
55  vtkCellData *inCd, vtkIdType cellId, vtkCellData *outCd,
56  int insideOut);
58 
59  int EvaluatePosition(double x[3], double* closestPoint,
60  int& subId, double pcoords[3],
61  double& dist2, double *weights);
62  void EvaluateLocation(int& subId, double pcoords[3], double x[3],
63  double *weights);
64  int IntersectWithLine(double p1[3], double p2[3], double tol, double& t,
65  double x[3], double pcoords[3], int& subId);
66  int Triangulate(int index, vtkIdList *ptIds, vtkPoints *pts);
67  void Derivatives(int subId, double pcoords[3], double *values,
68  int dim, double *derivs);
69 
70 protected:
73 
74 private:
75  vtkEmptyCell(const vtkEmptyCell&); // Not implemented.
76  void operator=(const vtkEmptyCell&); // Not implemented.
77 };
78 
79 #endif
80 
81 
vtkPoints
represent and manipulate 3D points
Definition: vtkPoints.h:39
vtkEmptyCell::GetNumberOfEdges
int GetNumberOfEdges()
Definition: vtkEmptyCell.h:42
vtkEmptyCell::Triangulate
int Triangulate(int index, vtkIdList *ptIds, vtkPoints *pts)
vtkgl::weights
const GLbyte * weights
Definition: vtkgl.h:12766
vtkEmptyCell::~vtkEmptyCell
~vtkEmptyCell()
Definition: vtkEmptyCell.h:72
vtkEmptyCell::Contour
void Contour(double value, vtkDataArray *cellScalars, vtkIncrementalPointLocator *locator, vtkCellArray *verts1, vtkCellArray *lines, vtkCellArray *verts2, vtkPointData *inPd, vtkPointData *outPd, vtkCellData *inCd, vtkIdType cellId, vtkCellData *outCd)
vtkPointData
represent and manipulate point attribute data
Definition: vtkPointData.h:37
vtkIdType
int vtkIdType
Definition: vtkType.h:275
vtkCommonDataModelModule.h
vtkEmptyCell
an empty cell used as a place-holder during processing
Definition: vtkEmptyCell.h:32
vtkTypeMacro
#define vtkTypeMacro(thisClass, superclass)
Definition: vtkSetGet.h:642
vtkgl::x
GLint GLint GLint GLint GLint x
Definition: vtkgl.h:11318
vtkDataArray
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:55
vtkEmptyCell::New
static vtkEmptyCell * New()
vtkEmptyCell::Clip
void Clip(double value, vtkDataArray *cellScalars, vtkIncrementalPointLocator *locator, vtkCellArray *pts, vtkPointData *inPd, vtkPointData *outPd, vtkCellData *inCd, vtkIdType cellId, vtkCellData *outCd, int insideOut)
vtkCell.h
vtkEmptyCell::EvaluateLocation
void EvaluateLocation(int &subId, double pcoords[3], double x[3], double *weights)
vtkgl::value
GLsizei const GLfloat * value
Definition: vtkgl.h:12021
VTK_EMPTY_CELL
@ VTK_EMPTY_CELL
Definition: vtkCellType.h:44
vtkgl::values
GLboolean GLenum GLenum GLvoid * values
Definition: vtkgl.h:11354
vtkEmptyCell::EvaluatePosition
int EvaluatePosition(double x[3], double *closestPoint, int &subId, double pcoords[3], double &dist2, double *weights)
vtkCell
abstract class to specify cell behavior
Definition: vtkCell.h:62
vtkCellData
represent and manipulate cell attribute data
Definition: vtkCellData.h:38
vtkEmptyCell::GetFace
vtkCell * GetFace(int)
Definition: vtkEmptyCell.h:45
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkCellArray
object to represent cell connectivity
Definition: vtkCellArray.h:50
vtkEmptyCell::GetCellType
int GetCellType()
Definition: vtkEmptyCell.h:40
vtkIncrementalPointLocator
Abstract class in support of both point location and point insertion.
Definition: vtkIncrementalPointLocator.h:54
vtkIdList
list of point or cell ids
Definition: vtkIdList.h:36
vtkEmptyCell::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
vtkEmptyCell::Derivatives
void Derivatives(int subId, double pcoords[3], double *values, int dim, double *derivs)
vtkEmptyCell::GetCellDimension
int GetCellDimension()
Definition: vtkEmptyCell.h:41
vtkEmptyCell::GetNumberOfFaces
int GetNumberOfFaces()
Definition: vtkEmptyCell.h:43
vtkEmptyCell::IntersectWithLine
int IntersectWithLine(double p1[3], double p2[3], double tol, double &t, double x[3], double pcoords[3], int &subId)
vtkgl::index
GLuint index
Definition: vtkgl.h:11983
vtkgl::t
GLdouble GLdouble t
Definition: vtkgl.h:11602
VTKCOMMONDATAMODEL_EXPORT
#define VTKCOMMONDATAMODEL_EXPORT
Definition: vtkCommonDataModelModule.h:15
vtkEmptyCell::vtkEmptyCell
vtkEmptyCell()
Definition: vtkEmptyCell.h:71
vtkEmptyCell::CellBoundary
int CellBoundary(int subId, double pcoords[3], vtkIdList *pts)
vtkEmptyCell::GetEdge
vtkCell * GetEdge(int)
Definition: vtkEmptyCell.h:44