VTK
vtkPolyLine.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkPolyLine.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 vtkPolyLine_h
29 #define vtkPolyLine_h
30 
31 #include "vtkCommonDataModelModule.h" // For export macro
32 #include "vtkCell.h"
33 
34 class vtkPoints;
35 class vtkCellArray;
36 class vtkLine;
37 class vtkDataArray;
39 class vtkCellData;
40 
42 {
43 public:
44  static vtkPolyLine *New();
46  void PrintSelf(ostream& os, vtkIndent indent);
47 
49 
56  double* firstNormal);
58 
60 
61  int GetCellType() {return VTK_POLY_LINE;};
62  int GetCellDimension() {return 1;};
63  int GetNumberOfEdges() {return 0;};
64  int GetNumberOfFaces() {return 0;};
65  vtkCell *GetEdge(int vtkNotUsed(edgeId)) {return 0;};
66  vtkCell *GetFace(int vtkNotUsed(faceId)) {return 0;};
67  int CellBoundary(int subId, double pcoords[3], vtkIdList *pts);
68  void Contour(double value, vtkDataArray *cellScalars,
70  vtkCellArray *lines, vtkCellArray *polys,
71  vtkPointData *inPd, vtkPointData *outPd,
72  vtkCellData *inCd, vtkIdType cellId, vtkCellData *outCd);
73  void Clip(double value, vtkDataArray *cellScalars,
75  vtkPointData *inPd, vtkPointData *outPd,
76  vtkCellData *inCd, vtkIdType cellId, vtkCellData *outCd,
77  int insideOut);
78  int EvaluatePosition(double x[3], double* closestPoint,
79  int& subId, double pcoords[3],
80  double& dist2, double *weights);
81  void EvaluateLocation(int& subId, double pcoords[3], double x[3],
82  double *weights);
83  int IntersectWithLine(double p1[3], double p2[3], double tol, double& t,
84  double x[3], double pcoords[3], int& subId);
85  int Triangulate(int index, vtkIdList *ptIds, vtkPoints *pts);
86  void Derivatives(int subId, double pcoords[3], double *values,
87  int dim, double *derivs);
88  int IsPrimaryCell() {return 0;}
90 
92  int GetParametricCenter(double pcoords[3]);
93 
94 protected:
97 
99 
100 private:
101  vtkPolyLine(const vtkPolyLine&); // Not implemented.
102  void operator=(const vtkPolyLine&); // Not implemented.
103 };
104 
105 #endif
106 
107 
vtkPoints
represent and manipulate 3D points
Definition: vtkPoints.h:39
vtkgl::weights
const GLbyte * weights
Definition: vtkgl.h:12766
vtkPolyLine::GetCellType
int GetCellType()
Definition: vtkPolyLine.h:61
vtkPointData
represent and manipulate point attribute data
Definition: vtkPointData.h:37
vtkPolyLine::GetNumberOfEdges
int GetNumberOfEdges()
Definition: vtkPolyLine.h:63
vtkIdType
int vtkIdType
Definition: vtkType.h:275
vtkCommonDataModelModule.h
vtkPolyLine::GetCellDimension
int GetCellDimension()
Definition: vtkPolyLine.h:62
vtkPolyLine::Line
vtkLine * Line
Definition: vtkPolyLine.h:98
vtkPolyLine::Clip
void Clip(double value, vtkDataArray *cellScalars, vtkIncrementalPointLocator *locator, vtkCellArray *lines, vtkPointData *inPd, vtkPointData *outPd, vtkCellData *inCd, vtkIdType cellId, vtkCellData *outCd, int insideOut)
vtkTypeMacro
#define vtkTypeMacro(thisClass, superclass)
Definition: vtkSetGet.h:642
vtkPolyLine::GetEdge
vtkCell * GetEdge(int vtkNotUsed(edgeId))
Definition: vtkPolyLine.h:65
vtkPolyLine::vtkPolyLine
vtkPolyLine()
vtkgl::x
GLint GLint GLint GLint GLint x
Definition: vtkgl.h:11318
vtkDataArray
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:55
vtkPolyLine::GenerateSlidingNormals
static int GenerateSlidingNormals(vtkPoints *, vtkCellArray *, vtkDataArray *, double *firstNormal)
vtkPolyLine::IntersectWithLine
int IntersectWithLine(double p1[3], double p2[3], double tol, double &t, double x[3], double pcoords[3], int &subId)
vtkPolyLine::GenerateSlidingNormals
static int GenerateSlidingNormals(vtkPoints *, vtkCellArray *, vtkDataArray *)
vtkLine
cell represents a 1D line
Definition: vtkLine.h:35
VTK_POLY_LINE
@ VTK_POLY_LINE
Definition: vtkCellType.h:48
vtkCell.h
vtkPolyLine::~vtkPolyLine
~vtkPolyLine()
vtkNotUsed
#define vtkNotUsed(x)
Definition: vtkSetGet.h:557
vtkgl::value
GLsizei const GLfloat * value
Definition: vtkgl.h:12021
vtkPolyLine
cell represents a set of 1D lines
Definition: vtkPolyLine.h:42
vtkgl::values
GLboolean GLenum GLenum GLvoid * values
Definition: vtkgl.h:11354
vtkPolyLine::Triangulate
int Triangulate(int index, vtkIdList *ptIds, vtkPoints *pts)
vtkCell
abstract class to specify cell behavior
Definition: vtkCell.h:62
vtkCellData
represent and manipulate cell attribute data
Definition: vtkCellData.h:38
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkCellArray
object to represent cell connectivity
Definition: vtkCellArray.h:50
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
vtkPolyLine::EvaluateLocation
void EvaluateLocation(int &subId, double pcoords[3], double x[3], double *weights)
vtkPolyLine::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
vtkPolyLine::EvaluatePosition
int EvaluatePosition(double x[3], double *closestPoint, int &subId, double pcoords[3], double &dist2, double *weights)
vtkPolyLine::CellBoundary
int CellBoundary(int subId, double pcoords[3], vtkIdList *pts)
vtkPolyLine::GetFace
vtkCell * GetFace(int vtkNotUsed(faceId))
Definition: vtkPolyLine.h:66
vtkPolyLine::GetParametricCenter
int GetParametricCenter(double pcoords[3])
vtkgl::index
GLuint index
Definition: vtkgl.h:11983
vtkgl::t
GLdouble GLdouble t
Definition: vtkgl.h:11602
vtkPolyLine::GetNumberOfFaces
int GetNumberOfFaces()
Definition: vtkPolyLine.h:64
vtkPolyLine::Derivatives
void Derivatives(int subId, double pcoords[3], double *values, int dim, double *derivs)
vtkPolyLine::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)
vtkPolyLine::New
static vtkPolyLine * New()
VTKCOMMONDATAMODEL_EXPORT
#define VTKCOMMONDATAMODEL_EXPORT
Definition: vtkCommonDataModelModule.h:15
vtkPolyLine::IsPrimaryCell
int IsPrimaryCell()
Definition: vtkPolyLine.h:88