dataset represents arbitrary combinations of all possible cell types More...

#include <vtkUnstructuredGrid.h>

Inheritance diagram for vtkUnstructuredGrid:

Collaboration diagram for vtkUnstructuredGrid:

Public Member Functions

virtual vtkTypeBool IsA (const char *type)

Return 1 if this class is the same type of (or a subclass of) the named class. More...



vtkUnstructuredGrid * NewInstance () const

void PrintSelf (ostream &os, vtkIndent indent) override

Methods invoked by print to print information about the object including superclasses. More...



int GetDataObjectType () override

Standard vtkDataSet API methods. More...



bool AllocateEstimate (vtkIdType numCells, vtkIdType maxCellSize)

Pre-allocate memory in internal data structures. More...



bool AllocateExact (vtkIdType numCells, vtkIdType connectivitySize)

Pre-allocate memory in internal data structures. More...



void Allocate (vtkIdType numCells=1000, int vtkNotUsed(extSize)=1000) override

Method allocates initial storage for the cell connectivity. More...



void Reset ()

Standard vtkDataSet methods; see vtkDataSet.h for documentation. More...



void CopyStructure (vtkDataSet *ds) override

Copy the geometric structure of an input point set object. More...



vtkIdType GetNumberOfCells () override

This method always returns 0, as there are no cells in a vtkPointSet . More...



vtkCell * GetCell (vtkIdType cellId) override

This method always return a vtkEmptyCell , as there is no cell in a vtkPointSet . More...



void GetCell (vtkIdType cellId, vtkGenericCell *cell) override

This method sets cell to be an empty cell. More...



void GetCellBounds (vtkIdType cellId, double bounds[6]) override

Get the bounds of the cell with cellId such that: 0 <= cellId < NumberOfCells. More...



void GetCellPoints (vtkIdType cellId, vtkIdList *ptIds) override

This method resets parameter idList, as there is no cell in a vtkPointSet . More...



void GetPointCells (vtkIdType ptId, vtkIdList *cellIds) override

Topological inquiry to get cells using point. More...



vtkCellIterator * NewCellIterator () override

Return an iterator that traverses the cells in this data set. More...



int GetCellType (vtkIdType cellId) override

Get the type of the cell with the given cellId. More...



void GetCellTypes (vtkCellTypes *types) override

Get a list of types of cells in a dataset. More...



void GetCellPoints (vtkIdType cellId, vtkIdType &npts, vtkIdType const *&pts)

A higher-performing variant of the virtual vtkDataSet::GetCellPoints() for unstructured grids. More...



void GetPointCells (vtkIdType ptId, vtkIdType &ncells, vtkIdType *&cells)

Special (efficient) operation to return the list of cells using the specified point ptId. More...



Get the array of all cell types in the grid. More...



void Squeeze () override

Squeeze all arrays in the grid to conserve memory. More...



void Initialize () override

Reset the grid to an empty state and free any memory. More...



int GetMaxCellSize () override

Get the size, in number of points, of the largest cell. More...



void BuildLinks ()

Build topological links from points to lists of cells that use each point. More...



Get the cell links. More...



void GetFaceStream (vtkIdType cellId, vtkIdList *ptIds)

Get the face stream of a polyhedron cell in the following format: (numCellFaces, numFace0Pts, id1, id2, id3, numFace1Pts,id1, id2, id3, ...). More...



void GetFaceStream (vtkIdType cellId, vtkIdType &nfaces, vtkIdType const *&ptIds)

Get the number of faces and the face stream of a polyhedral cell. More...



void SetCells (int type, vtkCellArray *cells)

Provide cell information to define the dataset. More...



void SetCells (int *types, vtkCellArray *cells)

void SetCells (vtkUnsignedCharArray *cellTypes, vtkCellArray *cells)

void SetCells (vtkUnsignedCharArray *cellTypes, vtkCellArray *cells, vtkIdTypeArray *faceLocations, vtkIdTypeArray *faces)

Return the unstructured grid connectivity array. More...



void GetCellNeighbors (vtkIdType cellId, vtkIdList *ptIds, vtkIdList *cellIds) override

A topological inquiry to retrieve all of the cells using list of points exclusive of the current cell specified (e.g., cellId). More...



void GetCellNeighbors (vtkIdType cellId, vtkIdType npts, const vtkIdType *ptIds, vtkIdList *cellIds)

