VTK
vtkPolyVertex.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkPolyVertex.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 =========================================================================*/
28 #ifndef __vtkPolyVertex_h
29 #define __vtkPolyVertex_h
30 
31 #include "vtkCell.h"
32 
33 class vtkVertex;
34 class vtkIncrementalPointLocator;
35 
36 class VTK_FILTERING_EXPORT vtkPolyVertex : public vtkCell
37 {
38 public:
39  static vtkPolyVertex *New();
40  vtkTypeMacro(vtkPolyVertex,vtkCell);
41  void PrintSelf(ostream& os, vtkIndent indent);
42 
44 
45  int GetCellType() {return VTK_POLY_VERTEX;};
46  int GetCellDimension() {return 0;};
47  int GetNumberOfEdges() {return 0;};
48  int GetNumberOfFaces() {return 0;};
49  vtkCell *GetEdge(int vtkNotUsed(edgeId)) {return 0;};
50  vtkCell *GetFace(int vtkNotUsed(faceId)) {return 0;};
51  int CellBoundary(int subId, double pcoords[3], vtkIdList *pts);
52  void Contour(double value, vtkDataArray *cellScalars,
53  vtkIncrementalPointLocator *locator, vtkCellArray *verts,
54  vtkCellArray *lines, vtkCellArray *polys,
55  vtkPointData *inPd, vtkPointData *outPd,
56  vtkCellData *inCd, vtkIdType cellId, vtkCellData *outCd);
57  void Clip(double value, vtkDataArray *cellScalars,
58  vtkIncrementalPointLocator *locator, vtkCellArray *verts,
59  vtkPointData *inPd, vtkPointData *outPd,
60  vtkCellData *inCd, vtkIdType cellId, vtkCellData *outCd,
61  int insideOut);
62  int EvaluatePosition(double x[3], double* closestPoint,
63  int& subId, double pcoords[3],
64  double& dist2, double *weights);
65  void EvaluateLocation(int& subId, double pcoords[3], double x[3],
66  double *weights);
67  int IntersectWithLine(double p1[3], double p2[3], double tol, double& t,
68  double x[3], double pcoords[3], int& subId);
69  int Triangulate(int index, vtkIdList *ptIds, vtkPoints *pts);
70  void Derivatives(int subId, double pcoords[3], double *values,
71  int dim, double *derivs);
72  int IsPrimaryCell() {return 0;}
74 
76  int GetParametricCenter(double pcoords[3]);
77 
79 
81  virtual void InterpolateFunctions(double pcoords[3], double *weights);
82  virtual void InterpolateDerivs(double pcoords[3], double *derivs);
84 
85 protected:
86  vtkPolyVertex();
87  ~vtkPolyVertex();
88 
90 
91 private:
92  vtkPolyVertex(const vtkPolyVertex&); // Not implemented.
93  void operator=(const vtkPolyVertex&); // Not implemented.
94 };
95 
96 #endif
97 
98 
vtkCell * GetFace(int vtkNotUsed(faceId))
Definition: vtkPolyVertex.h:50
represent and manipulate point attribute data
Definition: vtkPointData.h:35
int GetNumberOfEdges()
Definition: vtkPolyVertex.h:47
#define VTK_FILTERING_EXPORT
a cell that represents a 3D point
Definition: vtkVertex.h:34
vtkCell * GetEdge(int vtkNotUsed(edgeId))
Definition: vtkPolyVertex.h:49
int IsPrimaryCell()
Definition: vtkPolyVertex.h:72
int vtkIdType
Definition: vtkType.h:255
int GetCellDimension()
Definition: vtkPolyVertex.h:46
cell represents a set of 0D vertices
Definition: vtkPolyVertex.h:36
int GetNumberOfFaces()
Definition: vtkPolyVertex.h:48
a simple class to control print indentation
Definition: vtkIndent.h:37
vtkVertex * Vertex
Definition: vtkPolyVertex.h:89
list of point or cell ids
Definition: vtkIdList.h:34
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:53
object to represent cell connectivity
Definition: vtkCellArray.h:48
represent and manipulate 3D points
Definition: vtkPoints.h:38