CAViewer::SetDimScale

CAViewer class

Associates an axis dimension scale with a dimension.

BOOL SetDimScale(
  short dim,
  void *scaleData
  );

Parameters

dim
The array dimension (in the range 0 to rank-1, where rank is the rank of the currently loaded array) that the axis scale will be applied to.

scaleData
A pointer to a one-dimensional array that defines the axis scale values.

Return Value

Returns TRUE if the operation was successful; otherwise, FALSE.

Remarks

The array pointed to by scaleData must have previously been allocated by a call to aglAlloc, aglMalloc, or aglMallocEx; or added to the watch list by a call to aglStartWatch.

See Also

aglAlloc, aglMalloc, aglMallocEx, aglStartWatch, CAViewer::GetDimScale