bool IsCellBoundary (vtkIdType cellId, vtkIdType npts, const vtkIdType *ptIds)

A topological inquiry to determine whether a topological entity (e.g., point, edge, or face) defined by the point ids (ptIds of length npts) is a boundary entity of a specified cell (indicated by cellId). More...



vtkIdType InsertNextLinkedCell (int type, int npts, const vtkIdType pts[])

Use these methods only if the dataset has been specified as Editable. More...



void RemoveReferenceToCell (vtkIdType ptId, vtkIdType cellId)

void AddReferenceToCell (vtkIdType ptId, vtkIdType cellId)

void ResizeCellList (vtkIdType ptId, int size)

virtual int GetPiece ()

Set / Get the piece and the number of pieces. More...



virtual int GetNumberOfPieces ()

virtual int GetGhostLevel ()

Get the ghost level. More...



unsigned long GetActualMemorySize () override

Return the actual size of the data in kibibytes (1024 bytes). More...



void ShallowCopy (vtkDataObject *src) override

Shallow and Deep copy. More...



void DeepCopy (vtkDataObject *src) override

void GetIdsOfCellsOfType (int type, vtkIdTypeArray *array) override

Fill vtkIdTypeArray container with list of cell Ids. More...



int IsHomogeneous () override

Returns whether cells are all of the same type. More...



void RemoveGhostCells ()

This method will remove any cell that is marked as ghost (has the vtkDataSetAttributes::DUPLICATECELL or the vtkDataSetAttributes::HIDDENCELL bit set). More...



Special support for polyhedron. More...



Get pointer to faces and facelocations. More...



int InitializeFacesRepresentation (vtkIdType numPrevCells)

Special function used by vtkUnstructuredGridReader. More...



virtual vtkMTimeType GetMeshMTime ()

Return the mesh (geometry/topology) modification time. More...



Get the array of all the starting indices of cell definitions in the cell array. More...



void SetCells (vtkUnsignedCharArray *cellTypes, vtkIdTypeArray *cellLocations, vtkCellArray *cells)

Special methods specific to vtkUnstructuredGrid for defining the cells composing the dataset. More...



void SetCells (vtkUnsignedCharArray *cellTypes, vtkIdTypeArray *cellLocations, vtkCellArray *cells, vtkIdTypeArray *faceLocations, vtkIdTypeArray *faces)

virtual vtkCell * GetCell (vtkIdType cellId)=0

Get cell with cellId such that: 0 <= cellId < NumberOfCells. More...



virtual vtkCell * GetCell (int vtkNotUsed(i), int vtkNotUsed(j), int vtkNotUsed(k))

virtual void GetCell (vtkIdType cellId, vtkGenericCell *cell)=0

Get cell with cellId such that: 0 <= cellId < NumberOfCells. More...



Public Member Functions inherited from vtkUnstructuredGridBase

void PrintSelf (ostream &os, vtkIndent indent) override

Methods invoked by print to print information about the object including superclasses. More...



int GetDataObjectType () override

Return the type of data object. More...



virtual void Allocate (vtkIdType numCells=1000, int extSize=1000)=0

Allocate memory for the number of cells indicated. More...



void DeepCopy (vtkDataObject *src) override

Shallow and Deep copy. More...



vtkIdType InsertNextCell (int type, vtkIdType npts, const vtkIdType ptIds[])

Insert/create cell in object by type and list of point ids defining cell topology. More...



Insert/create cell in object by a list of point ids defining cell topology. More...



vtkIdType InsertNextCell (int type, vtkIdType npts, const vtkIdType ptIds[], vtkIdType nfaces, const vtkIdType faces[])

void ReplaceCell (vtkIdType cellId, int npts, const vtkIdType pts[])

Replace the points defining cell "cellId" with a new set of points. More...



Public Member Functions inherited from vtkPointSet

vtkPointSet * NewInstance () const

virtual void SetEditable (bool)

Specify whether this dataset is editable after creation. More...



virtual bool GetEditable ()

virtual void EditableOn ()

virtual void EditableOff ()

vtkIdType GetNumberOfPoints () override

See vtkDataSet for additional information. More...



void GetPoint (vtkIdType ptId, double x[3]) override

Copy point coordinates into user provided array x[3] for specified point id. More...



vtkIdType FindPoint (double x[3]) override

vtkIdType FindPoint (double x, double y, double z)

