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();
209 virtual void GetIncrements(
vtkIdType inc[3]);
222 virtual void GetContinuousIncrements(
228 virtual void *GetScalarPointerForExtent(
int extent[6]);
229 virtual void *GetScalarPointer(
int coordinates[3]);
230 virtual void *GetScalarPointer(
int x,
int y,
int z);
231 virtual void *GetScalarPointer();
236 virtual float GetScalarComponentAsFloat(
int x,
int y,
int z,
int component);
237 virtual void SetScalarComponentFromFloat(
238 int x,
int y,
int z,
int component,
float v);
239 virtual double GetScalarComponentAsDouble(
int x,
int y,
int z,
int component);
240 virtual void SetScalarComponentFromDouble(
241 int x,
int y,
int z,
int component,
double v);
245 virtual void AllocateScalars();
254 int y0,
int y1,
int z0,
int z1)
255 {
int e[6]; e[0]=x0; e[1]=x1; e[2]=y0; e[3]=y1; e[4]=z0; e[5]=z1;
256 this->CopyAndCastFrom(inData, e);}
274 vtkSetVector3Macro(Spacing,
double);
275 vtkGetVector3Macro(Spacing,
double);
285 vtkSetVector3Macro(Origin,
double);
286 vtkGetVector3Macro(Origin,
double);
298 void SetScalarTypeToUnsignedInt()
301 void SetScalarTypeToUnsignedLong()
304 void SetScalarTypeToUnsignedShort()
306 void SetScalarTypeToUnsignedChar()
308 void SetScalarTypeToSignedChar()
310 void SetScalarTypeToChar()
312 void SetScalarType(
int);
314 const char* GetScalarTypeAsString()
315 {
return vtkImageScalarTypeNameMacro ( this->GetScalarType() ); };
321 void SetNumberOfScalarComponents(
int n );
322 int GetNumberOfScalarComponents();
359 void *GetArrayPointer(
vtkDataArray* array,
int coordinates[3]);
370 void ComputeInternalExtent(
int *intExt,
int *tgtExt,
int *bnds);
398 void ComputeIncrements();
399 void ComputeIncrements(
vtkIdType inc[3]);
400 void CopyOriginAndSpacingFromPipeline();
404 void SetDataDescription(
int desc);
437 const double *p = this->
GetPoint(
id);
438 x[0] = p[0]; x[1] = p[1]; x[2] = p[2];
446 dims[0] = extent[1] - extent[0] + 1;
447 dims[1] = extent[3] - extent[2] + 1;
448 dims[2] = extent[5] - extent[4] + 1;
450 return dims[0]*dims[1]*dims[2];