 |
 |
 |
 |
 |
 |
 |
|
 |
 |
 |
 |
 |
vlset_colormap
NAME
vlset_colormap - Set the colormap of a
given variable
SYNOPSIS
#include <parvox.h>
void vlset_colormap(vlvolume *vol, vlvariable
*variable, uchar *cmap)
DESCRIPTION
vlset_colormap()
set variable->colormapptr
to cmap,
where cmap
is a pointer to an array of 768 (256x3) unsigned char. The colormap
contains 256 24-bit colors. Next, vlset_colormap() computes
the weighted colormap by multipling each color in the colormap with the
corresponing opacity value if variable->opmapptr is set, and stores
the results in floating point to variable->colormap. Otherwise,
it copies the colormap values directly into variable->colormap.
This function has to be set for direct volume rendering and slice rendering.
vlset_colormap() can be called before or after vlset_render_type().
For isosurface rendering, if vlpick_iso_color()
is used to select the color of the isosurface, vlset_colormap()
has to be called first.
SEE ALSO
vlset_render_type,
vlset_opmap, vlpick_iso_color
BACK TO INDEX
|
 |
 |
 |
 |
 |
|
 |
 |
 |
 |
 |
 |
|
 |
This page,
http://pat.jpl.nasa.gov/public/ParVox/API/vlset_colormap.html,
is maintained by
and was last modified Wednesday, 09-Mar-2005 16:58:03 PST
|
|
 |
 |
 |
 |
 |
 |
 |
|