Ignore:
Timestamp:
Nov 25, 2008 9:56:29 AM (16 years ago)
Author:
gah
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/packages/vizservers/nanovis/Command.cpp

    r1229 r1236  
    732732        return TCL_ERROR;
    733733    }
    734     /* Convert to normalized coordinates */
    735     x = x / (float)NanoVis::win_width;
    736     y = y / (float)NanoVis::win_height;
    737     /* Move the camera and its target by equal amounts along the x and y
    738      * axes. */
    739     NanoVis::cam->x(NanoVis::cam->x() + x);
    740     NanoVis::cam->y(NanoVis::cam->y() + y);
    741     fprintf(stderr, "dx=%f, dy=%f\n", x, y);
    742     fprintf(stderr, "set eye to %f %f\n", NanoVis::cam->x(), NanoVis::cam->y());
    743     Vector3 target;
    744     target = NanoVis::cam->aim();
    745     x += target.x;
    746     y += target.y;
    747     NanoVis::cam->aim(x, y, target.z);
    748     fprintf(stderr, "set aim to %f %f\n", x, y);
     734    NanoVis::pan(x, y);
    749735    return TCL_OK;
    750736}
Note: See TracChangeset for help on using the changeset viewer.