45 #ifndef __vtkDataSet_h
46 #define __vtkDataSet_h
48 #include "vtkCommonDataModelModule.h"
68 virtual void CopyStructure(
vtkDataSet *ds) = 0;
76 virtual vtkIdType GetNumberOfPoints() = 0;
84 virtual double *GetPoint(
vtkIdType ptId) = 0;
89 virtual void GetPoint(
vtkIdType id,
double x[3]);
99 virtual void GetCell(
vtkIdType cellId, vtkGenericCell *cell) = 0;
109 virtual void GetCellBounds(
vtkIdType cellId,
double bounds[6]);
114 virtual int GetCellType(
vtkIdType cellId) = 0;
152 xyz[0] = x; xyz[1] = y; xyz[2] = z;
153 return this->FindPoint (xyz);
155 virtual vtkIdType FindPoint(
double x[3]) = 0;
168 double tol2,
int& subId,
double pcoords[3],
169 double *weights) = 0;
179 vtkGenericCell *gencell,
vtkIdType cellId,
180 double tol2,
int& subId,
double pcoords[3],
181 double *weights) = 0;
192 double tol2,
int& subId,
double pcoords[3],
210 virtual void Squeeze();
214 virtual void ComputeBounds();
223 void GetBounds(
double bounds[6]);
230 void GetCenter(
double center[3]);
248 virtual void GetScalarRange(
double range[2]);
257 double *GetScalarRange();
262 virtual int GetMaxCellSize() = 0;
298 int CheckAttributes();
303 virtual void GenerateGhostLevelArray(
int update_piece,
304 int update_num_pieces,
305 int update_ghost_level,
335 virtual void ComputeScalarRange();
344 double ScalarRange[2];
352 friend class vtkImageAlgorithmToDataSetFriendship;
362 x[0] = pt[0]; x[1] = pt[1]; x[2] = pt[2];
static vtkDataObject * GetData(vtkInformation *info)
virtual vtkFieldData * GetAttributesAsFieldData(int type)
abstract class to specify dataset behavior
record modification and/or execution time
represent and manipulate cell attribute data
unsigned long int GetMTime()
Generates a structured extent from unstructured.
vtkCellData * GetCellData()
virtual void Initialize()
vtkTimeStamp ScalarRangeComputeTime
vtkPointData * GetPointData()
abstract class to specify cell behavior
a simple class to control print indentation
list of point or cell ids
void PrintSelf(ostream &os, vtkIndent indent)
virtual unsigned long GetActualMemorySize()
virtual vtkIdType GetNumberOfElements(int type)
virtual double * GetPoint(vtkIdType ptId)=0
general representation of visualization data
vtkIdType FindPoint(double x, double y, double z)
object provides direct access to cells in vtkCellArray and type information
virtual void DeepCopy(vtkDataObject *src)
virtual void ShallowCopy(vtkDataObject *src)
represent and manipulate fields of data