47 #ifndef __vtkStructuredGrid_h
48 #define __vtkStructuredGrid_h
50 #include "vtkCommonDataModelModule.h"
51 #include "vtkPointSet.h"
60 class vtkUnsignedCharArray;
69 void PrintSelf(ostream& os, vtkIndent indent);
76 void CopyStructure(vtkDataSet *ds);
81 double *
GetPoint(vtkIdType ptId) {
return this->vtkPointSet::GetPoint(ptId);}
83 {this->vtkPointSet::GetPoint(ptId,p);}
84 vtkCell *GetCell(vtkIdType cellId);
86 void GetCellBounds(vtkIdType cellId,
double bounds[6]);
87 int GetCellType(vtkIdType cellId);
88 vtkIdType GetNumberOfCells();
89 void GetCellPoints(vtkIdType cellId, vtkIdList *ptIds);
96 void GetCellNeighbors(vtkIdType cellId, vtkIdList *ptIds,
98 virtual void GetScalarRange(
double range[2]);
104 void SetDimensions(
int i,
int j,
int k);
105 void SetDimensions(
int dim[3]);
110 virtual int *GetDimensions ();
111 virtual void GetDimensions (
int dim[3]);
115 int GetDataDimension();
121 void SetExtent(
int extent[6]);
122 void SetExtent(
int x1,
int x2,
int y1,
int y2,
int z1,
int z2);
123 vtkGetVector6Macro(Extent,
int);
131 unsigned long GetActualMemorySize();
147 void BlankPoint(vtkIdType ptId);
148 void UnBlankPoint(vtkIdType ptId);
156 void BlankCell(vtkIdType ptId);
157 void UnBlankCell(vtkIdType ptId);
161 vtkUnsignedCharArray *GetPointVisibilityArray();
166 void SetPointVisibilityArray(vtkUnsignedCharArray *pointVisibility);
169 vtkUnsignedCharArray *GetCellVisibilityArray();
174 void SetCellVisibilityArray(vtkUnsignedCharArray *pointVisibility);
178 unsigned char IsPointVisible(vtkIdType ptId);
182 unsigned char IsCellVisible(vtkIdType cellId);
186 unsigned char GetPointBlanking();
190 unsigned char GetCellBlanking();
196 void GetCellDims(
int cellDims[3] );
201 virtual void Crop(
const int* updateExtent);
217 void GetPoint(
int i,
int j,
int k,
double p[3],
bool adjustForExtent =
true);
248 void GetCellNeighbors(vtkIdType cellId, vtkIdList& ptIds, vtkIdList& cellIds)
249 {this->GetCellNeighbors(cellId, &ptIds, &cellIds);}
276 nCells *= (dims[i]-1);
a cell that represents a 3D point
vtkIdType GetNumberOfCells()
static int GetDataDimension(int dataDescription)
void GetPoint(vtkIdType ptId, double p[3])
double * GetPoint(vtkIdType ptId)
an empty cell used as a place-holder during processing
provides thread-safe access to cells
virtual int * GetDimensions()
vtkStructuredVisibilityConstraint * CellVisibility
void GetPointCells(vtkIdType ptId, vtkIdList *cellIds)
vtkStructuredVisibilityConstraint * PointVisibility
a cell that represents a linear 3D hexahedron
double * GetScalarRange()
static void GetPointCells(vtkIdType ptId, vtkIdList *cellIds, int dim[3])
topologically regular array of data
vtkIdType GetNumberOfPoints()
helper object to manage the visibility of points and cells
general representation of visualization data
vtkHexahedron * Hexahedron