source: geovis/trunk/ColorMap.h

Last change on this file was 5105, checked in by ldelgass, 9 years ago

geovis updates for NSF demo

  • Property svn:eol-style set to native
File size: 616 bytes
Line 
1/* -*- mode: c++; c-basic-offset: 4; indent-tabs-mode: nil -*- */
2/*
3 * Copyright (C) 2015  HUBzero Foundation, LLC
4 *
5 * Author: Leif Delgass <ldelgass@purdue.edu>
6 */
7#ifndef GEOVIS_COLORMAP_H
8#define GEOVIS_COLORMAP_H
9
10#include <osg/TransferFunction>
11
12namespace GeoVis {
13
14class ColorMap {
15public:
16    static void renderColorMap(osg::TransferFunction1D *map, int width, int height,
17                               osg::Image *imgData,
18                               bool opaque, float bgColor[3],
19                               bool bgr = false,
20                               int bytesPerPixel = 3);
21};
22
23}
24
25#endif
Note: See TracBrowser for help on using the repository browser.