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 "vtkCommonDataModelModule.h" // For export macro
32 #include "vtkCell.h"
33 
34 class vtkVertex;
36 
38 {
39 public:
40  static vtkPolyVertex *New();
42  void PrintSelf(ostream& os, vtkIndent indent);
43 
45 
46  int GetCellType() {return VTK_POLY_VERTEX;};
47  int GetCellDimension() {return 0;};
48  int GetNumberOfEdges() {return 0;};
49  int GetNumberOfFaces() {return 0;};
50  vtkCell *GetEdge(int vtkNotUsed(edgeId)) {return 0;};
51  vtkCell *GetFace(int vtkNotUsed(faceId)) {return 0;};
52  int CellBoundary(int subId, double pcoords[3], vtkIdList *pts);
53  void Contour(double value, vtkDataArray *cellScalars,
55  vtkCellArray *lines, vtkCellArray *polys,
56  vtkPointData *inPd, vtkPointData *outPd,
57  vtkCellData *inCd, vtkIdType cellId, vtkCellData *outCd);
58  void Clip(double value, vtkDataArray *cellScalars,
60  vtkPointData *inPd, vtkPointData *outPd,
61  vtkCellData *inCd, vtkIdType cellId, vtkCellData *outCd,
62  int insideOut);
63  int EvaluatePosition(double x[3], double* closestPoint,
64  int& subId, double pcoords[3],
65  double& dist2, double *weights);
66  void EvaluateLocation(int& subId, double pcoords[3], double x[3],
67  double *weights);
68  int IntersectWithLine(double p1[3], double p2[3], double tol, double& t,
69  double x[3], double pcoords[3], int& subId);
70  int Triangulate(int index, vtkIdList *ptIds, vtkPoints *pts);
71  void Derivatives(int subId, double pcoords[3], double *values,
72  int dim, double *derivs);
73  int IsPrimaryCell() {return 0;}
75 
77  int GetParametricCenter(double pcoords[3]);
78 
79 protected:
82 
84 
85 private:
86  vtkPolyVertex(const vtkPolyVertex&); // Not implemented.
87  void operator=(const vtkPolyVertex&); // Not implemented.
88 };
89 
90 #endif
91 
92 
vtkPoints
represent and manipulate 3D points
Definition: vtkPoints.h:39
vtkPolyVertex::GetParametricCenter
int GetParametricCenter(double pcoords[3])
vtkgl::weights
const GLbyte * weights
Definition: vtkgl.h:12766
vtkPolyVertex::New
static vtkPolyVertex * New()
vtkPointData
represent and manipulate point attribute data
Definition: vtkPointData.h:37
vtkIdType
int vtkIdType
Definition: vtkType.h:275
vtkCommonDataModelModule.h
vtkPolyVertex::IntersectWithLine
int IntersectWithLine(double p1[3], double p2[3], double tol, double &t, double x[3], double pcoords[3], int &subId)
vtkPolyVertex::GetCellType
int GetCellType()
Definition: vtkPolyVertex.h:46
vtkPolyVertex::EvaluatePosition
int EvaluatePosition(double x[3], double *closestPoint, int &subId, double pcoords[3], double &dist2, double *weights)
vtkTypeMacro
#define vtkTypeMacro(thisClass, superclass)
Definition: vtkSetGet.h:642
vtkPolyVertex::GetNumberOfEdges
int GetNumberOfEdges()
Definition: vtkPolyVertex.h:48
vtkgl::x
GLint GLint GLint GLint GLint x
Definition: vtkgl.h:11318
vtkDataArray
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:55
vtkPolyVertex::EvaluateLocation
void EvaluateLocation(int &subId, double pcoords[3], double x[3], double *weights)
vtkVertex
a cell that represents a 3D point
Definition: vtkVertex.h:36
vtkPolyVertex::GetEdge
vtkCell * GetEdge(int vtkNotUsed(edgeId))
Definition: vtkPolyVertex.h:50
vtkCell.h
vtkPolyVertex::~vtkPolyVertex
~vtkPolyVertex()
vtkPolyVertex::Clip
void Clip(double value, vtkDataArray *cellScalars, vtkIncrementalPointLocator *locator, vtkCellArray *verts, vtkPointData *inPd, vtkPointData *outPd, vtkCellData *inCd, vtkIdType cellId, vtkCellData *outCd, int insideOut)
vtkPolyVertex::CellBoundary
int CellBoundary(int subId, double pcoords[3], vtkIdList *pts)
vtkNotUsed
#define vtkNotUsed(x)
Definition: vtkSetGet.h:557
vtkgl::value
GLsizei const GLfloat * value
Definition: vtkgl.h:12021
vtkgl::values
GLboolean GLenum GLenum GLvoid * values
Definition: vtkgl.h:11354
vtkCell
abstract class to specify cell behavior
Definition: vtkCell.h:62
vtkCellData
represent and manipulate cell attribute data
Definition: vtkCellData.h:38
vtkPolyVertex::GetFace
vtkCell * GetFace(int vtkNotUsed(faceId))
Definition: vtkPolyVertex.h:51
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkCellArray
object to represent cell connectivity
Definition: vtkCellArray.h:50
VTK_POLY_VERTEX
@ VTK_POLY_VERTEX
Definition: vtkCellType.h:46
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
vtkPolyVertex::Derivatives
void Derivatives(int subId, double pcoords[3], double *values, int dim, double *derivs)
vtkPolyVertex::GetNumberOfFaces
int GetNumberOfFaces()
Definition: vtkPolyVertex.h:49
vtkPolyVertex::Triangulate
int Triangulate(int index, vtkIdList *ptIds, vtkPoints *pts)
vtkgl::index
GLuint index
Definition: vtkgl.h:11983
vtkgl::t
GLdouble GLdouble t
Definition: vtkgl.h:11602
vtkPolyVertex::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
vtkPolyVertex::GetCellDimension
int GetCellDimension()
Definition: vtkPolyVertex.h:47
vtkPolyVertex::Vertex
vtkVertex * Vertex
Definition: vtkPolyVertex.h:83
vtkPolyVertex::Contour
void Contour(double value, vtkDataArray *cellScalars, vtkIncrementalPointLocator *locator, vtkCellArray *verts, vtkCellArray *lines, vtkCellArray *polys, vtkPointData *inPd, vtkPointData *outPd, vtkCellData *inCd, vtkIdType cellId, vtkCellData *outCd)
VTKCOMMONDATAMODEL_EXPORT
#define VTKCOMMONDATAMODEL_EXPORT
Definition: vtkCommonDataModelModule.h:15
vtkPolyVertex::vtkPolyVertex
vtkPolyVertex()
vtkPolyVertex::IsPrimaryCell
int IsPrimaryCell()
Definition: vtkPolyVertex.h:73
vtkPolyVertex
cell represents a set of 0D vertices
Definition: vtkPolyVertex.h:38