Login  Register

Re: Avoid 3D Viewer Dialog

Posted by Juanjo Vega on Jun 17, 2010; 11:54am
URL: http://imagej.273.s1.nabble.com/Avoid-3D-Viewer-Dialog-tp3687902p3687904.html

Hi everybody,

I finally added the jar to my project and runs the plugin with:

    private void run3DViewer(ImagePlus ip) {
        Image3DUniverse universe = new Image3DUniverse(UNIVERSE_W,
UNIVERSE_H);

        // Adds the sphere image plus to universe.
        new StackConverter(ip).convertToRGB();
        Content c = universe.addVoltex(ip);
        c.displayAs(Content.VOLUME);

        universe.show();
    }

I would prefer to run it with "IJ.run(...)", but I can't manage to skip
the dialog and this solution works, so it's ok.

Thank you very much, Albert :)

Sincerelly,

Juanjo Vega.


On Wed, 2010-06-16 at 09:36 -0400, Albert Cardona wrote:
> Juanjo,
>
> Look at the examples for direct API usage of the 3D Viewer library:
>
> http://www.biomedcentral.com/1471-2105/11/274/abstract
>
> They amount to 2 lines of code.
>
> Albert