30 #ifndef __vtkImageData_h
31 #define __vtkImageData_h
74 int& subId,
double pcoords[3],
double *weights);
77 vtkIdType cellId,
double tol2,
int& subId,
78 double pcoords[3],
double *weights);
80 double tol2,
int& subId,
double pcoords[3],
85 this->GetDimensions());}
97 virtual void SetDimensions(
int i,
int j,
int k);
102 virtual void SetDimensions(
const int dims[3]);
108 virtual int *GetDimensions();
109 virtual void GetDimensions(
int dims[3]);
118 virtual int ComputeStructuredCoordinates(
119 double x[3],
int ijk[3],
double pcoords[3]);
131 virtual void GetVoxelGradient(
141 virtual void GetPointGradient(
146 virtual int GetDataDimension();
164 virtual void SetAxisUpdateExtent(
int axis,
int min,
int max);
165 virtual void GetAxisUpdateExtent(
int axis,
int &min,
int &
max);
182 virtual void SetExtent(
int extent[6]);
183 virtual void SetExtent(
int x1,
int x2,
int y1,
int y2,
int z1,
int z2);
184 vtkGetVector6Macro(Extent,
int);
196 virtual double GetScalarTypeMin();
197 virtual double GetScalarTypeMax();
201 virtual int GetScalarSize();
211 virtual void GetIncrements(
vtkIdType inc[3]);
230 virtual void GetContinuousIncrements(
232 virtual void GetContinuousIncrements(
vtkDataArray *scalars,
238 virtual void *GetScalarPointerForExtent(
int extent[6]);
239 virtual void *GetScalarPointer(
int coordinates[3]);
240 virtual void *GetScalarPointer(
int x,
int y,
int z);
241 virtual void *GetScalarPointer();
246 virtual float GetScalarComponentAsFloat(
int x,
int y,
int z,
int component);
247 virtual void SetScalarComponentFromFloat(
248 int x,
int y,
int z,
int component,
float v);
249 virtual double GetScalarComponentAsDouble(
int x,
int y,
int z,
int component);
250 virtual void SetScalarComponentFromDouble(
251 int x,
int y,
int z,
int component,
double v);
255 virtual void AllocateScalars();
264 int y0,
int y1,
int z0,
int z1)
265 {
int e[6]; e[0]=x0; e[1]=x1; e[2]=y0; e[3]=y1; e[4]=z0; e[5]=z1;
266 this->CopyAndCastFrom(inData, e);}
284 vtkSetVector3Macro(Spacing,
double);
285 vtkGetVector3Macro(Spacing,
double);
295 vtkSetVector3Macro(Origin,
double);
296 vtkGetVector3Macro(Origin,
double);
308 void SetScalarTypeToUnsignedInt()
311 void SetScalarTypeToUnsignedLong()
314 void SetScalarTypeToUnsignedShort()
316 void SetScalarTypeToUnsignedChar()
318 void SetScalarTypeToSignedChar()
320 void SetScalarTypeToChar()
322 void SetScalarType(
int);
324 const char* GetScalarTypeAsString()
325 {
return vtkImageScalarTypeNameMacro ( this->GetScalarType() ); };
331 void SetNumberOfScalarComponents(
int n );
332 int GetNumberOfScalarComponents();
369 void *GetArrayPointer(
vtkDataArray* array,
int coordinates[3]);
380 void ComputeInternalExtent(
int *intExt,
int *tgtExt,
int *bnds);
409 void ComputeIncrements();
412 void ComputeIncrements(
int numberOfComponents);
416 void ComputeIncrements(
vtkIdType inc[3]);
419 void ComputeIncrements(
int numberOfComponents,
vtkIdType inc[3]);
421 void CopyOriginAndSpacingFromPipeline();
425 void SetDataDescription(
int desc);
470 const double *p = this->
GetPoint(
id);
471 x[0] = p[0]; x[1] = p[1]; x[2] = p[2];
479 dims[0] = extent[1] - extent[0] + 1;
480 dims[1] = extent[3] - extent[2] + 1;
481 dims[2] = extent[5] - extent[4] + 1;
483 return dims[0]*dims[1]*dims[2];