source: trunk/packages/vizservers/nanovis/NvColorTableRenderer.h @ 3464

Last change on this file since 3464 was 3463, checked in by ldelgass, 7 years ago

Begin process of renaming R2 library

  • Property svn:eol-style set to native
File size: 651 bytes
Line 
1/* -*- mode: c++; c-basic-offset: 4; indent-tabs-mode: nil -*- */
2#ifndef NV_COLORTABLE_RENDERER_H
3#define NV_COLORTABLE_RENDERER_H
4
5#include <R2/R2Fonts.h>
6
7#include "Texture2D.h"
8#include "TransferFunction.h"
9#include "NvColorTableShader.h"
10
11class NvColorTableRenderer
12{
13public :
14    NvColorTableRenderer();
15    ~NvColorTableRenderer();
16
17    void render(int width, int height,
18                Texture2D *texture, TransferFunction *tf,
19                double rangeMin, double rangeMax);
20
21    void setFonts(nv::util::Fonts *fonts)
22    {
23        _fonts = fonts;
24    }
25
26private:
27    nv::util::Fonts *_fonts;
28    NvColorTableShader *_shader;
29};
30
31#endif
Note: See TracBrowser for help on using the repository browser.