Main Page   Class Hierarchy   Alphabetical List   Compound List   Compound Members   Related Pages  

vtkUnstructuredGrid Class Reference

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

#include <vtkUnstructuredGrid.h>

Inheritance diagram for vtkUnstructuredGrid:

Inheritance graph
[legend]
Collaboration diagram for vtkUnstructuredGrid:

Collaboration graph
[legend]
List of all members.

Public Methods

virtual const char * GetClassName ()
virtual int IsA (const char *type)
void PrintSelf (ostream &os, vtkIndent indent)
int GetDataObjectType ()
void Allocate (int numCells=1000, int extSize=1000)
int InsertNextCell (int type, int npts, int *pts)
int InsertNextCell (int type, vtkIdList *ptIds)
void Reset ()
void SetCells (int *types, vtkCellArray *cells)
vtkCellArrayGetCells ()
vtkDataObjectMakeObject ()
void CopyStructure (vtkDataSet *ds)
int GetNumberOfCells ()
vtkCellGetCell (int cellId)
void GetCell (int cellId, vtkGenericCell *cell)
void GetCellBounds (int cellId, float bounds[6])
void GetCellPoints (int cellId, vtkIdList *ptIds)
void GetPointCells (int ptId, vtkIdList *cellIds)
int GetCellType (int cellId)
void Squeeze ()
void Initialize ()
int GetMaxCellSize ()
void BuildLinks ()
vtkCellLinksGetCellLinks ()
void GetCellPoints (int cellId, int &npts, int *&pts)
void ReplaceCell (int cellId, int npts, int *pts)
int InsertNextLinkedCell (int type, int npts, int *pts)
void RemoveReferenceToCell (int ptId, int cellId)
void AddReferenceToCell (int ptId, int cellId)
void ResizeCellList (int ptId, int size)
virtual void GetCellNeighbors (int cellId, vtkIdList *ptIds, vtkIdList *cellIds)
void SetUpdateExtent (int piece, int numPieces, int ghostLevel)
void SetUpdateExtent (int piece, int numPieces)
void GetUpdateExtent (int &piece, int &numPieces, int &ghostLevel)
virtual int * GetUpdateExtent ()
virtual void GetUpdateExtent (int &, int &, int &, int &, int &, int &)
virtual void GetUpdateExtent (int[6])
void SetUpdateExtent (int x1, int x2, int y1, int y2, int z1, int z2)
void SetUpdateExtent (int ext[6])
virtual int GetPiece ()
virtual int GetNumberOfPieces ()
virtual int GetGhostLevel ()
unsigned long GetActualMemorySize ()
void ShallowCopy (vtkDataObject *src)
void DeepCopy (vtkDataObject *src)
void GetCellPoints (int cellId, vtkIdList &ptIds)
void GetPointCells (int ptId, vtkIdList &cellIds)
int InsertNextCell (int type, vtkIdList &pts)

Static Public Methods

vtkUnstructuredGrid * New ()
int IsTypeOf (const char *type)
vtkUnstructuredGrid * SafeDownCast (vtkObject *o)

Protected Methods

 vtkUnstructuredGrid ()
 ~vtkUnstructuredGrid ()
 vtkUnstructuredGrid (const vtkUnstructuredGrid &)
void operator= (const vtkUnstructuredGrid &)

Protected Attributes

vtkVertexVertex
vtkPolyVertexPolyVertex
vtkLineLine
vtkPolyLinePolyLine
vtkTriangleTriangle
vtkTriangleStripTriangleStrip
vtkPixelPixel
vtkQuadQuad
vtkPolygonPolygon
vtkTetraTetra
vtkVoxelVoxel
vtkHexahedronHexahedron
vtkWedgeWedge
vtkPyramidPyramid
vtkCellTypesCells
vtkCellArrayConnectivity
vtkCellLinksLinks

Detailed Description

dataset represents arbitrary combinations of all possible cell types.

Date:
2000/12/10 20:08:20
Revision:
1.67

vtkUnstructuredGrid is a data object that is a concrete implementation of vtkDataSet. vtkUnstructuredGrid represents any combinations of any cell types. This includes 0D (e.g., points), 1D (e.g., lines, polylines), 2D (e.g., triangles, polygons), and 3D (e.g., hexahedron, tetrahedron).

Examples:
vtkUnstructuredGrid (examples)


Member Function Documentation

void vtkUnstructuredGrid::CopyStructure vtkDataSet   ds [virtual]
 

Copy the geometric structure of an input point set object.

Reimplemented from vtkPointSet.

unsigned long vtkUnstructuredGrid::GetActualMemorySize   [virtual]
 

Return the actual size of the data in kilobytes. This number is valid only after the pipeline has updated. The memory size returned is guaranteed to be greater than or equal to the memory required to represent the data (e.g., extra space in arrays, etc. are not included in the return value). THIS METHOD IS THREAD SAFE.

Reimplemented from vtkPointSet.

void vtkUnstructuredGrid::GetCell int    cellId,
vtkGenericCell   cell
[virtual]
 

Get cell with cellId such that: 0 <= cellId < NumberOfCells. This is a thread-safe alternative to the previous GetCell() method. THIS METHOD IS THREAD SAFE IF FIRST CALLED FROM A SINGLE THREAD AND THE DATASET IS NOT MODIFIED

Implements vtkDataSet.

vtkCell* vtkUnstructuredGrid::GetCell int    cellId [virtual]
 

Get cell with cellId such that: 0 <= cellId < NumberOfCells. THIS METHOD IS NOT THREAD SAFE.

Implements vtkDataSet.

