30 #ifndef vtkImageData_h
31 #define vtkImageData_h
75 int& subId,
double pcoords[3],
double *weights);
78 vtkIdType cellId,
double tol2,
int& subId,
79 double pcoords[3],
double *weights);
81 double tol2,
int& subId,
double pcoords[3],
86 this->GetDimensions());}
98 virtual void SetDimensions(
int i,
int j,
int k);
103 virtual void SetDimensions(
const int dims[3]);
109 virtual int *GetDimensions();
110 virtual void GetDimensions(
int dims[3]);
119 virtual int ComputeStructuredCoordinates(
120 const double x[3],
int ijk[3],
double pcoords[3]);
123 static int ComputeStructuredCoordinates(
const double x[3],
int ijk[3],
double pcoords[3],
126 const double* origin,
127 const double* bounds);
137 virtual void GetVoxelGradient(
147 virtual void GetPointGradient(
152 virtual int GetDataDimension();
170 virtual void SetAxisUpdateExtent(
int axis,
int min,
int max,
171 const int* updateExtent,
172 int* axisUpdateExtent);
173 virtual void GetAxisUpdateExtent(
int axis,
int &min,
int &
max,
const int* updateExtent);
185 virtual void SetExtent(
int extent[6]);
186 virtual void SetExtent(
int x1,
int x2,
int y1,
int y2,
int z1,
int z2);
187 vtkGetVector6Macro(Extent,
int);
194 virtual double GetScalarTypeMin();
196 virtual double GetScalarTypeMax();
202 virtual int GetScalarSize();
213 virtual void GetIncrements(
vtkIdType inc[3]);
232 virtual void GetContinuousIncrements(
234 virtual void GetContinuousIncrements(
vtkDataArray *scalars,
240 virtual void *GetScalarPointerForExtent(
int extent[6]);
241 virtual void *GetScalarPointer(
int coordinates[3]);
242 virtual void *GetScalarPointer(
int x,
int y,
int z);
243 virtual void *GetScalarPointer();
248 virtual float GetScalarComponentAsFloat(
int x,
int y,
int z,
int component);
249 virtual void SetScalarComponentFromFloat(
250 int x,
int y,
int z,
int component,
float v);
251 virtual double GetScalarComponentAsDouble(
int x,
int y,
int z,
int component);
252 virtual void SetScalarComponentFromDouble(
253 int x,
int y,
int z,
int component,
double v);
259 virtual void AllocateScalars(
int dataType,
int numComponents);
274 int y0,
int y1,
int z0,
int z1)
275 {
int e[6]; e[0]=x0; e[1]=x1; e[2]=y0; e[3]=y1; e[4]=z0; e[5]=z1;
276 this->CopyAndCastFrom(inData, e);}
282 virtual void Crop(
const int* updateExtent);
294 vtkSetVector3Macro(Spacing,
double);
295 vtkGetVector3Macro(Spacing,
double);
305 vtkSetVector3Macro(Origin,
double);
306 vtkGetVector3Macro(Origin,
double);
314 {
return vtkImageScalarTypeNameMacro ( this->GetScalarType() ); };
319 static void SetNumberOfScalarComponents(
int n,
vtkInformation* meta_data);
320 static int GetNumberOfScalarComponents(
vtkInformation* meta_data);
321 static bool HasNumberOfScalarComponents(
vtkInformation* meta_data);
322 int GetNumberOfScalarComponents();
355 void *GetArrayPointer(
vtkDataArray* array,
int coordinates[3]);
366 void ComputeInternalExtent(
int *intExt,
int *tgtExt,
int *bnds);
395 void ComputeIncrements();
398 void ComputeIncrements(
int numberOfComponents);
402 void ComputeIncrements(
vtkIdType inc[3]);
405 void ComputeIncrements(
int numberOfComponents,
vtkIdType inc[3]);
411 void SetDataDescription(
int desc);
468 dims[0] = extent[1] - extent[0] + 1;
469 dims[1] = extent[3] - extent[2] + 1;
470 dims[2] = extent[5] - extent[4] + 1;
472 return dims[0]*dims[1]*dims[2];
virtual int GetExtentType()
virtual int GetMaxCellSize()
virtual vtkCell * FindAndGetCell(double x[3], vtkCell *cell, vtkIdType cellId, double tol2, int &subId, double pcoords[3], double *weights)
virtual vtkIdType GetNumberOfCells()=0
unsigned long GetActualMemorySize()
static vtkDataObject * New()
virtual vtkIdType FindCell(double x[3], vtkCell *cell, vtkIdType cellId, double tol2, int &subId, double pcoords[3], double *weights)=0
virtual void GetPointCells(vtkIdType ptId, vtkIdList *cellIds)
virtual vtkIdType GetNumberOfPoints()=0
abstract class to specify dataset behavior
a cell that represents a 3D point
record modification and/or execution time
static int GetDataDimension(int dataDescription)
a cell that represents an orthogonal quadrilateral
virtual void ComputeBounds()
virtual void PrepareForNewData()
virtual vtkIdType FindPoint(double x, double y, double z)
virtual vtkIdType ComputeCellId(int ijk[3])
static vtkDataSet * GetData(vtkInformation *info)
provides thread-safe access to cells
virtual vtkIdType ComputePointId(int ijk[3])
virtual void Crop(const int *updateExtent)
cell represents a 1D line
abstract class to specify cell behavior
void PrintSelf(ostream &os, vtkIndent indent)
virtual int GetDataObjectType()
virtual void CopyAndCastFrom(vtkImageData *inData, int x0, int x1, int y0, int y1, int z0, int z1)
a cell that represents a 3D orthogonal parallelepiped
a simple class to control print indentation
static vtkIdType ComputeCellIdForExtent(int extent[6], int ijk[3], int dataDescription=VTK_EMPTY)
static void GetCellPoints(vtkIdType cellId, vtkIdList *ptIds, int dataDescription, int dim[3])
topologically and geometrically regular array of data
list of point or cell ids
abstract superclass for arrays of numeric data
virtual double * GetPoint(vtkIdType ptId)
virtual void CopyInformationFromPipeline(vtkInformation *vtkNotUsed(info))
virtual void GetCellPoints(vtkIdType cellId, vtkIdList *ptIds)
void DeepCopy(vtkDataObject *src)
static void GetPointCells(vtkIdType ptId, vtkIdList *cellIds, int dim[3])
static vtkIdType ComputePointIdForExtent(int extent[6], int ijk[3], int dataDescription=VTK_EMPTY)
const char * GetScalarTypeAsString()
virtual void CopyStructure(vtkDataSet *ds)=0
virtual double * GetPoint(vtkIdType ptId)=0
general representation of visualization data
virtual void CopyInformationToPipeline(vtkInformation *vtkNotUsed(info))
vtkIdType FindPoint(double x, double y, double z)
virtual vtkIdType GetNumberOfPoints()
#define VTKCOMMONDATAMODEL_EXPORT
virtual vtkCell * GetCell(vtkIdType cellId)=0
virtual void GetCellBounds(vtkIdType cellId, double bounds[6])
virtual int GetDataDimension()
virtual int GetCellType(vtkIdType cellId)=0
void ShallowCopy(vtkDataObject *src)
vtkTimeStamp ExtentComputeTime