Changeset 5716 for nanovis


Ignore:
Timestamp:
Jun 17, 2015, 5:02:44 AM (4 years ago)
Author:
ldelgass
Message:

Rename argument: legend tag is specified by client and returned, it doesn't
need to be a volume name/index.

Location:
nanovis/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • nanovis/trunk/nanovis.cpp

    r5703 r5716  
    279279int
    280280NanoVis::renderLegend(TransferFunction *tf, double min, double max,
    281                       int width, int height, const char *volArg)
     281                      int width, int height, const char *tag)
    282282{
    283283    TRACE("Enter");
     
    307307        char prefix[200];
    308308
    309         TRACE("Sending ppm legend image %s min:%g max:%g", volArg, min, max);
    310         sprintf(prefix, "nv>legend %s %g %g", volArg, min, max);
     309        TRACE("Sending ppm legend image %s min:%g max:%g", tag, min, max);
     310        sprintf(prefix, "nv>legend %s %g %g", tag, min, max);
    311311#ifdef USE_THREADS
    312312        queuePPM(g_queue, prefix, screenBuffer, width, height);
  • nanovis/trunk/nanovis.h

    r4949 r5716  
    9494
    9595    static int renderLegend(TransferFunction *tf, double min, double max,
    96                             int width, int height, const char *volArg);
     96                            int width, int height, const char *tag);
    9797
    9898    static Volume *loadVolume(const char *tag, int width, int height, int depth,
Note: See TracChangeset for help on using the changeset viewer.