vol_iv.C File Reference

Create wrapper iv files for volume density files. More...

#include <cassert>
#include <cstdlib>
#include <cstdio>
#include <iostream>
#include <iomanip>
#include <fstream>
#include <string>
#include <vector>
#include "vol_iv_cmd.h"
#include "debug.H"
#include <VolumeViz/nodes/SoTransferFunction.h>

Functions

SoTransferFunction::PredefColorMap getPredefCmap (const int given, const char *cstr, bool &ok)
 Return the PredefColorMap from user input. Defaults to NONE.
SoTransferFunction::ColorMapType getCmapType (const int cmaptype_given, const char *cmaptype_arg, bool &ok)
 Parse a string to find out what type of colormap. Defaults to RGBA.
bool WriteColorMap (ofstream &o, const string &filename, SoTransferFunction::ColorMapType cmaptype)
 Read in a color map and check if it is ok.
int main (int argc, char *argv[])

Variables

int debug_level
 The main program needs to define this as a non-extern.
static const UNUSED char * RCSid = "@(#) $Id: vol_iv.C,v 1.13 2004/11/03 00:42:36 schwehr Exp $"
 Let the debugger find out which version is being used.


Detailed Description

Create wrapper iv files for volume density files.


Function Documentation

SoTransferFunction::ColorMapType getCmapType const int  cmaptype_given,
const char *  cmaptype_arg,
bool &  ok
 

Parse a string to find out what type of colormap. Defaults to RGBA.

Parameters:
cmaptype_given Bool of if the user specified anything
cmaptype_arg What the user tried to tell us
ok false something cookoo happened... very likely with user typos
Returns:
SoTransferFunction::ColorMapType of ALPHA, LUM_ALPHA, or RGBA

SoTransferFunction::PredefColorMap getPredefCmap const int  given,
const char *  cstr,
bool &  ok
 

Return the PredefColorMap from user input. Defaults to NONE.

int main int  argc,
char *  argv[]
 

bool WriteColorMap ofstream &  o,
const string &  filename,
SoTransferFunction::ColorMapType  cmaptype
 

Read in a color map and check if it is ok.

Parameters:
o Output stream to write color map to
filename File to read the color map in from
cmaptype What type of color map do we have? They have different number of columns
Returns:
false if there is trouble


Variable Documentation

int debug_level
 

The main program needs to define this as a non-extern.

const UNUSED char* RCSid = "@(#) $Id: vol_iv.C,v 1.13 2004/11/03 00:42:36 schwehr Exp $" [static]
 

Let the debugger find out which version is being used.


Generated on Thu Mar 2 17:55:25 2006 for density by  doxygen 1.4.6