source: nanovis/branches/1.1/NvColorTableRenderer.h @ 4599

Last change on this file since 4599 was 3502, checked in by ldelgass, 11 years ago

Add basic VTK structured points reader to nanovis, update copyright dates.

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