Class ExtendedPlot3D

    • Field Detail

      • plot

        protected javax.media.j3d.Node plot
      • scene

        protected javax.media.j3d.BranchGroup scene
    • Method Detail

      • init

        protected void init()
        Overrides:
        init in class org.freehep.j3d.plot.Plot3D
      • applyShape3DColor

        protected javax.media.j3d.Node applyShape3DColor​(javax.media.j3d.Shape3D shape3D,
                                                         Color color)
      • resetView

        public void resetView()
      • defineMouseBehaviour

        protected javax.media.j3d.BranchGroup defineMouseBehaviour​(javax.media.j3d.Node scene)
        Overrides:
        defineMouseBehaviour in class org.freehep.j3d.plot.Plot3D
      • setupLights

        protected void setupLights​(javax.media.j3d.BranchGroup root)
        Overrides:
        setupLights in class org.freehep.j3d.plot.Plot3D
      • postSwap

        public void postSwap()
        Overrides:
        postSwap in class javax.media.j3d.Canvas3D
      • postRender

        public void postRender()
        Overrides:
        postRender in class javax.media.j3d.Canvas3D
      • record

        public void record​(boolean recording,
                           String recordFileNamePrefix)
        Record jpegs images from the 3D plot evolution

        each time the plot rendering is refreshed, postSwap() method is called. This method was overridden to record to disk the corresponding new image converted in jpeg

        So a group of indexed jpegs images can be obtained in a folder

        It can be converted in a mpeg or other, for example using Linux Mplayer+mencoder For ex, with mencoder the command line is : for creating an MPEG-4 file from all the JPEG files in the current directory: mencoder mf://*.jpg -mf w=800:h=600:fps=25:type=jpg -ovc lavc -lavcopts vcodec=mpeg4 -oac copy -o output.avi

        this can be played on windows...

        Parameters:
        recording - recording flag
        recordFileNamePrefix - file name preffix
      • getMousePosX

        public int getMousePosX()
        Returns:
        Renvoie mouse_posx.
      • getMousePosY

        public int getMousePosY()
        Returns:
        Renvoie mouse_posy.
      • paint

        public void paint​(Graphics g)
        Overrides:
        paint in class javax.media.j3d.Canvas3D