VTK
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 
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
represent and manipulate point attribute data
Definition: vtkPointData.h:36
int GetParametricCenter(double pcoords[3])
Definition: vtkVertex.h:133
void PrintSelf(ostream &os, vtkIndent indent)
a cell that represents a 3D point
Definition: vtkVertex.h:35
virtual double * GetParametricCoords()
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.
virtual int Triangulate(int index, vtkIdList *ptIds, vtkPoints *pts)=0
virtual void EvaluateLocation(int &subId, double pcoords[3], double x[3], double *weights)=0
virtual int EvaluatePosition(double x[3], double *closestPoint, int &subId, double pcoords[3], double &dist2, double *weights)=0
int GetNumberOfEdges()
Definition: vtkVertex.h:48
int vtkIdType
Definition: vtkType.h:275
int GetCellDimension()
Definition: vtkVertex.h:47
abstract class to specify cell behavior
Definition: vtkCell.h:61
static void InterpolationDerivs(double pcoords[3], double derivs[3])
a simple class to control print indentation
Definition: vtkIndent.h:38
list of point or cell ids
Definition: vtkIdList.h:35
virtual void Derivatives(int subId, double pcoords[3], double *values, int dim, double *derivs)=0
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:54
virtual int IntersectWithLine(double p1[3], double p2[3], double tol, double &t, double x[3], double pcoords[3], int &subId)=0
int GetCellType()
Definition: vtkVertex.h:46
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
vtkCell * GetEdge(int)
Definition: vtkVertex.h:50
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
~vtkVertex()
Definition: vtkVertex.h:125
virtual int CellBoundary(int subId, double pcoords[3], vtkIdList *pts)=0
static vtkObject * New()
virtual int GetParametricCenter(double pcoords[3])
#define VTKCOMMONDATAMODEL_EXPORT
represent and manipulate 3D points
Definition: vtkPoints.h:38