VTK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
vtkVertex.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkVertex.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 __vtkVertex_h
28 #define __vtkVertex_h
29 
30 #include "vtkCommonDataModelModule.h" // For export macro
31 #include "vtkCell.h"
32 
34 
35 class VTKCOMMONDATAMODEL_EXPORT vtkVertex : public vtkCell
36 {
37 public:
38  static vtkVertex *New();
39  vtkTypeMacro(vtkVertex,vtkCell);
40  void PrintSelf(ostream& os, vtkIndent indent);
41 
46  int GetCellType() {return VTK_VERTEX;};
47  int GetCellDimension() {return 0;};
48  int GetNumberOfEdges() {return 0;};
49  int GetNumberOfFaces() {return 0;};
50  vtkCell *GetEdge(int) {return 0;};
51  vtkCell *GetFace(int) {return 0;};
52  void Clip(double value, vtkDataArray *cellScalars,
54  vtkPointData *inPd, vtkPointData *outPd,
55  vtkCellData *inCd, vtkIdType cellId, vtkCellData *outCd,
56  int insideOut);
57  int EvaluatePosition(double x[3], double* closestPoint,
58  int& subId, double pcoords[3],
59  double& dist2, double *weights);
60  void EvaluateLocation(int& subId, double pcoords[3], double x[3],
61  double *weights);
62  virtual double *GetParametricCoords();
64 
70  int CellBoundary(int subId, double pcoords[3], vtkIdList *pts);
71 
73 
77  void Contour(double value, vtkDataArray *cellScalars,
78  vtkIncrementalPointLocator *locator, vtkCellArray *verts1,
79  vtkCellArray *lines, vtkCellArray *verts2,
80  vtkPointData *inPd, vtkPointData *outPd,
81  vtkCellData *inCd, vtkIdType cellId, vtkCellData *outCd);
83 
85  int GetParametricCenter(double pcoords[3]);
86 
88 
91  int IntersectWithLine(double p1[3], double p2[3], double tol, double& t,
92  double x[3], double pcoords[3], int& subId);
94 
97  int Triangulate(int index, vtkIdList *ptIds, vtkPoints *pts);
98 
100 
102  void Derivatives(int subId, double pcoords[3], double *values,
103  int dim, double *derivs);
105 
107  static void InterpolationFunctions(double pcoords[3], double weights[1]);
109  static void InterpolationDerivs(double pcoords[3], double derivs[3]);
111 
113  virtual void InterpolateFunctions(double pcoords[3], double weights[1])
114  {
115  vtkVertex::InterpolationFunctions(pcoords,weights);
116  }
117  virtual void InterpolateDerivs(double pcoords[3], double derivs[3])
118  {
119  vtkVertex::InterpolationDerivs(pcoords,derivs);
120  }
122 
123 protected:
124  vtkVertex();
126 
127 private:
128  vtkVertex(const vtkVertex&); // Not implemented.
129  void operator=(const vtkVertex&); // Not implemented.
130 };
131 
132 //----------------------------------------------------------------------------
133 inline int vtkVertex::GetParametricCenter(double pcoords[3])
134 {
135  pcoords[0] = pcoords[1] = pcoords[2] = 0.0;
136  return 0;
137 }
138 
139 #endif
140 
141 
int GetNumberOfFaces()
Definition: vtkVertex.h:49
vtkCell * GetFace(int)
Definition: vtkVertex.h:51
virtual void InterpolateFunctions(double pcoords[3], double weights[1])
Definition: vtkVertex.h:113
virtual void InterpolateDerivs(double pcoords[3], double derivs[3])
Definition: vtkVertex.h:117
int GetParametricCenter(double pcoords[3])
Definition: vtkVertex.h:133
a cell that represents a 3D point
Definition: vtkVertex.h:35
static void InterpolationFunctions(double pcoords[3], double weights[1])
represent and manipulate cell attribute data
Definition: vtkCellData.h:37
Abstract class in support of both point location and point insertion.
int GetNumberOfEdges()
Definition: vtkVertex.h:48
int GetCellDimension()
Definition: vtkVertex.h:47
static void InterpolationDerivs(double pcoords[3], double derivs[3])
int GetCellType()
Definition: vtkVertex.h:46
object to represent cell connectivity
Definition: vtkCellArray.h:49
vtkCell * GetEdge(int)
Definition: vtkVertex.h:50
~vtkVertex()
Definition: vtkVertex.h:125