spacer spacer spacer
spacer spacer spacer
spacer
NASA Logo - Jet Propulsion Laboratory    + View the NASA Portal
spacer
JPL Home Earth Solar System Stars & Galaxies Technology
ParVox Parallel Volume Rendering System
ParVox Home ../Images & Animations ParVox Document Download Source PAT Home Section 387 Division 38
spacer
spacer spacer spacer
spacer

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
spacer
spacer spacer spacer
spacer
Privacy / Copyrights FAQ Contact JPL Sitemap
spacer
spacer spacer spacer
spacer
FIRST GOV   NASA Home Page This page, http://pat.jpl.nasa.gov/public/ParVox/API/vlset_colormap.html, is maintained by Peggy Li and was last modified Wednesday, 09-Mar-2005 16:58:03 PST
spacer
spacer spacer spacer
spacer spacer spacer
JPL NASA Caltech