vtkDataSet is an abstract class that specifies an interface for dataset objects. vtkDataSet also provides methods to provide information about the data, such as center, bounding box, and representative length.
In vtk a dataset consists of a structure (geometry and topology) and attribute data. The structure is defined implicitly or explicitly as a collection of cells. The geometry of the structure is contained in point coordinates plus the cell interpolation functions. The topology of the dataset structure is defined by cell types and how the cells share their defining points.
Attribute data in vtk is either point data (data at points) or cell data (data at cells). Typically filters operate on point data, but some may operate on cell data, both cell and point data, either one, or none.
Methods
extend
Method used to decorate a given object (publicAPI+model) with vtkDataSet characteristics.
Argument
Type
Required
Description
publicAPI
Yes
object on which methods will be bounds (public)
model
Yes
object on which data structure will be bounds (protected)
initialValues
IDataSetInitialValues
No
(default: {})
getCellData
Get dataset’s cell data
getFieldData
Get dataset’s field data
getPointData
Get dataset’s point data.
newInstance
Method used to create a new instance of vtkDataSet.
// Specify how data arrays can be used by data objects exportconstFieldDataTypes = { UNIFORM: 0, // data that does not vary over points/cells/etc. DATA_OBJECT_FIELD: 0, // to match VTK
COORDINATE: 1, // data that specifies the location of each point POINT_DATA: 1, // to match VTK
POINT: 2, // data defined at each point, but that does not specify the point location POINT_FIELD_DATA: 2, // to match VTK
CELL: 3, // data defined at each cell, but that does not specify the cell CELL_FIELD_DATA: 3, // to match VTK
VERTEX: 4, // data defined at each graph vertex, but that does not specify the graph vertex VERTEX_FIELD_DATA: 4, // to match VTK
EDGE: 5, // data defined at each graph edge, but that does not specify the graph edge EDGE_FIELD_DATA: 5, // to match VTK
ROW: 6, // data specifying a table row ROW_DATA: 6, // to match VTK };
export interface vtkDataSet extends vtkObject { /** * Get dataset's cell data */ getCellData(): vtkDataSetAttributes;
/** * Get dataset's field data */ getFieldData(): vtkDataSetAttributes;
/** * Get dataset's point data. */ getPointData(): vtkDataSetAttributes;
/** * Set dataset's cell data * @param {vtkDataSetAttributes} cellData */ setCellData(cellData: vtkDataSetAttributes): boolean;
/** * Set dataset's field data * @param {vtkDataSetAttributes} fieldData */ setFieldData(fieldData: vtkDataSetAttributes): boolean;
/** * Set dataset's point data. * @param {vtkDataSetAttributes} pointData */ setPointData(pointData: vtkDataSetAttributes): boolean; }
/** * Method used to decorate a given object (publicAPI+model) with vtkDataSet characteristics. * * @param publicAPI object on which methods will be bounds (public) * @param model object on which data structure will be bounds (protected) * @param {IDataSetInitialValues} [initialValues] (default: {}) */ exportfunctionextend( publicAPI: object, model: object, initialValues?: IDataSetInitialValues ): void;
/** * Method used to create a new instance of vtkDataSet. * @param {IDataSetInitialValues} [initialValues] for pre-setting some of its content */ exportfunctionnewInstance(initialValues?: IDataSetInitialValues): vtkDataSet;
/** * vtkDataSet is an abstract class that specifies an interface for dataset * objects. vtkDataSet also provides methods to provide information about * the data, such as center, bounding box, and representative length. * * In vtk a dataset consists of a structure (geometry and topology) and * attribute data. The structure is defined implicitly or explicitly as * a collection of cells. The geometry of the structure is contained in * point coordinates plus the cell interpolation functions. The topology * of the dataset structure is defined by cell types and how the cells * share their defining points. * * Attribute data in vtk is either point data (data at points) or cell data * (data at cells). Typically filters operate on point data, but some may * operate on cell data, both cell and point data, either one, or none. */ export declare constvtkDataSet: { newInstance: typeof newInstance; extend: typeof extend; FieldAssociation: typeofFieldAssociations; FieldDataTypes: typeofFieldDataTypes; }; exportdefault vtkDataSet;