void vtkUnstructuredGrid::GetCellBounds int    cellId,
float    bounds[6]
[virtual]
 

Get the bounds of the cell with cellId such that: 0 <= cellId < NumberOfCells. A subclass may be able to determine the bounds of cell without using an expensive GetCell() method. A default implementation is provided that actually uses a GetCell() call. This is to ensure the method is available to all datasets. Subclasses should override this method to provide an efficient implementation. THIS METHOD IS THREAD SAFE IF FIRST CALLED FROM A SINGLE THREAD AND THE DATASET IS NOT MODIFIED

Reimplemented from vtkDataSet.

virtual void vtkUnstructuredGrid::GetCellNeighbors int    cellId,
vtkIdList   ptIds,
vtkIdList   cellIds
[virtual]
 

Topological inquiry to get all cells using list of points exclusive of cell specified (e.g., cellId). THIS METHOD IS THREAD SAFE IF FIRST CALLED FROM A SINGLE THREAD AND THE DATASET IS NOT MODIFIED

Reimplemented from vtkDataSet.

void vtkUnstructuredGrid::GetCellPoints int    cellId,
vtkIdList   ptIds
[inline]
 

For legacy compatibility. Do not use.

Reimplemented from vtkDataSet.

void vtkUnstructuredGrid::GetCellPoints int    cellId,
vtkIdList   ptIds
[virtual]
 

Topological inquiry to get points defining cell. THIS METHOD IS THREAD SAFE IF FIRST CALLED FROM A SINGLE THREAD AND THE DATASET IS NOT MODIFIED

Implements vtkDataSet.

int vtkUnstructuredGrid::GetCellType int    cellId [virtual]
 

Get type of cell with cellId such that: 0 <= cellId < NumberOfCells. THIS METHOD IS THREAD SAFE IF FIRST CALLED FROM A SINGLE THREAD AND THE DATASET IS NOT MODIFIED

Implements vtkDataSet.

virtual const char* vtkUnstructuredGrid::GetClassName   [virtual]
 

Return the class name as a string. This method is defined in all subclasses of vtkObject with the vtkTypeMacro found in vtkSetGet.h.

Reimplemented from vtkPointSet.

int vtkUnstructuredGrid::GetDataObjectType   [inline, virtual]
 

Standard vtkDataSet API methods. See vtkDataSet for more information.

Reimplemented from vtkDataSet.

virtual int vtkUnstructuredGrid::GetGhostLevel   [virtual]
 

Set / Get the ghost level.

int vtkUnstructuredGrid::GetMaxCellSize   [virtual]
 

Convenience method returns largest cell size in dataset. This is generally used to allocate memory for supporting data structures. THIS METHOD IS THREAD SAFE

Implements vtkDataSet.

int vtkUnstructuredGrid::GetNumberOfCells   [virtual]
 

Determine the number of cells composing the dataset. THIS METHOD IS THREAD SAFE

Implements vtkDataSet.

virtual int vtkUnstructuredGrid::GetPiece   [virtual]
 

Set / Get the piece and the number of pieces. Similar to extent in 3D.

void vtkUnstructuredGrid::GetPointCells int    ptId,
vtkIdList   cellIds
[virtual]
 

Topological inquiry to get cells using point. THIS METHOD IS THREAD SAFE IF FIRST CALLED FROM A SINGLE THREAD AND THE DATASET IS NOT MODIFIED

Implements vtkDataSet.

virtual int* vtkUnstructuredGrid::GetUpdateExtent   [virtual]
 

We need this here to keep from hiding superclass method

Reimplemented from vtkDataObject.

void vtkUnstructuredGrid::Initialize   [virtual]
 

Reset to an empty state and free any memory.

Reimplemented from vtkPointSet.

virtual int vtkUnstructuredGrid::IsA const char *    type [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.

int vtkUnstructuredGrid::IsTypeOf const char *    type [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.

vtkDataObject* vtkUnstructuredGrid::MakeObject   [inline, virtual]
 

Create concrete instance of this data object.

Reimplemented from vtkDataObject.

vtkUnstructuredGrid* vtkUnstructuredGrid::New   [static]
 

Create an object with Debug turned off, modified time initialized to zero, and reference counting on.

Reimplemented from vtkDataObject.

void vtkUnstructuredGrid::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.

vtkUnstructuredGrid* vtkUnstructuredGrid::SafeDownCast vtkObject   o [static]
 

Will cast the supplied object to vtkObject* is this is a safe operation (i.e., a safe downcast); otherwise NULL is returned. This method is defined in all subclasses of vtkObject with the vtkTypeMacro found in vtkSetGet.h.

Reimplemented from vtkPointSet.

void vtkUnstructuredGrid::SetUpdateExtent int    x1,
int    x2,
int    y1,
int    y2,
int    z1,
int    z2
[inline, virtual]
 

Call superclass method to avoid hiding Since this data type does not use 3D extents, this set method is useless but necessary since vtkDataSetToDataSetFilter does not know what type of data it is working on.

Reimplemented from vtkDataObject.

void vtkUnstructuredGrid::SetUpdateExtent int    piece,
int    numPieces,
int    ghostLevel
 

For streaming. User/next filter specifies which piece the want updated. The source of this poly data has to return exactly this piece.

void vtkUnstructuredGrid::ShallowCopy vtkDataObject   src [virtual]
 

Shallow and Deep copy.

Reimplemented from vtkPointSet.

void vtkUnstructuredGrid::Squeeze   [virtual]
 

Reclaim any unused memory.

Reimplemented from vtkPointSet.


The documentation for this class was generated from the following file:
Generated on Tue Mar 19 13:34:14 2002 for VTK by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002