VolumeJ
Class VJRenderViewInteractive

java.lang.Object
  |
  +--java.lang.Thread
        |
        +--VolumeJ.VJRenderView
              |
              +--VolumeJ.VJRenderViewInteractive
All Implemented Interfaces:
java.lang.Runnable

public class VJRenderViewInteractive
extends VJRenderView

VJRenderViewInteractive implements a shell for interactively modifying the view (by rotating etc). It adds methods to change the current rotation and scaling, and can be controlled from another class. To start the first rendering, call start To change the view, call rotateInPlane Copyright (c) 2001-2003, Michael Abramoff. All rights reserved.


Field Summary
protected  ij.ImagePlus imp
           
 
Fields inherited from class VolumeJ.VJRenderView
description, m, message, mLight, renderer, rotx, roty, rotz, running, scale
 
Fields inherited from class java.lang.Thread
inheritableThreadLocals, MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY, threadLocals
 
Constructor Summary
VJRenderViewInteractive(ij.ImagePlus imp, VJRenderer renderer, double scale, java.lang.String message)
          Instantiates a new interactive render viewer.
 
Method Summary
 void newView()
          Renders a view.
 void rotateInPlane(float anglex, float angley)
          Rotate the transformation matrix by viewing plane rotation angles rotx, roty.
 void run()
          Generates the first view and stays on.
 
Methods inherited from class VolumeJ.VJRenderView
center, computeTransformationMatrix, kill, memoryInUse, renderToImageProcessor, renderToPixelArray, report, toString
 
Methods inherited from class java.lang.Thread
, activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

imp

protected ij.ImagePlus imp
Constructor Detail

VJRenderViewInteractive

public VJRenderViewInteractive(ij.ImagePlus imp,
                               VJRenderer renderer,
                               double scale,
                               java.lang.String message)
Instantiates a new interactive render viewer. The renderer is set. The transformation matrix is created to the correct rotation and scaling, and saved in the renderer. A default viewport is created (just width and height and offsets parameter) The volume is centered at the center of the viewport.
Parameters:
renderer - a VJRenderer
scale - the amount by which to scale the volume
message - a useful message to identify the characteristics of this rendering.
Method Detail

rotateInPlane

public void rotateInPlane(float anglex,
                          float angley)
Rotate the transformation matrix by viewing plane rotation angles rotx, roty.
Parameters:
anglex - angle in degrees in x direction.
angley - angle in degrees in y direction.

newView

public void newView()
Renders a view.

run

public void run()
Generates the first view and stays on.
Overrides:
run in class VJRenderView