45#ifndef vtkGenericDataSet_h
46#define vtkGenericDataSet_h
48#include "vtkCommonDataModelModule.h"
51VTK_ABI_NAMESPACE_BEGIN
190 virtual void GetBounds(
double bounds[6]);
object provides direct access to cells in vtkCellArray and type information
virtual vtkDataSetAttributes * GetAttributes(int type)
Returns the attributes of the data object of the specified attribute type.
represent and manipulate attribute data in a dataset
a collection of attributes
iterator used to traverse cells
helper class to perform cell tessellation
void PrintSelf(ostream &os, vtkIndent indent) override
Standard VTK type and print macros.
virtual void ComputeBounds()=0
Compute the geometry bounding box.
virtual void SetTessellator(vtkGenericCellTessellator *tessellator)
Set/Get a cell tessellator if cells must be tessellated during processing.
vtkGenericDataSet()
Constructor with uninitialized bounds (1,-1, 1,-1, 1,-1), empty attribute collection and default tess...
unsigned long GetActualMemorySize() override
Actual size of the data in kibibytes (1024 bytes); only valid after the pipeline has updated.
virtual vtkIdType GetNumberOfPoints()=0
Return the number of points composing the dataset.
vtkDataSetAttributes * GetAttributes(int type) override
Returns the attributes of the data object of the specified attribute type.
virtual double GetLength()
Return the length of the diagonal of the bounding box.
static vtkGenericDataSet * GetData(vtkInformation *info)
Retrieve an instance of this class from an information object.
virtual int GetCellDimension()=0
Return -1 if the dataset is explicitly defined by cells of varying dimensions or if there are no cell...
virtual vtkIdType GetNumberOfCells(int dim=-1)=0
Return the number of cells that explicitly define the dataset.
virtual double * GetBounds()
Return a pointer to the geometry bounding box in the form (xmin,xmax, ymin,ymax, zmin,...
virtual vtkGenericPointIterator * NewPointIterator()=0
Return an iterator to traverse the points composing the dataset; they can be points that define a cel...
virtual vtkGenericCellIterator * NewBoundaryIterator(int dim=-1, int exteriorOnly=0)=0
Return an iterator to traverse cells of dimension `dim' (or all dimensions if -1) that explicitly def...
int GetDataObjectType() VTK_FUTURE_CONST override
Return the type of data object.
virtual void GetCenter(double center[3])
Get the center of the bounding box in global coordinates.
virtual vtkIdType GetEstimatedSize()=0
Estimated size needed after tessellation (or special operation).
virtual void FindPoint(double x[3], vtkGenericPointIterator *p)=0
Locate the closest point p' to position x' (global coordinates).
vtkIdType GetNumberOfElements(int type) override
Get the number of elements for a specific attribute type (POINT, CELL, etc.).
virtual double * GetCenter()
Return the geometry bounding box in global coordinates in the form (xmin,xmax, ymin,...
virtual int FindCell(double x[3], vtkGenericCellIterator *&cell, double tol2, int &subId, double pcoords[3])=0
Locate the closest cell to position x' (global coordinates) with respect to a tolerance squared tol2'...
vtkMTimeType GetMTime() override
Datasets are composite objects and need to check each part for their modified time.
vtkGenericCellTessellator * Tessellator
vtkGenericAttributeCollection * Attributes
virtual void GetCellTypes(vtkCellTypes *types)
Get a list of types of cells in a dataset.
iterator used to traverse points
a simple class to control print indentation
record modification and/or execution time
virtual vtkGenericCellIterator * NewCellIterator()=0
Return the points of cell into `it'.
virtual double * GetBounds()
Compute the bounding box of the current cell in `bounds' in global coordinates.
vtkTypeUInt32 vtkMTimeType