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

Last change on this file since 3502 was 3502, checked in by ldelgass, 7 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.