|
| virtual int | IsA (const char *type) |
| |
| vtkPolyData * | NewInstance () const |
| |
| void | PrintSelf (ostream &os, vtkIndent indent) |
| |
| int | GetDataObjectType () |
| |
| void | CopyStructure (vtkDataSet *ds) |
| |
| vtkIdType | GetNumberOfCells () |
| |
| vtkCell * | GetCell (vtkIdType cellId) |
| |
| void | GetCell (vtkIdType cellId, vtkGenericCell *cell) |
| |
| int | GetCellType (vtkIdType cellId) |
| |
| void | GetCellBounds (vtkIdType cellId, double bounds[6]) |
| |
| void | GetCellNeighbors (vtkIdType cellId, vtkIdList *ptIds, vtkIdList *cellIds) |
| |
| void | CopyCells (vtkPolyData *pd, vtkIdList *idList, vtkPointLocator *locator=NULL) |
| |
| void | GetCellPoints (vtkIdType cellId, vtkIdList *ptIds) |
| |
| void | GetPointCells (vtkIdType ptId, vtkIdList *cellIds) |
| |
| void | ComputeBounds () |
| |
| void | Squeeze () |
| |
| int | GetMaxCellSize () |
| |
| void | SetVerts (vtkCellArray *v) |
| |
| vtkCellArray * | GetVerts () |
| |
| void | SetLines (vtkCellArray *l) |
| |
| vtkCellArray * | GetLines () |
| |
| void | SetPolys (vtkCellArray *p) |
| |
| vtkCellArray * | GetPolys () |
| |
| void | SetStrips (vtkCellArray *s) |
| |
| vtkCellArray * | GetStrips () |
| |
| vtkIdType | GetNumberOfVerts () |
| |
| vtkIdType | GetNumberOfLines () |
| |
| vtkIdType | GetNumberOfPolys () |
| |
| vtkIdType | GetNumberOfStrips () |
| |
| void | Allocate (vtkIdType numCells=1000, int extSize=1000) |
| |
| void | Allocate (vtkPolyData *inPolyData, vtkIdType numCells=1000, int extSize=1000) |
| |
| vtkIdType | InsertNextCell (int type, int npts, vtkIdType *pts) |
| |
| vtkIdType | InsertNextCell (int type, vtkIdList *pts) |
| |
| void | Reset () |
| |
| void | BuildCells () |
| |
| void | BuildLinks (int initialSize=0) |
| |
| void | DeleteCells () |
| |
| void | DeleteLinks () |
| |
| void | GetPointCells (vtkIdType ptId, unsigned short &ncells, vtkIdType *&cells) |
| |
| void | GetCellEdgeNeighbors (vtkIdType cellId, vtkIdType p1, vtkIdType p2, vtkIdList *cellIds) |
| |
| void | GetCellPoints (vtkIdType cellId, vtkIdType &npts, vtkIdType *&pts) |
| |
| int | IsTriangle (int v1, int v2, int v3) |
| |
| int | IsEdge (vtkIdType p1, vtkIdType p2) |
| |
| int | IsPointUsedByCell (vtkIdType ptId, vtkIdType cellId) |
| |
| void | ReplaceCell (vtkIdType cellId, int npts, vtkIdType *pts) |
| |
| void | ReplaceCellPoint (vtkIdType cellId, vtkIdType oldPtId, vtkIdType newPtId) |
| |
| void | ReverseCell (vtkIdType cellId) |
| |
| void | DeletePoint (vtkIdType ptId) |
| |
| void | DeleteCell (vtkIdType cellId) |
| |
| void | RemoveDeletedCells () |
| |
| vtkIdType | InsertNextLinkedPoint (int numLinks) |
| |
| vtkIdType | InsertNextLinkedPoint (double x[3], int numLinks) |
| |
| vtkIdType | InsertNextLinkedCell (int type, int npts, vtkIdType *pts) |
| |
| void | ReplaceLinkedCell (vtkIdType cellId, int npts, vtkIdType *pts) |
| |
| void | RemoveCellReference (vtkIdType cellId) |
| |
| void | AddCellReference (vtkIdType cellId) |
| |
| void | RemoveReferenceToCell (vtkIdType ptId, vtkIdType cellId) |
| |
| void | AddReferenceToCell (vtkIdType ptId, vtkIdType cellId) |
| |
| void | ResizeCellList (vtkIdType ptId, int size) |
| |
| virtual void | Initialize () |
| |
| virtual int | GetPiece () |
| |
| virtual int | GetNumberOfPieces () |
| |
| virtual int | GetGhostLevel () |
| |
| unsigned long | GetActualMemorySize () |
| |
| void | ShallowCopy (vtkDataObject *src) |
| |
| void | DeepCopy (vtkDataObject *src) |
| |
| void | RemoveGhostCells () |
| |
| int | GetScalarFieldCriticalIndex (vtkIdType pointId, vtkDataArray *scalarField) |
| |
| int | GetScalarFieldCriticalIndex (vtkIdType pointId, int fieldId) |
| |
| int | GetScalarFieldCriticalIndex (vtkIdType pointId, const char *fieldName) |
| |
| vtkPointSet * | NewInstance () const |
| |
| 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) |
| |
| vtkCellIterator * | NewCellIterator () |
| |
| unsigned long | GetMTime () |
| |
| virtual void | SetPoints (vtkPoints *) |
| |
| virtual vtkPoints * | GetPoints () |
| |
| virtual void | Register (vtkObjectBase *o) |
| |
| virtual void | UnRegister (vtkObjectBase *o) |
| |
| vtkDataSet * | NewInstance () const |
| |
| virtual void | CopyAttributes (vtkDataSet *ds) |
| |
| virtual void | GetCellTypes (vtkCellTypes *types) |
| |
| vtkIdType | FindPoint (double x, double y, double z) |
| |
| virtual vtkCell * | FindAndGetCell (double x[3], vtkCell *cell, vtkIdType cellId, double tol2, int &subId, double pcoords[3], double *weights) |
| |
| vtkCellData * | GetCellData () |
| |
| vtkPointData * | GetPointData () |
| |
| double * | GetBounds () |
| |
| void | GetBounds (double bounds[6]) |
| |
| double * | GetCenter () |
| |
| void | GetCenter (double center[3]) |
| |
| double | GetLength () |
| |
| virtual void | GetScalarRange (double range[2]) |
| |
| double * | GetScalarRange () |
| |
| int | CheckAttributes () |
| |
| virtual void | GenerateGhostArray (int zeroExt[6]) |
| |
| virtual void | GenerateGhostArray (int zeroExt[6], bool cellOnly) |
| |
| virtual vtkFieldData * | GetAttributesAsFieldData (int type) |
| |
| virtual vtkIdType | GetNumberOfElements (int type) |
| |
| bool | HasAnyGhostCells () |
| |
| bool | HasAnyGhostPoints () |
| |
| virtual bool | HasAnyBlankCells () |
| |
| virtual bool | HasAnyBlankPoints () |
| |
| vtkUnsignedCharArray * | GetPointGhostArray () |
| |
| void | UpdatePointGhostArrayCache () |
| |
| vtkUnsignedCharArray * | AllocatePointGhostArray () |
| |
| vtkUnsignedCharArray * | GetCellGhostArray () |
| |
| void | UpdateCellGhostArrayCache () |
| |
| vtkUnsignedCharArray * | AllocateCellGhostArray () |
| |
| vtkDataObject * | NewInstance () const |
| |
| virtual vtkInformation * | GetInformation () |
| |
| virtual void | SetInformation (vtkInformation *) |
| |
| void | ReleaseData () |
| |
| virtual int | GetDataReleased () |
| |
| void | GlobalReleaseDataFlagOn () |
| |
| void | GlobalReleaseDataFlagOff () |
| |
| virtual void | SetFieldData (vtkFieldData *) |
| |
| virtual vtkFieldData * | GetFieldData () |
| |
| unsigned long | GetUpdateTime () |
| |
| virtual void | CopyInformationFromPipeline (vtkInformation *vtkNotUsed(info)) |
| |
| virtual void | CopyInformationToPipeline (vtkInformation *vtkNotUsed(info)) |
| |
| void | DataHasBeenGenerated () |
| |
| virtual void | PrepareForNewData () |
| |
| virtual int | GetExtentType () |
| |
| virtual void | Crop (const int *updateExtent) |
| |
| virtual vtkDataSetAttributes * | GetAttributes (int type) |
| |
| virtual int | GetAttributeTypeForArray (vtkAbstractArray *arr) |
| |
| vtkObject * | NewInstance () const |
| |
| virtual void | DebugOn () |
| |
| virtual void | DebugOff () |
| |
| bool | GetDebug () |
| |
| void | SetDebug (bool debugFlag) |
| |
| virtual void | Modified () |
| |
| unsigned long | AddObserver (unsigned long event, vtkCommand *, float priority=0.0f) |
| |
| unsigned long | AddObserver (const char *event, vtkCommand *, float priority=0.0f) |
| |
| vtkCommand * | GetCommand (unsigned long tag) |
| |
| void | RemoveObserver (vtkCommand *) |
| |
| void | RemoveObservers (unsigned long event, vtkCommand *) |
| |
| void | RemoveObservers (const char *event, vtkCommand *) |
| |
| int | HasObserver (unsigned long event, vtkCommand *) |
| |
| int | HasObserver (const char *event, vtkCommand *) |
| |
| void | RemoveObserver (unsigned long tag) |
| |
| void | RemoveObservers (unsigned long event) |
| |
| void | RemoveObservers (const char *event) |
| |
| void | RemoveAllObservers () |
| |
| int | HasObserver (unsigned long event) |
| |
| int | HasObserver (const char *event) |
| |
| template<class U , class T > |
| unsigned long | AddObserver (unsigned long event, U observer, void(T::*callback)(), float priority=0.0f) |
| |
| template<class U , class T > |
| unsigned long | AddObserver (unsigned long event, U observer, void(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f) |
| |
| template<class U , class T > |
| unsigned long | AddObserver (unsigned long event, U observer, bool(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f) |
| |
| int | InvokeEvent (unsigned long event, void *callData) |
| |
| int | InvokeEvent (const char *event, void *callData) |
| |
| int | InvokeEvent (unsigned long event) |
| |
| int | InvokeEvent (const char *event) |
| |
| const char * | GetClassName () const |
| |
| virtual void | Delete () |
| |
| virtual void | FastDelete () |
| |
| void | Print (ostream &os) |
| |
| virtual void | PrintHeader (ostream &os, vtkIndent indent) |
| |
| virtual void | PrintTrailer (ostream &os, vtkIndent indent) |
| |
| int | GetReferenceCount () |
| |
| void | SetReferenceCount (int) |
| |
| void | PrintRevisions (ostream &) |
| |
|
| static vtkPolyData * | New () |
| |
| static int | IsTypeOf (const char *type) |
| |
| static vtkPolyData * | SafeDownCast (vtkObjectBase *o) |
| |
| static vtkPolyData * | GetData (vtkInformation *info) |
| |
| static vtkPolyData * | GetData (vtkInformationVector *v, int i=0) |
| |
| static int | IsTypeOf (const char *type) |
| |
| static vtkPointSet * | SafeDownCast (vtkObjectBase *o) |
| |
| static vtkPointSet * | GetData (vtkInformation *info) |
| |
| static vtkPointSet * | GetData (vtkInformationVector *v, int i=0) |
| |
| static int | IsTypeOf (const char *type) |
| |
| static vtkDataSet * | SafeDownCast (vtkObjectBase *o) |
| |
| static vtkDataSet * | GetData (vtkInformation *info) |
| |
| static vtkDataSet * | GetData (vtkInformationVector *v, int i=0) |
| |
| static vtkDataObject * | New () |
| |
| static int | IsTypeOf (const char *type) |
| |
| static vtkDataObject * | SafeDownCast (vtkObjectBase *o) |
| |
| static void | SetGlobalReleaseDataFlag (int val) |
| |
| static int | GetGlobalReleaseDataFlag () |
| |
| static vtkInformation * | GetActiveFieldInformation (vtkInformation *info, int fieldAssociation, int attributeType) |
| |
| static vtkInformation * | GetNamedFieldInformation (vtkInformation *info, int fieldAssociation, const char *name) |
| |
| static void | RemoveNamedFieldInformation (vtkInformation *info, int fieldAssociation, const char *name) |
| |
| static vtkInformation * | SetActiveAttribute (vtkInformation *info, int fieldAssociation, const char *attributeName, int attributeType) |
| |
| static void | SetActiveAttributeInfo (vtkInformation *info, int fieldAssociation, int attributeType, const char *name, int arrayType, int numComponents, int numTuples) |
| |
| static void | SetPointDataActiveScalarInfo (vtkInformation *info, int arrayType, int numComponents) |
| |
| static const char * | GetAssociationTypeAsString (int associationType) |
| |
| static int | GetAssociationTypeFromString (const char *associationType) |
| |
| static vtkInformationStringKey * | DATA_TYPE_NAME () |
| |
| static vtkInformationDataObjectKey * | DATA_OBJECT () |
| |
| static vtkInformationIntegerKey * | DATA_EXTENT_TYPE () |
| |
| static vtkInformationIntegerPointerKey * | DATA_EXTENT () |
| |
| static vtkInformationIntegerVectorKey * | ALL_PIECES_EXTENT () |
| |
| static vtkInformationIntegerKey * | DATA_PIECE_NUMBER () |
| |
| static vtkInformationIntegerKey * | DATA_NUMBER_OF_PIECES () |
| |
| static vtkInformationIntegerKey * | DATA_NUMBER_OF_GHOST_LEVELS () |
| |
| static vtkInformationDoubleKey * | DATA_TIME_STEP () |
| |
| static vtkInformationInformationVectorKey * | POINT_DATA_VECTOR () |
| |
| static vtkInformationInformationVectorKey * | CELL_DATA_VECTOR () |
| |
| static vtkInformationInformationVectorKey * | VERTEX_DATA_VECTOR () |
| |
| static vtkInformationInformationVectorKey * | EDGE_DATA_VECTOR () |
| |
| static vtkInformationIntegerKey * | FIELD_ARRAY_TYPE () |
| |
| static vtkInformationIntegerKey * | FIELD_ASSOCIATION () |
| |
| static vtkInformationIntegerKey * | FIELD_ATTRIBUTE_TYPE () |
| |
| static vtkInformationIntegerKey * | FIELD_ACTIVE_ATTRIBUTE () |
| |
| static vtkInformationIntegerKey * | FIELD_NUMBER_OF_COMPONENTS () |
| |
| static vtkInformationIntegerKey * | FIELD_NUMBER_OF_TUPLES () |
| |
| static vtkInformationIntegerKey * | FIELD_OPERATION () |
| |
| static vtkInformationDoubleVectorKey * | FIELD_RANGE () |
| |
| static vtkInformationIntegerVectorKey * | PIECE_EXTENT () |
| |
| static vtkInformationStringKey * | FIELD_NAME () |
| |
| static vtkInformationDoubleVectorKey * | ORIGIN () |
| |
| static vtkInformationDoubleVectorKey * | SPACING () |
| |
| static vtkInformationDoubleVectorKey * | BOUNDING_BOX () |
| |
| static vtkInformationDataObjectKey * | SIL () |
| |
| static vtkDataObject * | GetData (vtkInformation *info) |
| |
| static vtkDataObject * | GetData (vtkInformationVector *v, int i=0) |
| |
| static int | IsTypeOf (const char *type) |
| |
| static vtkObject * | SafeDownCast (vtkObjectBase *o) |
| |
| static vtkObject * | New () |
| |
| static void | BreakOnError () |
| |
| static void | SetGlobalWarningDisplay (int val) |
| |
| static void | GlobalWarningDisplayOn () |
| |
| static void | GlobalWarningDisplayOff () |
| |
| static int | GetGlobalWarningDisplay () |
| |
| static int | IsTypeOf (const char *name) |
| |
| static vtkObjectBase * | New () |
| |
concrete dataset represents vertices, lines, polygons, and triangle strips
vtkPolyData is a data object that is a concrete implementation of vtkDataSet. vtkPolyData represents a geometric structure consisting of vertices, lines, polygons, and/or triangle strips. Point and cell attribute values (e.g., scalars, vectors, etc.) also are represented.
The actual cell types (vtkCellType.h) supported by vtkPolyData are: vtkVertex, vtkPolyVertex, vtkLine, vtkPolyLine, vtkTriangle, vtkQuad, vtkPolygon, and vtkTriangleStrip.
One important feature of vtkPolyData objects is that special traversal and data manipulation methods are available to process data. These methods are generally more efficient than vtkDataSet methods and should be used whenever possible. For example, traversing the cells in a dataset we would use GetCell(). To traverse cells with vtkPolyData we would retrieve the cell array object representing polygons (for example using GetPolys()) and then use vtkCellArray's InitTraversal() and GetNextCell() methods.
- Warning
- Because vtkPolyData is implemented with four separate instances of vtkCellArray to represent 0D vertices, 1D lines, 2D polygons, and 2D triangle strips, it is possible to create vtkPolyData instances that consist of a mixture of cell types. Because of the design of the class, there are certain limitations on how mixed cell types are inserted into the vtkPolyData, and in turn the order in which they are processed and rendered. To preserve the consistency of cell ids, and to insure that cells with cell data are rendered properly, users must insert mixed cells in the order of vertices (vtkVertex and vtkPolyVertex), lines (vtkLine and vtkPolyLine), polygons (vtkTriangle, vtkQuad, vtkPolygon), and triangle strips (vtkTriangleStrip).
-
Some filters when processing vtkPolyData with mixed cell types may process the cells in differing ways. Some will convert one type into another (e.g., vtkTriangleStrip into vtkTriangles) or expect a certain type (vtkDecimatePro expects triangles or triangle strips; vtkTubeFilter expects lines). Read the documentation for each filter carefully to understand how each part of vtkPolyData is processed.
- Examples:
- vtkPolyData (Examples)
- Tests:
- vtkPolyData (Tests)
Definition at line 83 of file vtkPolyData.h.