concrete dataset representing a path defined by Bezier curves.
More...
#include <vtkPath.h>
Inherits vtkPointSet.
|
virtual int | IsA (const char *type) |
|
vtkPath * | NewInstance () const |
|
void | PrintSelf (ostream &os, vtkIndent indent) |
|
int | GetDataObjectType () |
|
void | GetCellPoints (vtkIdType, vtkIdList *ptIds) |
|
void | GetPointCells (vtkIdType ptId, vtkIdList *cellIds) |
|
int | GetMaxCellSize () |
|
void | Allocate (vtkIdType size=1000, int extSize=1000) |
|
void | Reset () |
|
|
void | InsertNextPoint (float pts[3], int code) |
|
void | InsertNextPoint (double pts[3], int code) |
|
void | InsertNextPoint (double x, double y, double z, int code) |
|
|
void | SetCodes (vtkIntArray *) |
|
vtkIntArray * | GetCodes () |
|
|
vtkIdType | GetNumberOfCells () |
|
vtkCell * | GetCell (vtkIdType) |
|
void | GetCell (vtkIdType, vtkGenericCell *) |
|
int | GetCellType (vtkIdType) |
|
concrete dataset representing a path defined by Bezier curves.
vtkPath provides a container for paths composed of line segment and 2nd/3rd order Bezier curves.
- Tests:
- vtkPath (Tests)
Definition at line 34 of file vtkPath.h.
Enumeration of recognized control point types: - MOVE_TO: Point defining the origin of a new segment, not connected to the previous point. - LINE_TO: Draw a line from the previous point to the current one - CONIC_CURVE: 2nd order (conic/quadratic) point. Must appear in sets of 2, e.g. (0,0) MOVE_TO (0,1) CONIC_CURVE (1,2) CONIC_CURVE defines a quadratic Bezier curve that passes through (0,0) and (1,2) using (0,1) as a control (off) point. - CUBIC_CURVE: 3rd order (cubic) control point. Must appear in sets of 3, e.g. (0,0) MOVE_TO (0,1) CUBIC_CURVE (1,2) CUBIC_CURVE (4,0) CUBIC_CURVE defines a cubic Bezier curve that passes through (0,0) and (4,0), using (0,1) and (1,2) as control (off) points.
Enumerator |
---|
MOVE_TO |
|
LINE_TO |
|
CONIC_CURVE |
|
CUBIC_CURVE |
|
Definition at line 57 of file vtkPath.h.
static int vtkPath::IsTypeOf |
( |
const char * |
type | ) |
|
|
static |
virtual int vtkPath::IsA |
( |
const char * |
type | ) |
|
|
virtual |
static vtkPath* vtkPath::SafeDownCast |
( |
vtkObjectBase * |
o | ) |
|
|
static |
virtual vtkObjectBase* vtkPath::NewInstanceInternal |
( |
| ) |
const |
|
protectedvirtual |
vtkPath* vtkPath::NewInstance |
( |
| ) |
const |
void vtkPath::PrintSelf |
( |
ostream & |
os, |
|
|
vtkIndent |
indent |
|
) |
| |
int vtkPath::GetDataObjectType |
( |
| ) |
|
|
inline |
Return what type of dataset this is.
Definition at line 43 of file vtkPath.h.
void vtkPath::InsertNextPoint |
( |
float |
pts[3], |
|
|
int |
code |
|
) |
| |
Insert the next control point in the path.
void vtkPath::InsertNextPoint |
( |
double |
pts[3], |
|
|
int |
code |
|
) |
| |
Insert the next control point in the path.
void vtkPath::InsertNextPoint |
( |
double |
x, |
|
|
double |
y, |
|
|
double |
z, |
|
|
int |
code |
|
) |
| |
Insert the next control point in the path.
void vtkPath::SetCodes |
( |
vtkIntArray * |
| ) |
|
Set/Get the array of control point codes:
vtkIntArray* vtkPath::GetCodes |
( |
| ) |
|
Set/Get the array of control point codes:
vtkIdType vtkPath::GetNumberOfCells |
( |
| ) |
|
|
inline |
vtkPath doesn't use cells. These methods return trivial values.
Definition at line 81 of file vtkPath.h.
vtkCell* vtkPath::GetCell |
( |
vtkIdType |
| ) |
|
|
inline |
vtkPath doesn't use cells. These methods return trivial values.
Definition at line 82 of file vtkPath.h.
vtkPath doesn't use cells. These methods return trivial values.
int vtkPath::GetCellType |
( |
vtkIdType |
| ) |
|
|
inline |
vtkPath doesn't use cells. These methods return trivial values.
Definition at line 84 of file vtkPath.h.
void vtkPath::GetCellPoints |
( |
vtkIdType |
, |
|
|
vtkIdList * |
ptIds |
|
) |
| |
vtkPath doesn't use cells, this method just clears ptIds.
void vtkPath::GetPointCells |
( |
vtkIdType |
ptId, |
|
|
vtkIdList * |
cellIds |
|
) |
| |
vtkPath doesn't use cells, this method just clears cellIds.
int vtkPath::GetMaxCellSize |
( |
| ) |
|
|
inline |
Return the maximum cell size in this poly data.
Definition at line 94 of file vtkPath.h.
void vtkPath::Allocate |
( |
vtkIdType |
size = 1000 , |
|
|
int |
extSize = 1000 |
|
) |
| |
Begin inserting data all over again. Memory is not freed but otherwise objects are returned to their initial state.
static vtkPath* vtkPath::GetData |
( |
vtkInformation * |
info | ) |
|
|
static |
Retrieve an instance of this class from an information object.
static vtkPath* vtkPath::GetData |
( |
vtkInformationVector * |
v, |
|
|
int |
i = 0 |
|
) |
| |
|
static |
Retrieve an instance of this class from an information object.
The documentation for this class was generated from the following file: