142 #ifndef vtkMappedUnstructuredGrid_h 143 #define vtkMappedUnstructuredGrid_h 151 template <
class Implementation,
159 typedef Implementation ImplementationType;
204 #include "vtkMappedUnstructuredGrid.txx" 210 #define vtkMakeExportedMappedUnstructuredGrid(_className, _impl, _exportDecl) \ 211 class _exportDecl _className : \ 212 public vtkMappedUnstructuredGrid<_impl> \ 215 vtkTypeMacro(_className, \ 216 vtkMappedUnstructuredGrid<_impl>) \ 217 static _className* New(); \ 221 _impl *i = _impl::New(); \ 222 this->SetImplementation(i); \ 225 ~_className() override {} \ 227 _className(const _className&); \ 228 void operator=(const _className&); \ 231 #define vtkMakeExportedMappedUnstructuredGridWithIter(_className, _impl, _cIter, _exportDecl) \ 232 class _exportDecl _className : \ 233 public vtkMappedUnstructuredGrid<_impl, _cIter> \ 236 vtkTypeMacro(_className, \ 237 vtkMappedUnstructuredGrid<_impl, _cIter>) \ 238 static _className* New(); \ 242 _impl *i = _impl::New(); \ 243 this->SetImplementation(i); \ 246 ~_className() override {} \ 248 _className(const _className&); \ 249 void operator=(const _className&); \ 252 #else // __VTK_WRAP__ 254 #define vtkMakeExportedMappedUnstructuredGrid(_className, _impl, _exportDecl) \ 255 class _exportDecl _className : \ 256 public vtkUnstructuredGridBase \ 259 vtkTypeMacro(_className, vtkUnstructuredGridBase) \ 260 static _className* New(); \ 263 ~_className() override {} \ 265 _className(const _className&); \ 266 void operator=(const _className&); \ 269 #define vtkMakeExportedMappedUnstructuredGridWithIter(_className, _impl, _cIter, _exportDecl) \ 270 class _exportDecl _className : \ 271 public vtkUnstructuredGridBase \ 274 vtkTypeMacro(_className, vtkUnstructuredGridBase) \ 275 static _className* New(); \ 278 ~_className() override {} \ 280 _className(const _className&); \ 281 void operator=(const _className&); \ 284 #endif // __VTK_WRAP__ 286 #define vtkMakeMappedUnstructuredGrid(_className, _impl) \ 287 vtkMakeExportedMappedUnstructuredGrid(_className, _impl, ) 289 #define vtkMakeMappedUnstructuredGridWithIter(_className, _impl, _cIter, _exportDecl) \ 290 vtkMakeExportedMappedUnstructuredGridWithIter(_className, _impl, _cIter, ) 292 #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.