VTK
vtkPath.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkPath.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 =========================================================================*/
26 #ifndef vtkPath_h
27 #define vtkPath_h
28 
29 #include "vtkCommonDataModelModule.h" // For export macro
30 #include "vtkPointSet.h"
31 
32 class vtkIntArray;
33 
35 {
36 public:
37  static vtkPath *New();
38 
40  void PrintSelf(ostream& os, vtkIndent indent);
41 
43  int GetDataObjectType() {return VTK_PATH;}
44 
46 
58  {
59  MOVE_TO = 0,
62  CUBIC_CURVE
63  };
65 
67 
68  void InsertNextPoint(float pts[3], int code);
69  void InsertNextPoint(double pts[3], int code);
70  void InsertNextPoint(double x, double y, double z, int code);
72 
74 
78 
80 
81  vtkIdType GetNumberOfCells() { return 0; }
82  vtkCell *GetCell(vtkIdType) { return NULL; }
84  int GetCellType(vtkIdType) { return 0; }
86 
89 
91  void GetPointCells(vtkIdType ptId, vtkIdList *cellIds);
92 
94  int GetMaxCellSize() { return 0; }
95 
98  void Allocate(vtkIdType size=1000, int extSize=1000);
99 
102  void Reset();
103 
105 
107  static vtkPath* GetData(vtkInformationVector* v, int i=0);
109 
110 protected:
113 
114 private:
115  vtkPath(const vtkPath&); // Not implemented.
116  void operator=(const vtkPath&); // Not implemented.
117 };
118 
119 #endif
vtkgl::z
GLdouble GLdouble z
Definition: vtkgl.h:11754
vtkPath::InsertNextPoint
void InsertNextPoint(double pts[3], int code)
vtkPath::GetCell
void GetCell(vtkIdType, vtkGenericCell *)
vtkPointSet.h
vtkIdType
int vtkIdType
Definition: vtkType.h:275
vtkCommonDataModelModule.h
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:41
vtkPath
concrete dataset representing a path defined by Bezier curves.
Definition: vtkPath.h:35
vtkPath::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
vtkTypeMacro
#define vtkTypeMacro(thisClass, superclass)
Definition: vtkSetGet.h:642
vtkPath::GetCell
vtkCell * GetCell(vtkIdType)
Definition: vtkPath.h:82
vtkgl::v
const GLdouble * v
Definition: vtkgl.h:11595
vtkgl::x
GLint GLint GLint GLint GLint x
Definition: vtkgl.h:11318
vtkPath::GetCodes
vtkIntArray * GetCodes()
vtkPath::New
static vtkPath * New()
vtkPath::ControlPointType
ControlPointType
Definition: vtkPath.h:58
vtkPath::vtkPath
vtkPath()
vtkPath::GetMaxCellSize
int GetMaxCellSize()
Definition: vtkPath.h:94
vtkPath::GetCellType
int GetCellType(vtkIdType)
Definition: vtkPath.h:84
vtkCell
abstract class to specify cell behavior
Definition: vtkCell.h:62
vtkPath::LINE_TO
@ LINE_TO
Definition: vtkPath.h:60
vtkPath::GetData
static vtkPath * GetData(vtkInformationVector *v, int i=0)
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkIntArray
dynamic, self-adjusting array of int
Definition: vtkIntArray.h:53
vtkPath::GetDataObjectType
int GetDataObjectType()
Definition: vtkPath.h:43
vtkIdList
list of point or cell ids
Definition: vtkIdList.h:36
vtkPath::GetData
static vtkPath * GetData(vtkInformation *info)
vtkPath::Allocate
void Allocate(vtkIdType size=1000, int extSize=1000)
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:86
vtkPath::GetPointCells
void GetPointCells(vtkIdType ptId, vtkIdList *cellIds)
vtkPath::InsertNextPoint
void InsertNextPoint(float pts[3], int code)
vtkX3D::info
@ info
Definition: vtkX3D.h:376
vtkPath::CONIC_CURVE
@ CONIC_CURVE
Definition: vtkPath.h:61
vtkgl::y
GLint GLint GLint GLint GLint GLint y
Definition: vtkgl.h:11318
vtkPath::Reset
void Reset()
vtkPointSet
abstract class for specifying dataset behavior
Definition: vtkPointSet.h:45
vtkPath::SetCodes
void SetCodes(vtkIntArray *)
vtkGenericCell
provides thread-safe access to cells
Definition: vtkGenericCell.h:42
vtkPath::~vtkPath
~vtkPath()
vtkPath::InsertNextPoint
void InsertNextPoint(double x, double y, double z, int code)
VTKCOMMONDATAMODEL_EXPORT
#define VTKCOMMONDATAMODEL_EXPORT
Definition: vtkCommonDataModelModule.h:15
VTK_PATH
#define VTK_PATH
Definition: vtkType.h:101
vtkPath::GetCellPoints
void GetCellPoints(vtkIdType, vtkIdList *ptIds)
vtkgl::size
GLsizeiptr size
Definition: vtkgl.h:11843
vtkPath::GetNumberOfCells
vtkIdType GetNumberOfCells()
Definition: vtkPath.h:81