1vpSetVolumeSize(3)         Library Functions Manual         vpSetVolumeSize(3)
2
3
4

NAME

6       vpSetVolumeSize - define the dimensions of a volume
7

SYNOPSIS

9       #include <volpack.h>
10
11       vpResult
12       vpSetVolumeSize(vpc, xlen, ylen, zlen)
13           vpContext *vpc;
14           int xlen, ylen, zlen;
15

ARGUMENTS

17       vpc    VolPack context from vpCreateContext.
18
19       xlen   Size of first dimension of the volume in voxels.
20
21       ylen   Size of the second dimension of the volume in voxels.
22
23       zlen   Size of the third dimension of the volume in voxels.
24

DESCRIPTION

26       vpSetVolumeSize  is used to define the dimensions of a volume.  It must
27       be called before volume data is loaded into a rendering  context.   Any
28       existing   precomputed  volume  data  structures  in  the  context  are
29       destroyed.
30

STATE VARIABLES

32       The current volume dimensions may be retrieved with the following state
33       variable codes (see vpGeti(3)): VP_XLEN, VP_YLEN, VP_ZLEN.
34

ERRORS

36       The return value is always VP_OK.
37

SEE ALSO

39       VolPack(3), vpCreateContext(3)
40
41
42
43VolPack                                                     vpSetVolumeSize(3)
Impressum