Ignore:
Timestamp:
Dec 7, 2013 12:34:21 AM (10 years ago)
Author:
ldelgass
Message:

Add software rendering of legends, enabled by default. Should work with vtk
6.0 release and up (i.e. work around the bug with the scalar bar actor rendering
with newer VTK).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/packages/vizservers/vtkvis/ColorMap.h

    r3982 r4073  
    1717#include <vtkPiecewiseFunction.h>
    1818#include <vtkLookupTable.h>
     19#include <vtkUnsignedCharArray.h>
    1920
    2021namespace VtkVis {
     
    115116    static ColorMap *getElementDefault();
    116117
     118    static void renderColorMap(ColorMap *map, int width, int height,
     119                               vtkUnsignedCharArray *imgData,
     120                               bool opaque, float bgColor[3],
     121                               bool bgr = false,
     122                               int bytesPerPixel = 3);
     123
    117124private:
    118125    static ColorMap *_default;
Note: See TracChangeset for help on using the changeset viewer.