Go to the documentation of this file.
142 #ifndef vtkMappedUnstructuredGrid_h
143 #define vtkMappedUnstructuredGrid_h
151 template <
class Implementation,
159 typedef Implementation ImplementationType;
205 #include "vtkMappedUnstructuredGrid.txx"
211 #define vtkMakeExportedMappedUnstructuredGrid(_className, _impl, _exportDecl) \
212 class _exportDecl _className : \
213 public vtkMappedUnstructuredGrid<_impl> \
216 vtkTypeMacro(_className, \
217 vtkMappedUnstructuredGrid<_impl>) \
218 static _className* New(); \
222 _impl *i = _impl::New(); \
223 this->SetImplementation(i); \
226 ~_className() override {} \
228 _className(const _className&); \
229 void operator=(const _className&); \
232 #define vtkMakeExportedMappedUnstructuredGridWithIter(_className, _impl, _cIter, _exportDecl) \
233 class _exportDecl _className : \
234 public vtkMappedUnstructuredGrid<_impl, _cIter> \
237 vtkTypeMacro(_className, \
238 vtkMappedUnstructuredGrid<_impl, _cIter>) \
239 static _className* New(); \
243 _impl *i = _impl::New(); \
244 this->SetImplementation(i); \
247 ~_className() override {} \
249 _className(const _className&); \
250 void operator=(const _className&); \
253 #else // __VTK_WRAP__
255 #define vtkMakeExportedMappedUnstructuredGrid(_className, _impl, _exportDecl) \
256 class _exportDecl _className : \
257 public vtkUnstructuredGridBase \
260 vtkTypeMacro(_className, vtkUnstructuredGridBase) \
261 static _className* New(); \
264 ~_className() override {} \
266 _className(const _className&); \
267 void operator=(const _className&); \
270 #define vtkMakeExportedMappedUnstructuredGridWithIter(_className, _impl, _cIter, _exportDecl) \
271 class _exportDecl _className : \
272 public vtkUnstructuredGridBase \
275 vtkTypeMacro(_className, vtkUnstructuredGridBase) \
276 static _className* New(); \
279 ~_className() override {} \
281 _className(const _className&); \
282 void operator=(const _className&); \
285 #endif // __VTK_WRAP__
287 #define vtkMakeMappedUnstructuredGrid(_className, _impl) \
288 vtkMakeExportedMappedUnstructuredGrid(_className, _impl, )
290 #define vtkMakeMappedUnstructuredGridWithIter(_className, _impl, _cIter, _exportDecl) \
291 vtkMakeExportedMappedUnstructuredGridWithIter(_className, _impl, _cIter, )
293 #endif //vtkMappedUnstructuredGrid_h
vtkIdType InternalInsertNextCell(int type, vtkIdType npts, const vtkIdType ptIds[]) override
vtkCellIterator * NewCellIterator() override
Return an iterator that traverses the cells in this data set.
Allows datasets with arbitrary storage layouts to be used with VTK.
void CopyStructure(vtkDataSet *pd) override
Copy the geometric and topological structure of an object.
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.
dataset represents arbitrary combinations of all possible cell types. May be mapped onto a non-standa...
CellIterator CellIteratorType
void SetImplementation(ImplementationType *impl)
vtkMappedUnstructuredGrid< Implementation, CellIterator > ThisType
void InternalReplaceCell(vtkIdType cellId, int npts, const vtkIdType pts[]) override
Default cell iterator for vtkMappedUnstructuredGrid.
int GetCellType(vtkIdType cellId) override
Get type of cell with cellId such that: 0 <= cellId < NumberOfCells.
vtkSmartPointer< ImplementationType > Impl
vtkCell * GetCell(vtkIdType cellId) override
Get cell with cellId such that: 0 <= cellId < NumberOfCells.
ImplementationType * GetImplementation()
abstract class to specify cell behavior
int GetMaxCellSize() override
Convenience method returns largest cell size in dataset.
a simple class to control print indentation
vtkMappedUnstructuredGrid()
list of point or cell ids
~vtkMappedUnstructuredGrid() override
vtkTemplateTypeMacro(SelfType, vtkUnstructuredGridBase) typedef Implementation ImplementationType
vtkIdType GetNumberOfCells() override
Determine the number of cells composing the dataset.
void GetIdsOfCellsOfType(int type, vtkIdTypeArray *array) override
Fill vtkIdTypeArray container with list of cell Ids.
void Allocate(vtkIdType numCells, int extSize=1000) override
Allocate memory for the number of cells indicated.
void ShallowCopy(vtkDataObject *src) override
Shallow and Deep copy.
abstract class to specify dataset behavior
dynamic, self-adjusting array of vtkIdType
provides thread-safe access to cells
void GetCellPoints(vtkIdType cellId, vtkIdList *ptIds) override
Topological inquiry to get points defining cell.
Efficient cell iterator for vtkDataSet topologies.
general representation of visualization data
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void GetPointCells(vtkIdType ptId, vtkIdList *cellIds) override
Topological inquiry to get cells using point.
virtual vtkCell * GetCell(vtkIdType cellId)=0
Get cell with cellId such that: 0 <= cellId < NumberOfCells.
vtkTypeUInt32 vtkMTimeType