139 #ifndef vtkMappedUnstructuredGrid_h 140 #define vtkMappedUnstructuredGrid_h 148 template <
class Implementation,
156 typedef Implementation ImplementationType;
201 #include "vtkMappedUnstructuredGrid.txx" 207 #define vtkMakeExportedMappedUnstructuredGrid(_className, _impl, _exportDecl) \ 208 class _exportDecl _className : \ 209 public vtkMappedUnstructuredGrid<_impl> \ 212 vtkTypeMacro(_className, \ 213 vtkMappedUnstructuredGrid<_impl>) \ 214 static _className* New(); \ 218 _impl *i = _impl::New(); \ 219 this->SetImplementation(i); \ 222 ~_className() override {} \ 224 _className(const _className&); \ 225 void operator=(const _className&); \ 228 #define vtkMakeExportedMappedUnstructuredGridWithIter(_className, _impl, _cIter, _exportDecl) \ 229 class _exportDecl _className : \ 230 public vtkMappedUnstructuredGrid<_impl, _cIter> \ 233 vtkTypeMacro(_className, \ 234 vtkMappedUnstructuredGrid<_impl, _cIter>) \ 235 static _className* New(); \ 239 _impl *i = _impl::New(); \ 240 this->SetImplementation(i); \ 243 ~_className() override {} \ 245 _className(const _className&); \ 246 void operator=(const _className&); \ 249 #else // __VTK_WRAP__ 251 #define vtkMakeExportedMappedUnstructuredGrid(_className, _impl, _exportDecl) \ 252 class _exportDecl _className : \ 253 public vtkUnstructuredGridBase \ 256 vtkTypeMacro(_className, vtkUnstructuredGridBase) \ 257 static _className* New(); \ 260 ~_className() override {} \ 262 _className(const _className&); \ 263 void operator=(const _className&); \ 266 #define vtkMakeExportedMappedUnstructuredGridWithIter(_className, _impl, _cIter, _exportDecl) \ 267 class _exportDecl _className : \ 268 public vtkUnstructuredGridBase \ 271 vtkTypeMacro(_className, vtkUnstructuredGridBase) \ 272 static _className* New(); \ 275 ~_className() override {} \ 277 _className(const _className&); \ 278 void operator=(const _className&); \ 281 #endif // __VTK_WRAP__ 283 #define vtkMakeMappedUnstructuredGrid(_className, _impl) \ 284 vtkMakeExportedMappedUnstructuredGrid(_className, _impl, ) 286 #define vtkMakeMappedUnstructuredGridWithIter(_className, _impl, _cIter, _exportDecl) \ 287 vtkMakeExportedMappedUnstructuredGridWithIter(_className, _impl, _cIter, ) 289 #endif //vtkMappedUnstructuredGrid_h CellIterator CellIteratorType
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
Default cell iterator for vtkMappedUnstructuredGrid.
vtkIdType InsertNextCell(int type, vtkIdList *ptIds) override
Insert/create cell in object by a list of point ids defining cell topology.
vtkTypeUInt32 vtkMTimeType
abstract class to specify dataset behavior
vtkTemplateTypeMacro(SelfType, vtkUnstructuredGridBase) typedef Implementation ImplementationType
vtkCell * GetCell(vtkIdType cellId) override
Get cell with cellId such that: 0 <= cellId < NumberOfCells.
void Allocate(vtkIdType numCells, int extSize=1000) override
Allocate memory for the number of cells indicated.
dynamic, self-adjusting array of vtkIdType
void SetImplementation(ImplementationType *impl)
void ReplaceCell(vtkIdType cellId, int npts, vtkIdType *pts) override
Replace the points defining cell "cellId" with a new set of points.
~vtkMappedUnstructuredGrid() override
provides thread-safe access to cells
vtkIdType GetNumberOfCells() override
Determine the number of cells composing the dataset.
vtkMTimeType GetMTime() override
Datasets are composite objects and need to check each part for MTime THIS METHOD IS THREAD SAFE...
int IsHomogeneous() override
Traverse cells and determine if cells are all of the same type.
abstract class to specify cell behavior
vtkCellIterator * NewCellIterator() override
Return an iterator that traverses the cells in this data set.
a simple class to control print indentation
ImplementationType * GetImplementation()
list of point or cell ids
void GetCellPoints(vtkIdType cellId, vtkIdList *ptIds) override
Topological inquiry to get points defining cell.
void GetIdsOfCellsOfType(int type, vtkIdTypeArray *array) override
Fill vtkIdTypeArray container with list of cell Ids.
vtkMappedUnstructuredGrid< Implementation, CellIterator > ThisType
void ShallowCopy(vtkDataObject *src) override
Shallow and Deep copy.
vtkMappedUnstructuredGrid()
vtkSmartPointer< ImplementationType > Impl
Efficient cell iterator for vtkDataSet topologies.
void CopyStructure(vtkDataSet *pd) override
Copy the geometric and topological structure of an object.
int GetCellType(vtkIdType cellId) override
Get type of cell with cellId such that: 0 <= cellId < NumberOfCells.
general representation of visualization data
int GetMaxCellSize() override
Convenience method returns largest cell size in dataset.
dataset represents arbitrary combinations of all possible cell types.
virtual vtkCell * GetCell(vtkIdType cellId)=0
Get cell with cellId such that: 0 <= cellId < NumberOfCells.
Allows datasets with arbitrary storage layouts to be used with VTK.
void GetPointCells(vtkIdType ptId, vtkIdList *cellIds) override
Topological inquiry to get cells using point.