Class PovrayDialog

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, RootPaneContainer, WindowConstants

public class PovrayDialog extends JDialog
A dialog for controling the creation of a povray input file from a Chemframe and a display. The actual leg work of writing the file out is done by PovrayWriter.java.

Borrows code from org.openscience.jmol.Vibrate (Thanks!).

Author:
Thomas James Grey (tjg1@ch.ic.ac.uk), Matthew A. Meineke (mmeineke@nd.edu)
See Also:
  • Field Details

    • povrayPathButton

      protected JButton povrayPathButton
    • goButton

      protected JButton goButton
    • saveField

      protected JTextField saveField
    • savePathLabel

      protected JTextField savePathLabel
    • povrayPathLabel

      protected JTextField povrayPathLabel
    • runPovCheck

      protected JCheckBox runPovCheck
    • allFramesCheck

      protected JCheckBox allFramesCheck
    • antiAliasCheck

      protected JCheckBox antiAliasCheck
    • displayWhileRenderingCheck

      protected JCheckBox displayWhileRenderingCheck
  • Constructor Details

    • PovrayDialog

      public PovrayDialog(JFrame f, Viewer vwr)
      Creates a dialog for getting info related to output frames in povray format.
      Parameters:
      f - The frame assosiated with the dialog
      vwr - The interacting display we are reproducing (source of view angle info etc)
  • Method Details

    • setImageDimensions

      public void setImageDimensions(int imageWidth, int imageHeight)
      Sets the output image dimensions. Setting either to <= 0 will remove the height and width specification from the commandline- the resulting behaviour depends on povray!
      Parameters:
      imageWidth - The width of the image.
      imageHeight - The height of the image.
    • updateScreen

      protected void updateScreen()
      Update screen informations
    • updateCommandLine

      protected void updateCommandLine()
    • getCommandLine

      protected String getCommandLine()
      Generates a commandline from the options set for povray path etc and sets in the textField.
      Returns:
      command line
    • centerDialog

      protected void centerDialog()
      Centers the dialog on the screen.