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