vtkIdType FindCell (double x[3], vtkCell *cell, vtkIdType cellId, double tol2, int &subId, double pcoords[3], double *weights) override

Locate cell based on global coordinate x and tolerance squared. More...



vtkIdType FindCell (double x[3], vtkCell *cell, vtkGenericCell *gencell, vtkIdType cellId, double tol2, int &subId, double pcoords[3], double *weights) override

This is a version of the above method that can be used with multithreaded applications. More...



double * GetPoint (vtkIdType ptId) override

See vtkDataSet for additional information. More...



void BuildPointLocator ()

Build the internal point locator . More...



void BuildLocator ()

void BuildCellLocator ()

Build the cell locator. More...



virtual void SetPointLocator (vtkAbstractPointLocator *)

Set / get an instance of vtkAbstractPointLocator which is used to support the FindPoint() and FindCell() methods. More...



virtual vtkAbstractPointLocator * GetPointLocator ()

virtual void SetCellLocator (vtkAbstractCellLocator *)

Set / get an instance of vtkAbstractCellLocator which may be used when a vtkCellLocatorStrategy is used during a FindCelloperation. More...



virtual vtkAbstractCellLocator * GetCellLocator ()

vtkMTimeType GetMTime () override

Get MTime which also considers its vtkPoints MTime. More...



void ComputeBounds () override

Compute the (X, Y, Z) bounds of the data. More...



virtual void SetPoints (vtkPoints *)

Specify point array to define point coordinates. More...



virtual vtkPoints * GetPoints ()

void Register (vtkObjectBase *o) override

Overwritten to handle the data/locator loop. More...



void UnRegister (vtkObjectBase *o) override

Decrease the reference count (release by another object). More...



Public Member Functions inherited from vtkDataSet

vtkDataSet * NewInstance () const

virtual void CopyAttributes (vtkDataSet *ds)

Copy the attributes associated with the specified dataset to this instance of vtkDataSet. More...



virtual vtkCell * GetCell (int vtkNotUsed(i), int vtkNotUsed(j), int vtkNotUsed(k))

void SetCellOrderAndRationalWeights (vtkIdType cellId, vtkGenericCell *cell)

vtkIdType FindPoint (double x, double y, double z)

Locate the closest point to the global coordinate x. More...



virtual vtkCell * FindAndGetCell (double x[3], vtkCell *cell, vtkIdType cellId, double tol2, int &subId, double pcoords[3], double *weights)

Locate the cell that contains a point and return the cell. More...



Return a pointer to this dataset's cell data. More...



Return a pointer to this dataset's point data. More...



double * GetBounds ()

Return a pointer to the geometry bounding box in the form (xmin,xmax, ymin,ymax, zmin,zmax). More...



void GetBounds (double bounds[6])

Return a pointer to the geometry bounding box in the form (xmin,xmax, ymin,ymax, zmin,zmax). More...



double * GetCenter ()

Get the center of the bounding box. More...



void GetCenter (double center[3])

Get the center of the bounding box. More...



double GetLength ()

Return the length of the diagonal of the bounding box. More...



virtual void GetScalarRange (double range[2])

Convenience method to get the range of the first component (and only the first component) of any scalars in the data set. More...



double * GetScalarRange ()

Convenience method to get the range of the first component (and only the first component) of any scalars in the data set. More...



int CheckAttributes ()

This method checks to see if the cell and point attributes match the geometry. More...



virtual void GenerateGhostArray (int zeroExt[6])

Normally called by pipeline executives or algorithms only. More...



virtual void GenerateGhostArray (int zeroExt[6], bool cellOnly)

vtkFieldData * GetAttributesAsFieldData (int type) override

Returns the attributes of the data object as a vtkFieldData. More...



vtkIdType GetNumberOfElements (int type) override

Get the number of elements for a specific attribute type (POINT, CELL, etc.). More...



bool HasAnyGhostCells ()

Returns 1 if there are any ghost cells 0 otherwise. More...



bool HasAnyGhostPoints ()

Returns 1 if there are any ghost points 0 otherwise. More...



virtual bool HasAnyBlankCells ()

Returns 1 if there are any blanking cells 0 otherwise. More...



virtual bool HasAnyBlankPoints ()

Returns 1 if there are any blanking points 0 otherwise. More...



Gets the array that defines the ghost type of each point. More...



void UpdatePointGhostArrayCache ()

