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 | |
---|
10 | class NvColorTableRenderer { |
---|
11 | NvColorTableShader* _shader; |
---|
12 | R2Fonts* _fonts; |
---|
13 | public : |
---|
14 | NvColorTableRenderer(); |
---|
15 | ~NvColorTableRenderer(); |
---|
16 | |
---|
17 | public : |
---|
18 | void render(int width, int height, Texture2D* texture, TransferFunction* tf, double rangeMin, double rageMax); |
---|
19 | void setFonts(R2Fonts* fonts); |
---|
20 | }; |
---|
21 | |
---|
22 | inline void NvColorTableRenderer::setFonts(R2Fonts* fonts) |
---|
23 | { |
---|
24 | _fonts = fonts; |
---|
25 | } |
---|
26 | |
---|
27 | #endif |
---|
28 | |
---|
Note: See
TracBrowser
for help on using the repository browser.