|
VTK
|
concrete dataset representing a path defined by Bezier curves. More...
#include <vtkPath.h>
Public Types | |
| typedef vtkPointSet | Superclass |
| enum | ControlPointType { MOVE_TO = 0, LINE_TO, CONIC_CURVE, CUBIC_CURVE } |
Public Types inherited from vtkPointSet | |
| typedef vtkDataSet | Superclass |
Public Member Functions | |
| 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) |
Public Member Functions inherited from vtkPointSet | |
| vtkPointSet * | NewInstance () const |
| void | PrintSelf (ostream &os, vtkIndent indent) |
| void | Initialize () |
| void | CopyStructure (vtkDataSet *pd) |
| unsigned long | GetMTime () |
| void | ComputeBounds () |
| void | Squeeze () |
| unsigned long | GetActualMemorySize () |
| vtkIdType | GetNumberOfPoints () |
| double * | GetPoint (vtkIdType ptId) |
| void | GetPoint (vtkIdType ptId, double x[3]) |
| virtual vtkIdType | FindPoint (double x[3]) |
| vtkIdType | FindPoint (double x, double y, double z) |
| virtual vtkIdType | FindCell (double x[3], vtkCell *cell, vtkIdType cellId, double tol2, int &subId, double pcoords[3], double *weights) |
| virtual vtkIdType | FindCell (double x[3], vtkCell *cell, vtkGenericCell *gencell, vtkIdType cellId, double tol2, int &subId, double pcoords[3], double *weights) |
| virtual void | SetPoints (vtkPoints *) |
| virtual vtkPoints * | GetPoints () |
| void | ShallowCopy (vtkDataObject *src) |
| void | DeepCopy (vtkDataObject *src) |
| virtual void | Register (vtkObjectBase *o) |
| virtual void | UnRegister (vtkObjectBase *o) |
Static Public Member Functions | |
| static vtkPath * | New () |
| static int | IsTypeOf (const char *type) |
| static vtkPath * | SafeDownCast (vtkObjectBase *o) |
| static vtkPath * | GetData (vtkInformation *info) |
| static vtkPath * | GetData (vtkInformationVector *v, int i=0) |
Static Public Member Functions inherited from vtkPointSet | |
| static int | IsTypeOf (const char *type) |
| static vtkPointSet * | SafeDownCast (vtkObjectBase *o) |
| static vtkPointSet * | GetData (vtkInformation *info) |
| static vtkPointSet * | GetData (vtkInformationVector *v, int i=0) |
Protected Member Functions | |
| virtual vtkObjectBase * | NewInstanceInternal () const |
| vtkPath () | |
| ~vtkPath () | |
Protected Member Functions inherited from vtkPointSet | |
| vtkPointSet () | |
| ~vtkPointSet () | |
| virtual void | ReportReferences (vtkGarbageCollector *) |
Additional Inherited Members | |
Protected Attributes inherited from vtkPointSet | |
| vtkPoints * | Points |
| vtkPointLocator * | Locator |
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.
| typedef vtkPointSet vtkPath::Superclass |
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 | |
|
protected |
|
protected |
|
static |
|
static |
|
virtual |
Reimplemented from vtkPointSet.
|
static |
|
protectedvirtual |
Reimplemented from vtkPointSet.
| vtkPath* vtkPath::NewInstance | ( | ) | const |
| void vtkPath::PrintSelf | ( | ostream & | os, |
| vtkIndent | indent | ||
| ) |
|
inline |
| 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:
|
inline |
|
inline |
| void vtkPath::GetCell | ( | vtkIdType | , |
| vtkGenericCell * | |||
| ) |
vtkPath doesn't use cells. These methods return trivial values.
|
inline |
vtkPath doesn't use cells, this method just clears ptIds.
vtkPath doesn't use cells, this method just clears cellIds.
|
inline |
| void vtkPath::Allocate | ( | vtkIdType | size = 1000, |
| int | extSize = 1000 |
||
| ) |
Method allocates initial storage for points. Use this method before the method vtkPath::InsertNextPoint().
| void vtkPath::Reset | ( | ) |
Begin inserting data all over again. Memory is not freed but otherwise objects are returned to their initial state.
|
static |
Retrieve an instance of this class from an information object.
|
static |
Retrieve an instance of this class from an information object.
1.8.6