VTK
vtkBridgeDataSet.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkBridgeDataSet.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 =========================================================================*/
25 #ifndef vtkBridgeDataSet_h
26 #define vtkBridgeDataSet_h
27 
28 #include "vtkBridgeExport.h" //for module export macro
29 #include "vtkGenericDataSet.h"
30 
31 class vtkDataSet;
32 
34 {
35 public:
36  static vtkBridgeDataSet *New();
38  void PrintSelf(ostream& os, vtkIndent indent);
39 
42  vtkDataSet *GetDataSet();
43 
46  void SetDataSet(vtkDataSet *ds);
47 
50  virtual vtkIdType GetNumberOfPoints();
51 
55  virtual vtkIdType GetNumberOfCells(int dim=-1);
56 
61  virtual int GetCellDimension();
62 
70  void GetCellTypes(vtkCellTypes *types);
71 
79 
81 
87  int exteriorOnly=0);
89 
93 
94 
97 
99 
108  int FindCell(double x[3],
109  vtkGenericCellIterator* &cell,
110  double tol2,
111  int &subId,
112  double pcoords[3]);
114 
116 
118  void FindPoint(double x[3],
121 
123  unsigned long int GetMTime();
124 
126  void ComputeBounds();
127 
128 protected:
129  // Constructor with default bounds (0,1, 0,1, 0,1).
131  virtual ~vtkBridgeDataSet();
132 
133  //BTX
134  friend class vtkBridgeCell;
135  friend class vtkBridgeCellIterator;
142  //ETX
143 
146  void ComputeNumberOfCellsAndTypes();
147 
154  vtkTimeStamp ComputeNumberOfCellsTime; // for number of cells and cell types
155 
156 private:
157  vtkBridgeDataSet(const vtkBridgeDataSet&); // Not implemented.
158  void operator=(const vtkBridgeDataSet&); // Not implemented.
159 };
160 
161 #endif
vtkCellTypes * Types
virtual vtkIdType GetNumberOfCells(int dim=-1)=0
Implementation of vtkGenericCellIterator. It is just an example that show how to implement the Generi...
Implementation of vtkGenericPointIterator.
virtual vtkIdType GetNumberOfPoints()=0
static vtkDataObject * New()
vtkIdType NumberOf0DCells
Implementation of vtkGenericAdaptorCell.
Definition: vtkBridgeCell.h:37
#define VTKTESTINGGENERICBRIDGE_EXPORT
abstract class to specify dataset behavior
Definition: vtkDataSet.h:61
virtual void FindPoint(double x[3], vtkGenericPointIterator *p)=0
record modification and/or execution time
Definition: vtkTimeStamp.h:34
virtual int FindCell(double x[3], vtkGenericCellIterator *&cell, double tol2, int &subId, double pcoords[3])=0
virtual unsigned long int GetMTime()
Iterate over one cell only of a dataset.
virtual vtkGenericCellIterator * NewBoundaryIterator(int dim=-1, int exteriorOnly=0)=0
int vtkIdType
Definition: vtkType.h:275
iterator used to traverse points
Implementation of vtkGenericDataSet.
iterator used to traverse cells
vtkIdType NumberOf3DCells
a simple class to control print indentation
Definition: vtkIndent.h:38
Implementation of vtkGenericPointIterator.
virtual vtkIdType GetEstimatedSize()=0
virtual vtkGenericPointIterator * NewPointIterator()=0
vtkTimeStamp ComputeNumberOfCellsTime
vtkIdType NumberOf1DCells
virtual void ComputeBounds()=0
Implementation of vtkGenericPointIterator.
virtual void GetCellTypes(vtkCellTypes *types)
vtkDataSet * Implementation
virtual int GetCellDimension()=0
Iterate over cells of a dataset.
defines dataset interface
Iterate over one point of a dataset.
vtkIdType NumberOf2DCells
void PrintSelf(ostream &os, vtkIndent indent)
object provides direct access to cells in vtkCellArray and type information
Definition: vtkCellTypes.h:51
virtual vtkGenericCellIterator * NewCellIterator(int dim=-1)=0