source: trunk/vizservers/nanovis/NvColorTableRenderer.h @ 750

Last change on this file since 750 was 580, checked in by vrinside, 17 years ago
File size: 592 bytes
Line 
1#ifndef __NV_COLORTABLE_RENDERER_H__
2#define __NV_COLORTABLE_RENDERER_H__
3
4#include "Texture2D.h"
5#include "TransferFunction.h"
6#include "NvColorTableShader.h"
7
8#include <R2/R2Fonts.h>
9
10class NvColorTableRenderer {
11    NvColorTableShader* _shader;
12    R2Fonts* _fonts;
13public :
14    NvColorTableRenderer();
15    ~NvColorTableRenderer();
16
17public :
18    void render(int width, int height, Texture2D* texture, TransferFunction* tf, double rangeMin, double rageMax);
19    void setFonts(R2Fonts* fonts);
20};
21
22inline void NvColorTableRenderer::setFonts(R2Fonts* fonts)
23{
24    _fonts = fonts;
25}
26
27#endif
28
Note: See TracBrowser for help on using the repository browser.