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:
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 
53 
55 
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
vtkUnstructuredGridBase::GetData
static vtkUnstructuredGridBase * GetData(vtkInformation *info)
vtkUnstructuredGridBase::InsertNextCell
virtual vtkIdType InsertNextCell(int type, vtkIdType npts, vtkIdType *ptIds)=0
vtkUnstructuredGridBase::InsertNextCell
virtual vtkIdType InsertNextCell(int type, vtkIdType npts, vtkIdType *ptIds, vtkIdType nfaces, vtkIdType *faces)=0
vtkUnstructuredGridBase::GetData
static vtkUnstructuredGridBase * GetData(vtkInformationVector *v, int i=0)
vtkPointSet.h
vtkIdType
int vtkIdType
Definition: vtkType.h:275
vtkCommonDataModelModule.h
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:41
vtkUnstructuredGridBase
dataset represents arbitrary combinations of all possible cell types. May be mapped onto a non-standa...
Definition: vtkUnstructuredGridBase.h:37
vtkgl::v
const GLdouble * v
Definition: vtkgl.h:11595
vtkDataSet::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
vtkUnstructuredGridBase::DeepCopy
void DeepCopy(vtkDataObject *src)
vtkUnstructuredGridBase::GetIdsOfCellsOfType
virtual void GetIdsOfCellsOfType(int type, vtkIdTypeArray *array)=0
vtkUnstructuredGridBase::ReplaceCell
virtual void ReplaceCell(vtkIdType cellId, int npts, vtkIdType *pts)=0
vtkUnstructuredGridBase::vtkUnstructuredGridBase
vtkUnstructuredGridBase()
vtkUnstructuredGridBase::vtkAbstractTypeMacro
vtkAbstractTypeMacro(vtkUnstructuredGridBase, vtkPointSet) void PrintSelf(ostream &os
vtkgl::src
GLenum src
Definition: vtkgl.h:12525
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkIdList
list of point or cell ids
Definition: vtkIdList.h:36
vtkUnstructuredGridBase::~vtkUnstructuredGridBase
~vtkUnstructuredGridBase()
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:86
vtkX3D::info
@ info
Definition: vtkX3D.h:376
vtkUnstructuredGridBase::GetDataObjectType
int GetDataObjectType()
Definition: vtkUnstructuredGridBase.h:45
vtkIdTypeArray
dynamic, self-adjusting array of vtkIdType
Definition: vtkIdTypeArray.h:49
vtkPointSet
abstract class for specifying dataset behavior
Definition: vtkPointSet.h:45
VTK_UNSTRUCTURED_GRID_BASE
#define VTK_UNSTRUCTURED_GRID_BASE
Definition: vtkType.h:102
vtkUnstructuredGridBase::InsertNextCell
virtual vtkIdType InsertNextCell(int type, vtkIdList *ptIds)=0
VTKCOMMONDATAMODEL_EXPORT
#define VTKCOMMONDATAMODEL_EXPORT
Definition: vtkCommonDataModelModule.h:15
vtkgl::void
typedef void(APIENTRYP PFNGLBLENDCOLORPROC)(GLclampf red
vtkDataObject
general representation of visualization data
Definition: vtkDataObject.h:65
vtkUnstructuredGridBase::Allocate
virtual void Allocate(vtkIdType numCells=1000, int extSize=1000)=0
vtkgl::type
GLuint GLuint GLsizei GLenum type
Definition: vtkgl.h:11315
vtkUnstructuredGridBase::IsHomogeneous
virtual int IsHomogeneous()=0