Class ImageData

  • All Implemented Interfaces:
    Data

    public class ImageData
    extends java.lang.Object
    implements Data
    Class to hold ImageEntry and the current selection
    Since:
    14590
    • Constructor Detail

      • ImageData

        public ImageData()
        Construct a new image container without images
      • ImageData

        public ImageData​(java.util.List<ImageEntry> data)
        Construct a new image container with a list of images
        Parameters:
        data - the list of ImageEntry
    • Method Detail

      • getImages

        public java.util.List<ImageEntrygetImages()
        Returns the images
        Returns:
        the images
      • isModified

        public boolean isModified()
        Determines if one image has modified GPS data.
        Returns:
        true if data has been modified; false, otherwise
      • getFirstImage

        public ImageEntry getFirstImage()
        Get the first image on the layer
        Returns:
        The first image
        Since:
        18246
      • getLastImage

        public ImageEntry getLastImage()
        Get the last image in the layer
        Returns:
        The last image
        Since:
        18246
      • hasNextImage

        public boolean hasNextImage()
        Check if there is a next image in the sequence
        Returns:
        true is there is a next image, false otherwise
      • searchImages

        public java.util.Collection<ImageEntrysearchImages​(Bounds bounds)
        Search for images in a bounds
        Parameters:
        bounds - The bounds to search
        Returns:
        images in the bounds
        Since:
        17459
      • getNextImage

        public ImageEntry getNextImage()
        Get the image next to the current image
        Returns:
        The next image
        Since:
        18246
      • getPreviousImage

        public ImageEntry getPreviousImage()
        Get the image previous to the current image
        Returns:
        The previous image
        Since:
        18246
      • hasPreviousImage

        public boolean hasPreviousImage()
        Check if there is a previous image in the sequence
        Returns:
        true is there is a previous image, false otherwise
      • setSelectedImage

        public void setSelectedImage​(ImageEntry image)
        Select as the selected the given image
        Parameters:
        image - the selected image
      • fireNodeMoved

        public void fireNodeMoved​(ImageEntry gpxImageEntry)
        Indicate that an entry has changed
        Parameters:
        gpxImageEntry - The entry to update
        Since:
        17574
      • removeSelectedImages

        public void removeSelectedImages()
        Remove the current selected image from the list
        Since:
        15348
      • updateSelectedImage

        public void updateSelectedImage()
        Update the selected image after removal of one or more images.
        Since:
        18049
      • isImageSelected

        public boolean isImageSelected​(ImageEntry image)
        Determines if the image is selected
        Parameters:
        image - the ImageEntry image
        Returns:
        true is the image is selected, false otherwise
        Since:
        15333
      • removeImage

        public void removeImage​(ImageEntry img)
        Remove the image from the list and trigger update listener
        Parameters:
        img - the ImageEntry to remove
      • removeImage

        public void removeImage​(ImageEntry img,
                                boolean fireUpdateEvent)
        Remove the image from the list and optionally trigger update listener
        Parameters:
        img - the ImageEntry to remove
        fireUpdateEvent - if true, notifies listeners of image update
        Since:
        18049
      • updateImagePosition

        public void updateImagePosition​(ImageEntry img,
                                        LatLon newPos)
        Update the position of the image and trigger update
        Parameters:
        img - the image to update
        newPos - the new position
      • updateImageDirection

        public void updateImageDirection​(ImageEntry img,
                                         double direction)
        Update the image direction of the image and trigger update
        Parameters:
        img - the image to update
        direction - the new direction
      • updateImageGpsTrack

        public void updateImageGpsTrack​(ImageEntry img,
                                        double trackDirection)
        Update the GPS track direction of the image and trigger update.
        Parameters:
        img - the image to update
        trackDirection - the new GPS track direction
        Since:
        19387
      • updateImageHPosErr

        public void updateImageHPosErr​(ImageEntry img,
                                       double hposerr)
        Update the image horizontal positioning error and trigger update.
        Parameters:
        img - the image to update
        hposerr - the new horizontal positionning error
        Since:
        19387
      • updateImageGpsDiffMode

        public void updateImageGpsDiffMode​(ImageEntry img,
                                           java.lang.Integer gpsDiffMode)
        Update the image GPS differential mode and trigger update.
        Parameters:
        img - the image to update
        gpsDiffMode - the new GPS differential mode
        Since:
        19387
      • updateImageGps2d3dMode

        public void updateImageGps2d3dMode​(ImageEntry img,
                                           java.lang.Integer gps2d3dMode)
        Update the image GPS 2d/3d mode value and trigger update.
        Parameters:
        img - the image to update
        gps2d3dMode - the new 2d/3d GPS mode
        Since:
        19387
      • updateImageExifGpsDop

        public void updateImageExifGpsDop​(ImageEntry img,
                                          java.lang.Double exifGpsDop)
        Update the image GPS DOP value and trigger update.
        Parameters:
        img - the image to update
        exifGpsDop - the new GPS DOP value
        Since:
        19387
      • updateImageExifGpsDatum

        public void updateImageExifGpsDatum​(ImageEntry img,
                                            java.lang.String exifGpsDatum)
        Update the image GPS datum and trigger update.
        Parameters:
        img - the image to update
        exifGpsDatum - the new datum string value
        Since:
        19387
      • updateImageExifGpsProcMethod

        public void updateImageExifGpsProcMethod​(ImageEntry img,
                                                 java.lang.String exifGpsProcMethod)
        Update the image GPS processing method and trigger update.
        Parameters:
        img - the image to update
        exifGpsProcMethod - the new GPS processing method
        Since:
        19387
      • getLayer

        public Layer getLayer()
        Get the layer that this data is associated with. May be null.
        Returns:
        The layer this data is associated with.
        Since:
        18591
      • getDataSources

        public java.util.Collection<DataSourcegetDataSources()
        Description copied from interface: Data
        Returns the collection of data sources.
        Specified by:
        getDataSources in interface Data
        Returns:
        the collection of data sources.