Updates the pointer to the point ghost array. More...



Allocate ghost array for points. More...



Get the array that defines the ghost type of each cell. More...



void UpdateCellGhostArrayCache ()

Updates the pointer to the cell ghost array. More...



Allocate ghost array for cells. More...



Public Member Functions inherited from vtkDataObject

vtkDataObject * NewInstance () const

virtual vtkInformation * GetInformation ()

Set/Get the information object associated with this data object. More...



virtual void SetInformation (vtkInformation *)

void ReleaseData ()

Release data back to system to conserve memory resource. More...



virtual int GetDataReleased ()

Get the flag indicating the data has been released. More...



void GlobalReleaseDataFlagOn ()

void GlobalReleaseDataFlagOff ()

virtual void SetFieldData (vtkFieldData *)

Assign or retrieve a general field data to this data object. More...



virtual vtkFieldData * GetFieldData ()

Used by Threaded ports to determine if they should initiate an asynchronous update (still in development). More...



virtual void CopyInformationFromPipeline (vtkInformation *vtkNotUsed(info))

Copy from the pipeline information to the data object's own information. More...



virtual void CopyInformationToPipeline (vtkInformation *vtkNotUsed(info))

Copy information from this data object to the pipeline information. More...



void DataHasBeenGenerated ()

This method is called by the source when it executes to generate data. More...



virtual void PrepareForNewData ()

make the output data ready for new data to be inserted. More...



virtual int GetExtentType ()

The ExtentType will be left as VTK_PIECES_EXTENT for data objects such as vtkPolyData and vtkUnstructuredGrid. More...



virtual void Crop (const int *updateExtent)

This method crops the data object (if necessary) so that the extent matches the update extent. More...



virtual vtkDataSetAttributes * GetAttributes (int type)

Returns the attributes of the data object of the specified attribute type. More...



virtual vtkDataArray * GetGhostArray (int type)

Returns the ghost arrays of the data object of the specified atribute type. More...



virtual int GetAttributeTypeForArray (vtkAbstractArray *arr)

Retrieves the attribute type that an array came from. More...



Public Member Functions inherited from vtkObject

virtual void DebugOn ()

Turn debugging output on. More...



virtual void DebugOff ()

Turn debugging output off. More...



bool GetDebug ()

Get the value of the debug flag. More...



void SetDebug (bool debugFlag)

Set the value of the debug flag. More...



virtual void Modified ()

Update the modification time for this object. More...



unsigned long AddObserver (unsigned long event, vtkCommand *, float priority=0.0f)

Allow people to add/remove/invoke observers (callbacks) to any VTK object. More...



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 *)

vtkTypeBool HasObserver (unsigned long event, vtkCommand *)

vtkTypeBool HasObserver (const char *event, vtkCommand *)

void RemoveObserver (unsigned long tag)

void RemoveObservers (unsigned long event)

void RemoveObservers (const char *event)

void RemoveAllObservers ()

vtkTypeBool HasObserver (unsigned long event)

vtkTypeBool HasObserver (const char *event)

template<class U , class T >

unsigned long AddObserver (unsigned long event, U observer, void(T::*callback)(), float priority=0.0f)

Overloads to AddObserver that allow developers to add class member functions as callbacks for events. More...



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)

Allow user to set the AbortFlagOn() with the return value of the callback method. More...



int InvokeEvent (unsigned long event, void *callData)

This method invokes an event and return whether the event was aborted or not. More...



int InvokeEvent (const char *event, void *callData)

int InvokeEvent (unsigned long event)

int InvokeEvent (const char *event)

Public Member Functions inherited from vtkObjectBase

const char * GetClassName () const

Return the class name as a string. More...



virtual vtkIdType GetNumberOfGenerationsFromBase (const char *name)

Given the name of a base class of this class type, return the distance of inheritance between this class type and the named class (how many generations of inheritance are there between this class and the named class). More...



virtual void Delete ()

Delete a VTK object. More...



virtual void FastDelete ()

Delete a reference to this object. More...



void InitializeObjectBase ()

void Print (ostream &os)

Print an object to an ostream. More...



virtual void PrintHeader (ostream &os, vtkIndent indent)

virtual void PrintTrailer (ostream &os, vtkIndent indent)

int GetReferenceCount ()

Return the current reference count of this object. More...



void SetReferenceCount (int)

Sets the reference count. More...



bool GetIsInMemkind () const