Class VRPanel

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, VRPane

public class VRPanel extends JPanel implements VRPane
See Also:
  • Field Details

    • horizonMarker

      public static PamSymbol horizonMarker
    • animalMarker

      public static PamSymbol animalMarker
    • candidateMarker

      public static PamSymbol candidateMarker
    • calibrationMarker

      public static PamSymbol calibrationMarker
    • horizonSymbol

      public static VRSymbolManager horizonSymbol
    • animalSymbol

      public static VRSymbolManager animalSymbol
    • candidateSymbol

      public static VRSymbolManager candidateSymbol
    • calibrationSymbol

      public static VRSymbolManager calibrationSymbol
    • settingsButtonSize

      public static Dimension settingsButtonSize
  • Constructor Details

    • VRPanel

      public VRPanel(VRControl vrControl)
  • Method Details

    • getPicturePanel

      public JPanel getPicturePanel()
    • newImage

      public void newImage()
      Description copied from interface: VRPane
      Called whenever a new image is loaded.
      Specified by:
      newImage in interface VRPane
    • repaint

      public void repaint()
      Description copied from interface: VRPane
      Refresh the image
      Specified by:
      repaint in interface VRPane
      Overrides:
      repaint in class Component
    • setImageBrightness

      public void setImageBrightness(float brightness, float contrast)
    • zoomPicture

      public void zoomPicture()
    • screenToImage

      public Point screenToImage(Point screenPoint)
      Description copied from interface: VRPane
      Calculate the screen location given the locations on the image
      Specified by:
      screenToImage in interface VRPane
      Parameters:
      screenPoint - - location on screen
      Returns:
      the location on the image in pixels
    • imageToScreen

      public Point imageToScreen(Point screenPoint)
      Description copied from interface: VRPane
      Calculate the location on an image given screen co-ordinates.
      Specified by:
      imageToScreen in interface VRPane
      Parameters:
      screenPoint - - location on image
      Returns:
      the location on the screen.
    • getImageHeight

      public int getImageHeight()
      Specified by:
      getImageHeight in interface VRPane
    • getImageWidth

      public int getImageWidth()
      Specified by:
      getImageWidth in interface VRPane
    • changeMethod

      public void changeMethod()