/**
   * Defines body of run method, which was declared in the interface.
   *
   * @param parentFrame parent frame
   * @param image current ModelImage - this is an image already loaded into MIPAV. Can be null.
   * @see ModelImage
   * @see ViewJFrameImage
   */
  public void run(Frame parentFrame, ModelImage image) {

    if (parentFrame instanceof ViewJFrameImage) {
      new PlugInDialogFociStrandMesh(parentFrame, image);
    } else {
      MipavUtil.displayError("PlugIn FociStrandMesh only runs on an image frame.");
    }
  }
  public void run(Frame parentFrame, ModelImage imageA, ModelImage imageB) {

    if (parentFrame instanceof ViewJFrameImage) new PlugInDialogVOIIntensities(parentFrame, imageA);
    else MipavUtil.displayError("PlugIn Wrap Fix only runs on an image frame.");
  }
Example #3
0
  /**
   * defines body of run method, which was declared in the interface. This sample run method creates
   * a new image in a new frame and calls methods in PlugInSampleDrawing to add a few VOIs.
   *
   * @param parentFrame parent frame
   * @param image current ModelImage - this is an image already loaded into MIPAV. Can be null.
   * @see ModelImage
   * @see ViewJFrameImage
   */
  public void run(Frame parentFrame, ModelImage image) {

    if (parentFrame instanceof ViewJFrameImage) new PlugInDialogProcessICG(parentFrame, image);
    else MipavUtil.displayError("PlugIn Wrap Fix only runs on an image frame.");
  }