VTK
|
concrete dataset representing a path defined by Bezier curves. More...
#include <vtkPath.h>
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 |
Reimplemented from vtkPointSet.
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.
vtkPath::vtkPath | ( | ) | [protected] |
vtkPath::~vtkPath | ( | ) | [protected] |
static vtkPath* vtkPath::New | ( | ) | [static] |
Create an object with Debug turned off, modified time initialized to zero, and reference counting on.
Reimplemented from vtkDataObject.
static int vtkPath::IsTypeOf | ( | const char * | name | ) | [static] |
Return 1 if this class type is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h.
Reimplemented from vtkPointSet.
virtual int vtkPath::IsA | ( | const char * | name | ) | [virtual] |
Return 1 if this class is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h.
Reimplemented from vtkPointSet.
static vtkPath* vtkPath::SafeDownCast | ( | vtkObjectBase * | o | ) | [static] |
Reimplemented from vtkPointSet.
virtual vtkObjectBase* vtkPath::NewInstanceInternal | ( | ) | const [protected, virtual] |
Reimplemented from vtkPointSet.
vtkPath* vtkPath::NewInstance | ( | ) | const |
Reimplemented from vtkPointSet.
void vtkPath::PrintSelf | ( | ostream & | os, |
vtkIndent | indent | ||
) | [virtual] |
Methods invoked by print to print information about the object including superclasses. Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes.
Reimplemented from vtkPointSet.
int vtkPath::GetDataObjectType | ( | ) | [inline, virtual] |
Return what type of dataset this is.
Reimplemented from vtkDataSet.
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:
Set/Get the array of control point codes:
vtkIdType vtkPath::GetNumberOfCells | ( | ) | [inline, virtual] |
vtkPath doesn't use cells. These methods return trivial values.
Implements vtkDataSet.
vtkCell* vtkPath::GetCell | ( | vtkIdType | ) | [inline, virtual] |
vtkPath doesn't use cells. These methods return trivial values.
Implements vtkDataSet.
void vtkPath::GetCell | ( | vtkIdType | , |
vtkGenericCell * | |||
) | [virtual] |
vtkPath doesn't use cells. These methods return trivial values.
Implements vtkDataSet.
int vtkPath::GetCellType | ( | vtkIdType | ) | [inline, virtual] |
vtkPath doesn't use cells. These methods return trivial values.
Implements vtkDataSet.
void vtkPath::GetCellPoints | ( | vtkIdType | , |
vtkIdList * | ptIds | ||
) | [virtual] |
vtkPath doesn't use cells, this method just clears ptIds.
Implements vtkDataSet.
void vtkPath::GetPointCells | ( | vtkIdType | ptId, |
vtkIdList * | cellIds | ||
) | [virtual] |
vtkPath doesn't use cells, this method just clears cellIds.
Implements vtkDataSet.
int vtkPath::GetMaxCellSize | ( | ) | [inline, virtual] |
Return the maximum cell size in this poly data.
Implements vtkDataSet.
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 vtkPath* vtkPath::GetData | ( | vtkInformation * | info | ) | [static] |
Retrieve an instance of this class from an information object.
Reimplemented from vtkPointSet.
static vtkPath* vtkPath::GetData | ( | vtkInformationVector * | v, |
int | i = 0 |
||
) | [static] |
Retrieve an instance of this class from an information object.
Reimplemented from vtkPointSet.