VTK
vtkUnstructuredGridBase.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkUnstructuredGridBase.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
30 #ifndef vtkUnstructuredGridBase_h
31 #define vtkUnstructuredGridBase_h
32 
33 #include "vtkCommonDataModelModule.h" // For export macro
34 #include "vtkPointSet.h"
35 
37 {
38 public:
39  vtkAbstractTypeMacro(vtkUnstructuredGridBase,vtkPointSet)
40  void PrintSelf(ostream &os, vtkIndent indent)
41  {
42  this->Superclass::PrintSelf(os, indent);
43  }
44 
46 
49  virtual void Allocate(vtkIdType numCells=1000, int extSize=1000) = 0;
50 
52  void DeepCopy(vtkDataObject *src);
53 
55 
63  virtual vtkIdType InsertNextCell(int type, vtkIdType npts,
64  vtkIdType *ptIds) = 0;
66 
73  virtual vtkIdType InsertNextCell(int type, vtkIdList *ptIds) = 0;
74 
75  // Desciption:
76  // Insert/create a polyhedron cell. npts is the number of unique points in
77  // the cell. pts is the list of the unique cell point Ids. nfaces is the
78  // number of faces in the cell. faces is the face-stream
79  // [numFace0Pts, id1, id2, id3, numFace1Pts,id1, id2, id3, ...].
80  // All point Ids are global.
81  virtual vtkIdType InsertNextCell(int type, vtkIdType npts, vtkIdType *ptIds,
82  vtkIdType nfaces, vtkIdType *faces) = 0;
83 
89  virtual void ReplaceCell(vtkIdType cellId, int npts, vtkIdType *pts) = 0;
90 
94  virtual void GetIdsOfCellsOfType(int type, vtkIdTypeArray *array) = 0;
95 
97  virtual int IsHomogeneous() = 0;
98 
99  //BTX
101 
104  //ETX
106 
107 protected:
110 
111 private:
112  vtkUnstructuredGridBase(const vtkUnstructuredGridBase&); // Not implemented.
113  void operator=(const vtkUnstructuredGridBase&); // Not implemented.
114 };
115 
116 #endif
Store vtkAlgorithm input/output information.
static vtkPointSet * GetData(vtkInformation *info)
abstract class for specifying dataset behavior
Definition: vtkPointSet.h:44
dynamic, self-adjusting array of vtkIdType
int vtkIdType
Definition: vtkType.h:275
void PrintSelf(ostream &os, vtkIndent indent)
a simple class to control print indentation
Definition: vtkIndent.h:38
list of point or cell ids
Definition: vtkIdList.h:35
void PrintSelf(ostream &os, vtkIndent indent)
#define VTK_UNSTRUCTURED_GRID_BASE
Definition: vtkType.h:102
void DeepCopy(vtkDataObject *src)
Store zero or more vtkInformation instances.
general representation of visualization data
Definition: vtkDataObject.h:64
dataset represents arbitrary combinations of all possible cell types. May be mapped onto a non-standa...
#define VTKCOMMONDATAMODEL_EXPORT