Class WriteRGBOp

    • Constructor Detail

      • WriteRGBOp

        public WriteRGBOp()
    • Method Detail

      • doExecute

        public void doExecute​(ProgressMonitor pm)
                       throws OperatorException
        Description copied from class: Operator
        Executes the operator.

        For operators that compute raster data tiles, the method is usually a no-op. Other operators might perform their main work in this method, e.g. perform some image analysis such as extracting statistics and other features from data products.

        Don't call this method directly. The framework may call this method

        1. once before the very first tile is computed, or
        2. as a result of a call to Operator.execute(ProgressMonitor).

        The default implementation only progresses the progress monitor.

        Overrides:
        doExecute in class Operator
        Parameters:
        pm - A progress monitor to be notified for long-running tasks.
        Throws:
        OperatorException - If an error occurs during computation of the target raster.
      • computeTile

        public void computeTile​(Band band,
                                Tile targetTile,
                                ProgressMonitor pm)
                         throws OperatorException
        Description copied from class: Operator
        Called by the framework in order to compute a tile for the given target band.

        The default implementation throws a runtime exception with the message "not implemented".

        This method shall never be called directly.

        Overrides:
        computeTile in class Operator
        Parameters:
        band - The target band.
        targetTile - The current tile associated with the target band to be computed.
        pm - A progress monitor which should be used to determine computation cancellation requests.
        Throws:
        OperatorException - If an error occurs during computation of the target raster.
      • dispose

        public void dispose()
        Description copied from class: Operator
        Releases the resources the operator has acquired during its lifetime. The default implementation does nothing.

        Overrides should make sure to call super.dispose() as well.

        Overrides:
        dispose in class Operator