FXCanvas3DMV

com.interactivemesh.j3d.community.gui
Class FXCanvas3DMVControl

java.lang.Object
  extended by com.interactivemesh.j3d.community.gui.FXCanvas3DMVControl

public class FXCanvas3DMVControl
extends java.lang.Object

A FXCanvas3DMVControl object controls repainting and resizing of the FXCanvas3DMV objects. As soon as Java 3D has finished rendering into all attached and active FXCanvas3DMV objects for a single frame the FXCanvas3DMVControl object requests JavaFX to copy the image data and to repaint all corresponding SwingComponent objects in a single loop.

See Also:
FXCanvas3DMV, FXCanvas3DMVRepainter

Constructor Summary
FXCanvas3DMVControl(FXCanvas3DMV[] fxCanvas3Ds)
          Constructs and initializes a new FXCanvas3DMVControl object for the given FXCanvas3DMV objects.
 
Method Summary
 void copyBuffersAndRepaint()
          Copies the 3D rendering images into the 2D painting images while the J3D-Renderer thread is waiting.
 void setFXCanvas3DMVSize(int width, int height)
          Convenient method for rezising all FXCanvas3DMV objects to the same size.
 void setRepainter(FXCanvas3DMVRepainter painter)
          Sets the FXCanvas3DMVRepainter object for this FXCanvas3DMVControl.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FXCanvas3DMVControl

public FXCanvas3DMVControl(FXCanvas3DMV[] fxCanvas3Ds)
Constructs and initializes a new FXCanvas3DMVControl object for the given FXCanvas3DMV objects.

Parameters:
fxCanvas3Ds - FXCanvas3DMV objects to manage
Method Detail

setRepainter

public void setRepainter(FXCanvas3DMVRepainter painter)
Sets the FXCanvas3DMVRepainter object for this FXCanvas3DMVControl.

Parameters:
painter - JavaFX class instance

setFXCanvas3DMVSize

public void setFXCanvas3DMVSize(int width,
                                int height)
Convenient method for rezising all FXCanvas3DMV objects to the same size.

Parameters:
width - the width of the canvas
height - the height of the canvas

copyBuffersAndRepaint

public void copyBuffersAndRepaint()
Copies the 3D rendering images into the 2D painting images while the J3D-Renderer thread is waiting. Initiates repainting of all 2D painting images. To be called from the JavaFX painting loop.


FXCanvas3DMV