143 #ifndef vtkMappedUnstructuredGrid_h
144 #define vtkMappedUnstructuredGrid_h
152 template <
class Implementation,
206 #include "vtkMappedUnstructuredGrid.txx"
212 #define vtkMakeExportedMappedUnstructuredGrid(_className, _impl, _exportDecl) \
213 class _exportDecl _className : public vtkMappedUnstructuredGrid<_impl> \
216 vtkTypeMacro(_className, vtkMappedUnstructuredGrid<_impl>); \
217 static _className* New(); \
222 _impl* i = _impl::New(); \
223 this->SetImplementation(i); \
226 ~_className() override {} \
229 _className(const _className&); \
230 void operator=(const _className&); \
233 #define vtkMakeExportedMappedUnstructuredGridWithIter(_className, _impl, _cIter, _exportDecl) \
234 class _exportDecl _className : public vtkMappedUnstructuredGrid<_impl, _cIter> \
237 typedef vtkMappedUnstructuredGrid<_impl, _cIter> SelfType; \
238 vtkTypeMacro(_className, SelfType); \
239 static _className* New(); \
244 _impl* i = _impl::New(); \
245 this->SetImplementation(i); \
248 ~_className() override {} \
251 _className(const _className&); \
252 void operator=(const _className&); \
255 #else // __VTK_WRAP__
257 #define vtkMakeExportedMappedUnstructuredGrid(_className, _impl, _exportDecl) \
258 class _exportDecl _className : public vtkUnstructuredGridBase \
261 vtkTypeMacro(_className, vtkUnstructuredGridBase); \
262 static _className* New(); \
266 ~_className() override {} \
269 _className(const _className&); \
270 void operator=(const _className&); \
273 #define vtkMakeExportedMappedUnstructuredGridWithIter(_className, _impl, _cIter, _exportDecl) \
274 class _exportDecl _className : public vtkUnstructuredGridBase \
277 vtkTypeMacro(_className, vtkUnstructuredGridBase); \
278 static _className* New(); \
282 ~_className() override {} \
285 _className(const _className&); \
286 void operator=(const _className&); \
289 #endif // __VTK_WRAP__
291 #define vtkMakeMappedUnstructuredGrid(_className, _impl) \
292 vtkMakeExportedMappedUnstructuredGrid(_className, _impl, )
294 #define vtkMakeMappedUnstructuredGridWithIter(_className, _impl, _cIter) \
295 vtkMakeExportedMappedUnstructuredGridWithIter(_className, _impl, _cIter, )
297 #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.
vtkTypeUInt32 vtkMTimeType
abstract class to specify dataset behavior
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 InternalReplaceCell(vtkIdType cellId, int npts, const vtkIdType pts[]) override
Implementation ImplementationType
~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.
vtkIdType InternalInsertNextCell(int type, vtkIdType npts, const vtkIdType ptIds[]) override
vtkMappedUnstructuredGrid()
vtkTemplateTypeMacro(SelfType, vtkUnstructuredGridBase)
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.